NTRT Simulator
v1.1
|
Inherits tgTaggable.
Inherited by tgBasicActuatorInfo, tgBasicContactCableInfo, tgPrismaticInfo, and tgRBStringInfo.
Public Member Functions | |
tgConnectorInfo (tgTags tags) | |
tgConnectorInfo (const std::string &space_separated_tags) | |
tgConnectorInfo (const tgPair &pair) | |
virtual tgConnectorInfo * | createConnectorInfo (const tgPair &pair)=0 |
virtual tgConnectorInfo * | createConnectorInfo (const tgPair &pair, const tgTagSearch &tagSearch) |
virtual std::vector < tgConnectorInfo * > | createConnectorInfos (const tgPairs &pairs, const tgTagSearch &tagSearch) |
virtual void | initConnector (tgWorld &world)=0 |
virtual tgModel * | createModel (tgWorld &world)=0 |
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 double | getMass ()=0 |
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 | |
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 | |
tgPair | m_pair |
tgRigidInfo * | m_fromRigidInfo |
tgRigidInfo * | m_toRigidInfo |
Definition at line 45 of file tgConnectorInfo.h.