sofa::helper::io::bvh::BVHLoader Class Reference

#include <BVHLoader.h>


Detailed Description

This class defines a BVH File Loader This files describe a hierarchical articulated model and also an associated motion see http://www.cs.wisc.edu/graphics/Courses/cs-838-1999/Jeff/BVH.html for the file format specification.

Definition at line 48 of file BVHLoader.h.


Public Member Functions

 BVHLoader ()
virtual ~BVHLoader ()
BVHJointload (const char *filename)

Private Member Functions

BVHJointparseJoint (FILE *f, bool isEndSite=false, BVHJoint *parent=NULL)
BVHOffsetparseOffset (FILE *f)
BVHChannelsparseChannels (FILE *f)
void parseMotion (FILE *f, BVHJoint *j)
void setFrameTime (BVHJoint *j, double _frameTime)
void parseFrames (BVHJoint *j, unsigned int frameIndex, FILE *f)

Constructor & Destructor Documentation

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.


Member Function Documentation

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]

Definition at line 104 of file BVHLoader.cpp.

Referenced by parseJoint().

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::setFrameTime ( BVHJoint j,
double  _frameTime 
) [private]

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().


The documentation for this class was generated from the following files:
Generated on Mon May 5 23:42:08 2008 for Sofa by  doxygen 1.5.3