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

Public Member Functions

 tgUnidirComprSprActuatorInfo (const tgUnidirComprSprActuator::Config &config)
 
 tgUnidirComprSprActuatorInfo (const tgUnidirComprSprActuator::Config &config, tgTags tags)
 
 tgUnidirComprSprActuatorInfo (const tgUnidirComprSprActuator::Config &config, const tgPair &pair)
 
virtual ~tgUnidirComprSprActuatorInfo ()
 
virtual tgConnectorInfocreateConnectorInfo (const tgPair &pair)
 
virtual void initConnector (tgWorld &world)
 
virtual tgModelcreateModel (tgWorld &world)
 
virtual tgConnectorInfocreateConnectorInfo (const tgPair &pair, const tgTagSearch &tagSearch)
 
double getMass ()
 
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

tgBulletUnidirComprSprcreateTgBulletUnidirComprSpr ()
 
void constructorAux ()
 
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 46 of file tgUnidirComprSprActuatorInfo.h.

Constructor & Destructor Documentation

tgUnidirComprSprActuatorInfo::tgUnidirComprSprActuatorInfo ( const tgUnidirComprSprActuator::Config config)

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

Constructors. All must call the constructor for tgCompressionSpringActuatorInfo.

Definition at line 57 of file tgUnidirComprSprActuatorInfo.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

tgUnidirComprSprActuatorInfo::tgUnidirComprSprActuatorInfo ( const tgUnidirComprSprActuator::Config config,
tgTags  tags 
)

Construct a tgUnidirComprSprActuatorInfo 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 65 of file tgUnidirComprSprActuatorInfo.cpp.

Here is the call graph for this function:

tgUnidirComprSprActuatorInfo::tgUnidirComprSprActuatorInfo ( const tgUnidirComprSprActuator::Config config,
const tgPair pair 
)

Construct a tgUnidirComprSprActuatorInfo 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 73 of file tgUnidirComprSprActuatorInfo.cpp.

Here is the call graph for this function:

virtual tgUnidirComprSprActuatorInfo::~tgUnidirComprSprActuatorInfo ( )
inlinevirtual

virtual destructor. does nothing.

Definition at line 83 of file tgUnidirComprSprActuatorInfo.h.

Member Function Documentation

void tgUnidirComprSprActuatorInfo::constructorAux ( )
protected

Auxiliary helper to the constructors. This makes it easy to do the same checks in multiple constructors without copy-pasting code.

Constructor auxiliary method, does some debugging and error checking.

Definition at line 41 of file tgUnidirComprSprActuatorInfo.cpp.

Here is the caller graph for this function:

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

Create a tgConnectorInfo* from a tgPair.

Reimplemented from tgCompressionSpringActuatorInfo.

Definition at line 81 of file tgUnidirComprSprActuatorInfo.cpp.

Here is the call graph for this function:

tgModel * tgUnidirComprSprActuatorInfo::createModel ( tgWorld world)
virtual

Return the tgUnidirComprSprActuator that's been built from the tgBulletUnidirComprSpr.

Reimplemented from tgCompressionSpringActuatorInfo.

Definition at line 94 of file tgUnidirComprSprActuatorInfo.cpp.

tgBulletCompressionSpring * tgCompressionSpringActuatorInfo::createTgBulletCompressionSpring ( )
protectedinherited

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:

tgBulletUnidirComprSpr * tgUnidirComprSprActuatorInfo::createTgBulletUnidirComprSpr ( )
protected

Helper function: actually creates the tgBulletUnidirCompSpr. Note that the m_bulletCompressionSpring is stored in the parent class.

Definition at line 112 of file tgUnidirComprSprActuatorInfo.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void tgUnidirComprSprActuatorInfo::initConnector ( tgWorld world)
virtual

create the actual tgBulletUnidirComprSpr Calls createTgBulletUnidirComprSpr helper function.

Reimplemented from tgCompressionSpringActuatorInfo.

Definition at line 86 of file tgUnidirComprSprActuatorInfo.cpp.

Here is the call graph for this function:

Member Data Documentation

tgBulletCompressionSpring* tgCompressionSpringActuatorInfo::m_bulletCompressionSpring
protectedinherited

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: