Simbody  3.6
SimTK::MultibodyGraphMaker::Body Class Reference

Local class that collects information about bodies. More...

Public Member Functions

 Body (const std::string &name, double mass, bool mustBeBaseBody, void *userRef)
 
void forgetGraph (MultibodyGraphMaker &graph)
 
int getNumFragments () const
 
int getNumSlaves () const
 
int getNumJoints () const
 
bool isSlave () const
 
bool isMaster () const
 
bool isInTree () const
 

Public Attributes

std::string name
 
double mass
 
bool mustBeBaseBody
 
void * userRef
 
std::vector< int > jointsAsChild
 
std::vector< int > jointsAsParent
 
int level
 
int mobilizer
 
int master
 
std::vector< int > slaves
 

Detailed Description

Local class that collects information about bodies.

Constructor & Destructor Documentation

◆ Body()

SimTK::MultibodyGraphMaker::Body::Body ( const std::string &  name,
double  mass,
bool  mustBeBaseBody,
void *  userRef 
)
inlineexplicit

Member Function Documentation

◆ forgetGraph()

void SimTK::MultibodyGraphMaker::Body::forgetGraph ( MultibodyGraphMaker graph)

◆ getNumFragments()

int SimTK::MultibodyGraphMaker::Body::getNumFragments ( ) const
inline

◆ getNumSlaves()

int SimTK::MultibodyGraphMaker::Body::getNumSlaves ( ) const
inline

◆ getNumJoints()

int SimTK::MultibodyGraphMaker::Body::getNumJoints ( ) const
inline

◆ isSlave()

bool SimTK::MultibodyGraphMaker::Body::isSlave ( ) const
inline

◆ isMaster()

bool SimTK::MultibodyGraphMaker::Body::isMaster ( ) const
inline

◆ isInTree()

bool SimTK::MultibodyGraphMaker::Body::isInTree ( ) const
inline

Member Data Documentation

◆ name

std::string SimTK::MultibodyGraphMaker::Body::name

◆ mass

double SimTK::MultibodyGraphMaker::Body::mass

◆ mustBeBaseBody

bool SimTK::MultibodyGraphMaker::Body::mustBeBaseBody

◆ userRef

void* SimTK::MultibodyGraphMaker::Body::userRef

◆ jointsAsChild

std::vector<int> SimTK::MultibodyGraphMaker::Body::jointsAsChild

◆ jointsAsParent

std::vector<int> SimTK::MultibodyGraphMaker::Body::jointsAsParent

◆ level

int SimTK::MultibodyGraphMaker::Body::level

◆ mobilizer

int SimTK::MultibodyGraphMaker::Body::mobilizer

◆ master

int SimTK::MultibodyGraphMaker::Body::master

◆ slaves

std::vector<int> SimTK::MultibodyGraphMaker::Body::slaves

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