#include <BVHLoader.h>
Definition at line 48 of file BVHLoader.h.
Public Member Functions | |
| BVHLoader () | |
| virtual | ~BVHLoader () |
| BVHJoint * | load (const char *filename) |
Private Member Functions | |
| BVHJoint * | parseJoint (FILE *f, bool isEndSite=false, BVHJoint *parent=NULL) |
| BVHOffset * | parseOffset (FILE *f) |
| BVHChannels * | parseChannels (FILE *f) |
| void | parseMotion (FILE *f, BVHJoint *j) |
| void | setFrameTime (BVHJoint *j, double _frameTime) |
| void | parseFrames (BVHJoint *j, unsigned int frameIndex, FILE *f) |
| sofa::helper::io::bvh::BVHLoader::BVHLoader | ( | ) | [inline] |
Definition at line 51 of file BVHLoader.h.
| virtual sofa::helper::io::bvh::BVHLoader::~BVHLoader | ( | ) | [inline, virtual] |
Definition at line 52 of file BVHLoader.h.
| BVHJoint * sofa::helper::io::bvh::BVHLoader::load | ( | const char * | filename | ) |
Definition at line 40 of file BVHLoader.cpp.
References parseJoint(), and parseMotion().
Referenced by sofa::component::container::ArticulatedHierarchyContainer::parse().
| BVHJoint * sofa::helper::io::bvh::BVHLoader::parseJoint | ( | FILE * | f, | |
| bool | isEndSite = false, |
|||
| BVHJoint * | parent = NULL | |||
| ) | [private] |
Definition at line 65 of file BVHLoader.cpp.
References sofa::helper::io::bvh::BVHJoint::addChild(), parseChannels(), parseOffset(), sofa::helper::io::bvh::BVHJoint::setChannels(), and sofa::helper::io::bvh::BVHJoint::setOffset().
Referenced by load().
| BVHOffset * sofa::helper::io::bvh::BVHLoader::parseOffset | ( | FILE * | f | ) | [private] |
| BVHChannels * sofa::helper::io::bvh::BVHLoader::parseChannels | ( | FILE * | f | ) | [private] |
Definition at line 118 of file BVHLoader.cpp.
References sofa::helper::io::bvh::BVHChannels::addChannel(), sofa::helper::io::bvh::BVHChannels::NOP, sofa::helper::io::bvh::BVHChannels::Xposition, sofa::helper::io::bvh::BVHChannels::Xrotation, sofa::helper::io::bvh::BVHChannels::Yposition, sofa::helper::io::bvh::BVHChannels::Yrotation, sofa::helper::io::bvh::BVHChannels::Zposition, and sofa::helper::io::bvh::BVHChannels::Zrotation.
Referenced by parseJoint().
| void sofa::helper::io::bvh::BVHLoader::parseMotion | ( | FILE * | f, | |
| BVHJoint * | j | |||
| ) | [private] |
Definition at line 153 of file BVHLoader.cpp.
References sofa::helper::io::bvh::BVHJoint::initMotion(), and parseFrames().
Referenced by load().
| void sofa::helper::io::bvh::BVHLoader::parseFrames | ( | BVHJoint * | j, | |
| unsigned int | frameIndex, | |||
| FILE * | f | |||
| ) | [private] |
Definition at line 187 of file BVHLoader.cpp.
References sofa::helper::io::bvh::BVHMotion::frames, sofa::helper::io::bvh::BVHJoint::getChannels(), sofa::helper::io::bvh::BVHJoint::getChildren(), sofa::helper::io::bvh::BVHJoint::getMotion(), and sofa::helper::io::bvh::BVHChannels::size.
Referenced by parseMotion().
1.5.3