NTRT Simulator
Version: Master
|
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 tgConnectorInfo * | createConnectorInfo (const tgPair &pair) |
virtual void | initConnector (tgWorld &world) |
virtual tgModel * | createModel (tgWorld &world) |
virtual tgConnectorInfo * | createConnectorInfo (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 |
tgRigidInfo * | getFromRigidInfo () |
const tgRigidInfo * | getFromRigidInfo () const |
void | setFromRigidInfo (tgRigidInfo *rigidInfo) |
tgRigidInfo * | getToRigidInfo () |
const tgRigidInfo * | getToRigidInfo () const |
void | setToRigidInfo (tgRigidInfo *rigidInfo) |
btRigidBody * | getToRigidBody () |
btRigidBody * | getFromRigidBody () |
virtual void | chooseRigids (std::set< tgRigidInfo * > rigids) |
virtual void | chooseRigids (std::vector< tgRigidInfo * > rigids) |
tgRigidInfo * | chooseRigid (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 () |
tgTags & | getTags () |
const tgTags & | getTags () const |
void | setTags (tgTags tags) |
std::string | getTagStr (std::string delim=" ") const |
Protected Member Functions | |
tgBulletUnidirComprSpr * | createTgBulletUnidirComprSpr () |
void | constructorAux () |
tgBulletCompressionSpring * | createTgBulletCompressionSpring () |
tgRigidInfo * | findClosestCenterOfMass (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 | |
tgBulletCompressionSpring * | m_bulletCompressionSpring |
tgPair | m_pair |
tgRigidInfo * | m_fromRigidInfo |
tgRigidInfo * | m_toRigidInfo |
Definition at line 46 of file tgUnidirComprSprActuatorInfo.h.
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.
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.
tgUnidirComprSprActuatorInfo::tgUnidirComprSprActuatorInfo | ( | const tgUnidirComprSprActuator::Config & | config, |
const tgPair & | pair | ||
) |
Construct a tgUnidirComprSprActuatorInfo from its endpoints.
[in] | from | one endpoint |
[in] | to | the other endpoint |
[in] | config | contains... something else that's needed? TO-DO: why? |
Definition at line 73 of file tgUnidirComprSprActuatorInfo.cpp.
|
inlinevirtual |
virtual destructor. does nothing.
Definition at line 83 of file tgUnidirComprSprActuatorInfo.h.
|
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.
|
virtual |
Create a tgConnectorInfo* from a tgPair.
Reimplemented from tgCompressionSpringActuatorInfo.
Definition at line 81 of file tgUnidirComprSprActuatorInfo.cpp.
Return the tgUnidirComprSprActuator that's been built from the tgBulletUnidirComprSpr.
Reimplemented from tgCompressionSpringActuatorInfo.
Definition at line 94 of file tgUnidirComprSprActuatorInfo.cpp.
|
protectedinherited |
Helper function: actually creates the tgBulletCompressionSpring.
Definition at line 79 of file tgCompressionSpringActuatorInfo.cpp.
|
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.
|
virtual |
create the actual tgBulletUnidirComprSpr Calls createTgBulletUnidirComprSpr helper function.
Reimplemented from tgCompressionSpringActuatorInfo.
Definition at line 86 of file tgUnidirComprSprActuatorInfo.cpp.
|
protectedinherited |
reference to the tgBulletCompressionSpring that's created by the above method.
Definition at line 109 of file tgCompressionSpringActuatorInfo.h.