SOFA API  6a688117
Open source framework for multi-physics simuation
sofa::helper::io::bvh::BVHJoint Class Reference

#include <BVHJoint.h>

Detailed Description

A BVHJoint is a Graph Node that contains : An Offset to set the position relatively to the parent's local frame. Channels describing the local degrees of freedom that can transform the local frame. A Motion that contains a set of key positions. Each of them contains the channels value that must be set at the current timestep. The EndOfSite Flag is set to true if the Joint is a Leaf.

Static Public Attributes

static int lastId = 0
 

Public Member Functions

 BVHJoint (const char *_name, bool _endSite=false, BVHJoint *_parent=nullptr)
 
virtual ~BVHJoint ()
 
void addChild (BVHJoint *j)
 
std::vector< BVHJoint * > & getChildren (void)
 
void setOffset (BVHOffset *o)
 
BVHOffsetsetOffset (void)
 
void setChannels (BVHChannels *c)
 
BVHChannelsgetChannels (void)
 
bool isEndSite (void)
 
void setEndSite (bool isEndSite)
 
void setMotion (BVHMotion *m)
 
BVHMotiongetMotion (void)
 
void initMotion (double fTime, unsigned int fCount)
 
void debug (int tab=0)
 
void display (int)
 
void displayInGlobalFrame (void)
 
void dump (char *fName, char *rootJointName=nullptr)
 
void dumpPosition (FILE *f, char *s=nullptr)
 
void dumpSegment (FILE *f, char *s=nullptr)
 
void dumpRotation (FILE *f, char *s=nullptr)
 
void dumpRotationLimit (FILE *f, char *s=nullptr)
 
void dumpRotationStiffness (FILE *f, char *s=nullptr)
 
void dumpPosition (FILE *f, int beginIndex)
 
void dumpSegment (FILE *f, int &cpt, int beginIndex)
 
void dumpRotation (FILE *f, int &cpt, int beginIndex)
 
void dumpRotationLimit (FILE *f, int &cpt)
 
void dumpRotationStiffness (FILE *f, int &cpt)
 
int getNumJoints (char *s=nullptr)
 
int accumulateNumJoints (void)
 
int getNumSegments (char *s=nullptr)
 
int getId ()
 
char * getName ()
 
BVHOffsetgetOffset ()
 

Attribute details

int sofa::helper::io::bvh::BVHJoint::lastId = 0
static

Constructor details

sofa::helper::io::bvh::BVHJoint::BVHJoint ( const char *  _name,
bool  _endSite = false,
BVHJoint _parent = nullptr 
)
sofa::helper::io::bvh::BVHJoint::~BVHJoint ( )
virtual

Function details

int sofa::helper::io::bvh::BVHJoint::accumulateNumJoints ( void  )
void sofa::helper::io::bvh::BVHJoint::addChild ( BVHJoint j)
inline
void sofa::helper::io::bvh::BVHJoint::debug ( int  tab = 0)
void sofa::helper::io::bvh::BVHJoint::display ( int  frameNum)
void sofa::helper::io::bvh::BVHJoint::displayInGlobalFrame ( void  )
void sofa::helper::io::bvh::BVHJoint::dump ( char *  fName,
char *  rootJointName = nullptr 
)
void sofa::helper::io::bvh::BVHJoint::dumpPosition ( FILE *  f,
char *  s = nullptr 
)
void sofa::helper::io::bvh::BVHJoint::dumpPosition ( FILE *  f,
int  beginIndex 
)
void sofa::helper::io::bvh::BVHJoint::dumpRotation ( FILE *  f,
char *  s = nullptr 
)
void sofa::helper::io::bvh::BVHJoint::dumpRotation ( FILE *  f,
int cpt,
int  beginIndex 
)
void sofa::helper::io::bvh::BVHJoint::dumpRotationLimit ( FILE *  f,
char *  s = nullptr 
)
void sofa::helper::io::bvh::BVHJoint::dumpRotationLimit ( FILE *  f,
int cpt 
)
void sofa::helper::io::bvh::BVHJoint::dumpRotationStiffness ( FILE *  f,
char *  s = nullptr 
)
void sofa::helper::io::bvh::BVHJoint::dumpRotationStiffness ( FILE *  f,
int cpt 
)
void sofa::helper::io::bvh::BVHJoint::dumpSegment ( FILE *  f,
char *  s = nullptr 
)
void sofa::helper::io::bvh::BVHJoint::dumpSegment ( FILE *  f,
int cpt,
int  beginIndex 
)
BVHChannels* sofa::helper::io::bvh::BVHJoint::getChannels ( void  )
inline
std::vector<BVHJoint *>& sofa::helper::io::bvh::BVHJoint::getChildren ( void  )
inline
int sofa::helper::io::bvh::BVHJoint::getId ( )
BVHMotion* sofa::helper::io::bvh::BVHJoint::getMotion ( void  )
inline
char * sofa::helper::io::bvh::BVHJoint::getName ( )
int sofa::helper::io::bvh::BVHJoint::getNumJoints ( char *  s = nullptr)
int sofa::helper::io::bvh::BVHJoint::getNumSegments ( char *  s = nullptr)
BVHOffset * sofa::helper::io::bvh::BVHJoint::getOffset ( )
void sofa::helper::io::bvh::BVHJoint::initMotion ( double  fTime,
unsigned int  fCount 
)
bool sofa::helper::io::bvh::BVHJoint::isEndSite ( void  )
inline
void sofa::helper::io::bvh::BVHJoint::setChannels ( BVHChannels c)
inline
void sofa::helper::io::bvh::BVHJoint::setEndSite ( bool  isEndSite)
inline
void sofa::helper::io::bvh::BVHJoint::setMotion ( BVHMotion m)
inline
void sofa::helper::io::bvh::BVHJoint::setOffset ( BVHOffset o)
inline
BVHOffset* sofa::helper::io::bvh::BVHJoint::setOffset ( void  )
inline