sofa::helper::io::bvh::BVHJoint Class Reference

A BVHJoint is a Graph Node that contains : An Offset to set the position relatively to the parent's local frame. More...

#include <BVHJoint.h>

Collaboration diagram for sofa::helper::io::bvh::BVHJoint:

Collaboration graph
[legend]

Public Member Functions

 BVHJoint (const char *_name, bool _endSite=false, BVHJoint *_parent=NULL)
virtual ~BVHJoint ()
void addChild (BVHJoint *j)
std::vector< BVHJoint * > & getChildren (void)
void setOffset (BVHOffset *o)
BVHOffset * setOffset (void)
void setChannels (BVHChannels *c)
BVHChannels * getChannels (void)
bool isEndSite (void)
void setEndSite (bool isEndSite)
void setMotion (BVHMotion *m)
BVHMotion * getMotion (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=NULL)
void dumpPosition (FILE *f, char *s=NULL)
void dumpSegment (FILE *f, char *s=NULL)
void dumpRotation (FILE *f, char *s=NULL)
void dumpRotationLimit (FILE *f, char *s=NULL)
void dumpRotationStiffness (FILE *f, char *s=NULL)
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=NULL)
int accumulateNumJoints (void)
int getNumSegments (char *s=NULL)
int getId ()
char * getName ()
BVHOffset * getOffset ()

Private Attributes

BVHOffset * offset
BVHChannels * channels
BVHMotion * motion
BVHJoint * parent
std::vector< BVHJoint * > children
char name [128]
bool endSite
int id
double matrix [16]

Static Private Attributes

static int lastId = 0

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.

Definition at line 55 of file BVHJoint.h.


Constructor & Destructor Documentation

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

Definition at line 49 of file BVHJoint.cpp.

References channels, endSite, lastId, motion, name, and offset.

sofa::helper::io::bvh::BVHJoint::~BVHJoint (  )  [virtual]

Definition at line 64 of file BVHJoint.cpp.

References channels, lastId, motion, and offset.


Member Function Documentation

int sofa::helper::io::bvh::BVHJoint::accumulateNumJoints ( void   ) 

Definition at line 172 of file BVHJoint.cpp.

References children.

Referenced by getNumJoints().

void sofa::helper::io::bvh::BVHJoint::addChild ( BVHJoint *  j  )  [inline]

Definition at line 61 of file BVHJoint.h.

References children.

Referenced by sofa::helper::io::bvh::BVHLoader::parseJoint().

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   ) 

Definition at line 136 of file BVHJoint.cpp.

References children, and matrix.

void sofa::helper::io::bvh::BVHJoint::dump ( char *  fName,
char *  rootJointName = NULL 
)

void sofa::helper::io::bvh::BVHJoint::dumpPosition ( FILE *  f,
int  beginIndex 
)

Definition at line 244 of file BVHJoint.cpp.

References children, dumpPosition(), and matrix.

void sofa::helper::io::bvh::BVHJoint::dumpPosition ( FILE *  f,
char *  s = NULL 
)

Definition at line 229 of file BVHJoint.cpp.

References children, and name.

Referenced by dump(), and dumpPosition().

void sofa::helper::io::bvh::BVHJoint::dumpRotation ( FILE *  f,
int &  cpt,
int  beginIndex 
)

Definition at line 296 of file BVHJoint.cpp.

References children, dumpRotation(), and matrix.

void sofa::helper::io::bvh::BVHJoint::dumpRotation ( FILE *  f,
char *  s = NULL 
)

Definition at line 279 of file BVHJoint.cpp.

References children, and name.

Referenced by dump(), and dumpRotation().

void sofa::helper::io::bvh::BVHJoint::dumpRotationLimit ( FILE *  f,
int &  cpt 
)

Definition at line 324 of file BVHJoint.cpp.

References children, and dumpRotationLimit().

void sofa::helper::io::bvh::BVHJoint::dumpRotationLimit ( FILE *  f,
char *  s = NULL 
)

Definition at line 307 of file BVHJoint.cpp.

References children, and name.

Referenced by dump(), and dumpRotationLimit().

void sofa::helper::io::bvh::BVHJoint::dumpRotationStiffness ( FILE *  f,
int &  cpt 
)

Definition at line 352 of file BVHJoint.cpp.

References children, and dumpRotationStiffness().

void sofa::helper::io::bvh::BVHJoint::dumpRotationStiffness ( FILE *  f,
char *  s = NULL 
)

Definition at line 335 of file BVHJoint.cpp.

References children, and name.

Referenced by dump(), and dumpRotationStiffness().

void sofa::helper::io::bvh::BVHJoint::dumpSegment ( FILE *  f,
int &  cpt,
int  beginIndex 
)

Definition at line 269 of file BVHJoint.cpp.

References children.

void sofa::helper::io::bvh::BVHJoint::dumpSegment ( FILE *  f,
char *  s = NULL 
)

Definition at line 252 of file BVHJoint.cpp.

References children, and name.

Referenced by dump().

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 = NULL  ) 

int sofa::helper::io::bvh::BVHJoint::getNumSegments ( char *  s = NULL  ) 

Definition at line 186 of file BVHJoint.cpp.

References getNumJoints().

Referenced by dump().

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]

Definition at line 70 of file BVHJoint.h.

References endSite.

void sofa::helper::io::bvh::BVHJoint::setChannels ( BVHChannels *  c  )  [inline]

Definition at line 67 of file BVHJoint.h.

References channels.

Referenced by sofa::helper::io::bvh::BVHLoader::parseJoint().

void sofa::helper::io::bvh::BVHJoint::setEndSite ( bool  isEndSite  )  [inline]

Definition at line 71 of file BVHJoint.h.

References endSite.

void sofa::helper::io::bvh::BVHJoint::setMotion ( BVHMotion *  m  )  [inline]

Definition at line 73 of file BVHJoint.h.

References motion.

BVHOffset* sofa::helper::io::bvh::BVHJoint::setOffset ( void   )  [inline]

Definition at line 65 of file BVHJoint.h.

References offset.

void sofa::helper::io::bvh::BVHJoint::setOffset ( BVHOffset *  o  )  [inline]

Definition at line 64 of file BVHJoint.h.

References offset.

Referenced by sofa::helper::io::bvh::BVHLoader::parseJoint().


Field Documentation

Definition at line 112 of file BVHJoint.h.

Referenced by BVHJoint(), debug(), display(), getChannels(), initMotion(), setChannels(), and ~BVHJoint().

Definition at line 119 of file BVHJoint.h.

Referenced by BVHJoint(), isEndSite(), and setEndSite().

Definition at line 120 of file BVHJoint.h.

Referenced by getId().

Definition at line 121 of file BVHJoint.h.

Referenced by BVHJoint(), and ~BVHJoint().

Definition at line 124 of file BVHJoint.h.

Referenced by display(), displayInGlobalFrame(), dumpPosition(), and dumpRotation().

Definition at line 113 of file BVHJoint.h.

Referenced by BVHJoint(), display(), getMotion(), setMotion(), and ~BVHJoint().

Definition at line 111 of file BVHJoint.h.

Referenced by BVHJoint(), debug(), display(), getOffset(), setOffset(), and ~BVHJoint().

Definition at line 115 of file BVHJoint.h.


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

Generated on Sun Nov 23 04:24:20 2008 for Sofa by  doxygen 1.5.7.1