SOFA plugin: ArticulatedSystemPlugin  master
Open source framework for multi-physics simuation
sofa::helper::io::bvh::BVHJoint Class Reference

#include <BVHJoint.h>

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.

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)
 
BVHOffsetsetOffset (void)
 
void setChannels (BVHChannels *c)
 
BVHChannelsgetChannels (void)
 
bool isEndSite (void)
 
void setEndSite (bool isEndSite)
 
void setMotion (BVHMotion *m)
 
BVHMotiongetMotion (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 ()
 
BVHOffsetgetOffset ()
 

Attribute details

◆ lastId

int sofa::helper::io::bvh::BVHJoint::lastId = 0
static

Constructor details

◆ BVHJoint()

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

◆ ~BVHJoint()

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

Function details

◆ accumulateNumJoints()

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

◆ addChild()

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

◆ debug()

void sofa::helper::io::bvh::BVHJoint::debug ( int  tab = 0)

◆ display()

void sofa::helper::io::bvh::BVHJoint::display ( int  frameNum)

◆ displayInGlobalFrame()

void sofa::helper::io::bvh::BVHJoint::displayInGlobalFrame ( void  )

◆ dump()

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

◆ dumpPosition() [1/2]

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

◆ dumpPosition() [2/2]

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

◆ dumpRotation() [1/2]

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

◆ dumpRotation() [2/2]

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

◆ dumpRotationLimit() [1/2]

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

◆ dumpRotationLimit() [2/2]

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

◆ dumpRotationStiffness() [1/2]

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

◆ dumpRotationStiffness() [2/2]

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

◆ dumpSegment() [1/2]

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

◆ dumpSegment() [2/2]

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

◆ getChannels()

BVHChannels* sofa::helper::io::bvh::BVHJoint::getChannels ( void  )
inline

◆ getChildren()

std::vector<BVHJoint *>& sofa::helper::io::bvh::BVHJoint::getChildren ( void  )
inline

◆ getId()

int sofa::helper::io::bvh::BVHJoint::getId ( )

◆ getMotion()

BVHMotion* sofa::helper::io::bvh::BVHJoint::getMotion ( void  )
inline

◆ getName()

char * sofa::helper::io::bvh::BVHJoint::getName ( )

◆ getNumJoints()

int sofa::helper::io::bvh::BVHJoint::getNumJoints ( char *  s = nullptr)

◆ getNumSegments()

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

◆ getOffset()

BVHOffset * sofa::helper::io::bvh::BVHJoint::getOffset ( )

◆ initMotion()

void sofa::helper::io::bvh::BVHJoint::initMotion ( double  fTime,
unsigned int  fCount 
)

◆ isEndSite()

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

◆ setChannels()

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

◆ setEndSite()

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

◆ setMotion()

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

◆ setOffset() [1/2]

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

◆ setOffset() [2/2]

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