NTRT Simulator
Version: Master
|
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 tgConnectorInfo * | createConnectorInfo (const tgPair &pair) |
virtual void | initConnector (tgWorld &world) |
virtual tgModel * | createModel (tgWorld &world) |
double | getMass () |
virtual tgConnectorInfo * | createConnectorInfo (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 |
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 | |
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 48 of file tgCompressionSpringActuatorInfo.h.
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.
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.
[in] | from | one endpoint |
[in] | to | the other endpoint |
[in] | config | contains... something else that's needed? TO-DO: why? |
Definition at line 44 of file tgCompressionSpringActuatorInfo.cpp.
|
inlinevirtual |
virtual destructor, does nothing.
Definition at line 78 of file tgCompressionSpringActuatorInfo.h.
|
virtual |
Create a tgConnectorInfo* from a tgPair.
Implements tgConnectorInfo.
Reimplemented in tgUnidirComprSprActuatorInfo.
Definition at line 49 of file tgCompressionSpringActuatorInfo.cpp.
Return the tgCompressionSpringActuator that's been built from the tgBulletCompressionSpring.
Implements tgConnectorInfo.
Reimplemented in tgUnidirComprSprActuatorInfo.
Definition at line 60 of file tgCompressionSpringActuatorInfo.cpp.
|
protected |
Helper function: actually creates the tgBulletCompressionSpring.
Definition at line 79 of file tgCompressionSpringActuatorInfo.cpp.
|
virtual |
create the actual tgBulletCompressionSpring Calls createTgBulletCompressionSpring helper function.
Implements tgConnectorInfo.
Reimplemented in tgUnidirComprSprActuatorInfo.
Definition at line 54 of file tgCompressionSpringActuatorInfo.cpp.
|
protected |
reference to the tgBulletCompressionSpring that's created by the above method.
Definition at line 109 of file tgCompressionSpringActuatorInfo.h.