NTRT Simulator  Version: Master
 All Classes Namespaces Files Functions Variables Typedefs Friends Pages
tgCompressionSpringActuatorInfo Class Reference
Inheritance diagram for tgCompressionSpringActuatorInfo:
Collaboration diagram for tgCompressionSpringActuatorInfo:

Public Member Functions

 tgCompressionSpringActuatorInfo (const tgCompressionSpringActuator::Config &config)
 
 tgCompressionSpringActuatorInfo (const tgCompressionSpringActuator::Config &config, tgTags tags)
 
 tgCompressionSpringActuatorInfo (const tgCompressionSpringActuator::Config &config, const tgPair &pair)
 
virtual ~tgCompressionSpringActuatorInfo ()
 
virtual tgConnectorInfocreateConnectorInfo (const tgPair &pair)
 
virtual void initConnector (tgWorld &world)
 
virtual tgModelcreateModel (tgWorld &world)
 
double getMass ()
 
virtual tgConnectorInfocreateConnectorInfo (const tgPair &pair, const tgTagSearch &tagSearch)
 
virtual std::vector
< tgConnectorInfo * > 
createConnectorInfos (const tgPairs &pairs, const tgTagSearch &tagSearch)
 
btVector3 & getFrom ()
 
const btVector3 & getFrom () const
 
btVector3 & getTo ()
 
const btVector3 & getTo () const
 
tgRigidInfogetFromRigidInfo ()
 
const tgRigidInfogetFromRigidInfo () const
 
void setFromRigidInfo (tgRigidInfo *rigidInfo)
 
tgRigidInfogetToRigidInfo ()
 
const tgRigidInfogetToRigidInfo () const
 
void setToRigidInfo (tgRigidInfo *rigidInfo)
 
btRigidBody * getToRigidBody ()
 
btRigidBody * getFromRigidBody ()
 
virtual void chooseRigids (std::set< tgRigidInfo * > rigids)
 
virtual void chooseRigids (std::vector< tgRigidInfo * > rigids)
 
tgRigidInfochooseRigid (std::set< tgRigidInfo * > rigids, const btVector3 &v)
 
void addTags (const std::string &space_separated_tags)
 
void addTags (const tgTags &tags)
 
bool hasTag (const std::string tag) const
 
bool hasAllTags (std::string tags)
 
bool hasAnyTags (const std::string tags)
 
bool hasNoTags ()
 
tgTagsgetTags ()
 
const tgTagsgetTags () const
 
void setTags (tgTags tags)
 
std::string getTagStr (std::string delim=" ") const
 

Protected Member Functions

tgBulletCompressionSpringcreateTgBulletCompressionSpring ()
 
tgRigidInfofindClosestCenterOfMass (std::set< tgRigidInfo * > rigids, const btVector3 &v)
 
std::set< tgRigidInfo * > findRigidsContaining (std::set< tgRigidInfo * > rigids, const btVector3 &toFind)
 
bool rigidFoundIn (std::set< tgRigidInfo * > rigids, tgRigidInfo *rigid)
 

Protected Attributes

tgBulletCompressionSpringm_bulletCompressionSpring
 
tgPair m_pair
 
tgRigidInfom_fromRigidInfo
 
tgRigidInfom_toRigidInfo
 

Detailed Description

Definition at line 48 of file tgCompressionSpringActuatorInfo.h.

Constructor & Destructor Documentation

tgCompressionSpringActuatorInfo::tgCompressionSpringActuatorInfo ( const tgCompressionSpringActuator::Config config)

Construct a tgCompressionSpringActuatorInfo with just a config. The pair must be filled in later, or factory methods can be used to create instances with pairs.

Definition at line 34 of file tgCompressionSpringActuatorInfo.cpp.

Here is the caller graph for this function:

tgCompressionSpringActuatorInfo::tgCompressionSpringActuatorInfo ( const tgCompressionSpringActuator::Config config,
tgTags  tags 
)

Construct a tgCompressionSpringActuatorInfo with just a config and tags. The pair must be filled in later, or factory methods can be used to create instances with pairs.

Definition at line 39 of file tgCompressionSpringActuatorInfo.cpp.

tgCompressionSpringActuatorInfo::tgCompressionSpringActuatorInfo ( const tgCompressionSpringActuator::Config config,
const tgPair pair 
)

Construct a tgCompressionSpringActuatorInfo from its endpoints.

Parameters
[in]fromone endpoint
[in]tothe other endpoint
[in]configcontains... something else that's needed? TO-DO: why?
Todo:
: make sure that tgPairs returns references to the vectors...

Definition at line 44 of file tgCompressionSpringActuatorInfo.cpp.

virtual tgCompressionSpringActuatorInfo::~tgCompressionSpringActuatorInfo ( )
inlinevirtual

virtual destructor, does nothing.

Definition at line 78 of file tgCompressionSpringActuatorInfo.h.

Member Function Documentation

tgConnectorInfo * tgCompressionSpringActuatorInfo::createConnectorInfo ( const tgPair pair)
virtual

Create a tgConnectorInfo* from a tgPair.

Implements tgConnectorInfo.

Reimplemented in tgUnidirComprSprActuatorInfo.

Definition at line 49 of file tgCompressionSpringActuatorInfo.cpp.

Here is the call graph for this function:

tgModel * tgCompressionSpringActuatorInfo::createModel ( tgWorld world)
virtual

Return the tgCompressionSpringActuator that's been built from the tgBulletCompressionSpring.

Implements tgConnectorInfo.

Reimplemented in tgUnidirComprSprActuatorInfo.

Definition at line 60 of file tgCompressionSpringActuatorInfo.cpp.

tgBulletCompressionSpring * tgCompressionSpringActuatorInfo::createTgBulletCompressionSpring ( )
protected

Helper function: actually creates the tgBulletCompressionSpring.

Definition at line 79 of file tgCompressionSpringActuatorInfo.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void tgCompressionSpringActuatorInfo::initConnector ( tgWorld world)
virtual

create the actual tgBulletCompressionSpring Calls createTgBulletCompressionSpring helper function.

Implements tgConnectorInfo.

Reimplemented in tgUnidirComprSprActuatorInfo.

Definition at line 54 of file tgCompressionSpringActuatorInfo.cpp.

Here is the call graph for this function:

Member Data Documentation

tgBulletCompressionSpring* tgCompressionSpringActuatorInfo::m_bulletCompressionSpring
protected

reference to the tgBulletCompressionSpring that's created by the above method.

Definition at line 109 of file tgCompressionSpringActuatorInfo.h.


The documentation for this class was generated from the following files: