#include <BVHJoint.h>
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) |
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=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 () |
BVHOffset * | getOffset () |
|
static |
sofa::helper::io::bvh::BVHJoint::BVHJoint | ( | const char * | _name, |
bool | _endSite = false , |
||
BVHJoint * | _parent = nullptr |
||
) |
|
virtual |
int sofa::helper::io::bvh::BVHJoint::accumulateNumJoints | ( | void | ) |
|
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 | ||
) |
|
inline |
|
inline |
int sofa::helper::io::bvh::BVHJoint::getId | ( | ) |
|
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 | ||
) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |