NTRT Simulator  v1.1
 All Classes Namespaces Files Functions Variables Typedefs Friends Pages
tgKinematicContactCableInfo Class Reference
Inheritance diagram for tgKinematicContactCableInfo:
Collaboration diagram for tgKinematicContactCableInfo:

Public Member Functions

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

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

tgBulletContactSpringCablem_bulletContactSpringCable
 
tgPair m_pair
 
tgRigidInfom_fromRigidInfo
 
tgRigidInfom_toRigidInfo
 

Detailed Description

Definition at line 42 of file tgKinematicContactCableInfo.h.

Constructor & Destructor Documentation

tgKinematicContactCableInfo::tgKinematicContactCableInfo ( const tgKinematicActuator::Config config)

Construct a tgKinematicContactCableInfo 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 31 of file tgKinematicContactCableInfo.cpp.

Here is the caller graph for this function:

tgKinematicContactCableInfo::tgKinematicContactCableInfo ( const tgKinematicActuator::Config config,
tgTags  tags 
)

Construct a tgKinematicContactCableInfo 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 36 of file tgKinematicContactCableInfo.cpp.

tgKinematicContactCableInfo::tgKinematicContactCableInfo ( const tgKinematicActuator::Config config,
const tgPair pair 
)

Construct a tgKinematicContactCableInfo from its endpoints, radius and density.

Parameters
[in]fromone endpoint
[in]tothe other endpoint
[in]configcontains the radius and density
Todo:
: make sure that tgPairs returns references to the vectors...

Definition at line 41 of file tgKinematicContactCableInfo.cpp.

Member Function Documentation

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

Create a tgConnectorInfo* from a tgPair

Reimplemented from tgBasicContactCableInfo.

Definition at line 47 of file tgKinematicContactCableInfo.cpp.

Here is the call graph for this function:


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