#include <BVHJoint.h>

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 |
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.
| sofa::helper::io::bvh::BVHJoint::~BVHJoint | ( | ) | [virtual] |
| int sofa::helper::io::bvh::BVHJoint::accumulateNumJoints | ( | void | ) |
| 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 |
) |
Definition at line 362 of file BVHJoint.cpp.
References sofa::helper::io::bvh::BVHChannels::channels, channels, children, name, offset, sofa::helper::io::bvh::BVHOffset::x, sofa::helper::io::bvh::BVHOffset::y, and sofa::helper::io::bvh::BVHOffset::z.
| void sofa::helper::io::bvh::BVHJoint::display | ( | int | frameNum | ) |
Definition at line 82 of file BVHJoint.cpp.
References sofa::helper::io::bvh::BVHChannels::channels, channels, children, sofa::helper::io::bvh::BVHMotion::frames, matrix, motion, offset, sofa::helper::io::bvh::BVHChannels::size, sofa::helper::io::bvh::BVHOffset::x, sofa::helper::io::bvh::BVHChannels::Xposition, sofa::helper::io::bvh::BVHChannels::Xrotation, sofa::helper::io::bvh::BVHOffset::y, sofa::helper::io::bvh::BVHChannels::Yposition, sofa::helper::io::bvh::BVHChannels::Yrotation, sofa::helper::io::bvh::BVHOffset::z, sofa::helper::io::bvh::BVHChannels::Zposition, and sofa::helper::io::bvh::BVHChannels::Zrotation.
| void sofa::helper::io::bvh::BVHJoint::displayInGlobalFrame | ( | void | ) |
| void sofa::helper::io::bvh::BVHJoint::dump | ( | char * | fName, | |
| char * | rootJointName = NULL | |||
| ) |
Definition at line 192 of file BVHJoint.cpp.
References dumpPosition(), dumpRotation(), dumpRotationLimit(), dumpRotationStiffness(), dumpSegment(), getNumJoints(), and getNumSegments().
| void sofa::helper::io::bvh::BVHJoint::dumpPosition | ( | FILE * | f, | |
| int | beginIndex | |||
| ) |
| 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, | |
| 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 | |||
| ) |
| 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 | |||
| ) |
| 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, | |
| char * | s = NULL | |||
| ) |
| BVHChannels* sofa::helper::io::bvh::BVHJoint::getChannels | ( | void | ) | [inline] |
Definition at line 68 of file BVHJoint.h.
References channels.
Referenced by sofa::component::container::ArticulatedHierarchyContainer::buildCenterArticulationsTree(), and sofa::helper::io::bvh::BVHLoader::parseFrames().
| std::vector<BVHJoint *>& sofa::helper::io::bvh::BVHJoint::getChildren | ( | void | ) | [inline] |
Definition at line 62 of file BVHJoint.h.
References children.
Referenced by sofa::component::container::ArticulatedHierarchyContainer::buildCenterArticulationsTree(), and sofa::helper::io::bvh::BVHLoader::parseFrames().
| int sofa::helper::io::bvh::BVHJoint::getId | ( | ) |
Definition at line 392 of file BVHJoint.cpp.
References id.
Referenced by sofa::component::container::ArticulatedHierarchyContainer::buildCenterArticulationsTree().
| BVHMotion* sofa::helper::io::bvh::BVHJoint::getMotion | ( | void | ) | [inline] |
Definition at line 74 of file BVHJoint.h.
References motion.
Referenced by sofa::component::container::ArticulatedHierarchyContainer::buildCenterArticulationsTree(), sofa::component::container::ArticulatedHierarchyContainer::init(), initMotion(), and sofa::helper::io::bvh::BVHLoader::parseFrames().
| char * sofa::helper::io::bvh::BVHJoint::getName | ( | ) |
Definition at line 397 of file BVHJoint.cpp.
References name.
Referenced by sofa::component::container::ArticulatedHierarchyContainer::buildCenterArticulationsTree().
| int sofa::helper::io::bvh::BVHJoint::getNumJoints | ( | char * | s = NULL |
) |
Definition at line 154 of file BVHJoint.cpp.
References accumulateNumJoints(), children, and name.
Referenced by dump(), getNumSegments(), and sofa::component::container::ArticulatedHierarchyContainer::init().
| int sofa::helper::io::bvh::BVHJoint::getNumSegments | ( | char * | s = NULL |
) |
| BVHOffset * sofa::helper::io::bvh::BVHJoint::getOffset | ( | ) |
Definition at line 402 of file BVHJoint.cpp.
References offset.
Referenced by sofa::component::container::ArticulatedHierarchyContainer::buildCenterArticulationsTree().
| void sofa::helper::io::bvh::BVHJoint::initMotion | ( | double | fTime, | |
| unsigned int | fCount | |||
| ) |
Definition at line 73 of file BVHJoint.cpp.
References channels, children, getMotion(), sofa::helper::io::bvh::BVHMotion::init(), and sofa::helper::io::bvh::BVHChannels::size.
Referenced by sofa::helper::io::bvh::BVHLoader::parseMotion().
| bool sofa::helper::io::bvh::BVHJoint::isEndSite | ( | void | ) | [inline] |
| 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] |
| void sofa::helper::io::bvh::BVHJoint::setMotion | ( | BVHMotion * | m | ) | [inline] |
| BVHOffset* sofa::helper::io::bvh::BVHJoint::setOffset | ( | void | ) | [inline] |
| 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().
Definition at line 112 of file BVHJoint.h.
Referenced by BVHJoint(), debug(), display(), getChannels(), initMotion(), setChannels(), and ~BVHJoint().
std::vector<BVHJoint *> sofa::helper::io::bvh::BVHJoint::children [private] |
Definition at line 116 of file BVHJoint.h.
Referenced by accumulateNumJoints(), addChild(), debug(), display(), displayInGlobalFrame(), dumpPosition(), dumpRotation(), dumpRotationLimit(), dumpRotationStiffness(), dumpSegment(), getChildren(), getNumJoints(), and initMotion().
bool sofa::helper::io::bvh::BVHJoint::endSite [private] |
int sofa::helper::io::bvh::BVHJoint::id [private] |
int sofa::helper::io::bvh::BVHJoint::lastId = 0 [static, private] |
double sofa::helper::io::bvh::BVHJoint::matrix[16] [private] |
Definition at line 124 of file BVHJoint.h.
Referenced by display(), displayInGlobalFrame(), dumpPosition(), and dumpRotation().
BVHMotion* sofa::helper::io::bvh::BVHJoint::motion [private] |
Definition at line 113 of file BVHJoint.h.
Referenced by BVHJoint(), display(), getMotion(), setMotion(), and ~BVHJoint().
char sofa::helper::io::bvh::BVHJoint::name[128] [private] |
Definition at line 118 of file BVHJoint.h.
Referenced by BVHJoint(), debug(), dumpPosition(), dumpRotation(), dumpRotationLimit(), dumpRotationStiffness(), dumpSegment(), getName(), and getNumJoints().
BVHOffset* sofa::helper::io::bvh::BVHJoint::offset [private] |
Definition at line 111 of file BVHJoint.h.
Referenced by BVHJoint(), debug(), display(), getOffset(), setOffset(), and ~BVHJoint().
BVHJoint* sofa::helper::io::bvh::BVHJoint::parent [private] |
Definition at line 115 of file BVHJoint.h.
1.5.7.1