Bone Class Reference

#include <Bone.h>

Inheritance diagram for Bone:

Inheritance graph
[legend]
Collaboration diagram for Bone:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Bone ()
 ~Bone ()
void calcMatrix (bool childBones=true, bool firstBone=true)
void calcNodes (bool firstBone=true)
void control (int controllerId, int motionId, float value)
float read_control (int controllerId, int motionId)
void setRestPosition (const XYZ &pt)
void setRestDirection (const XYZ &pt)
void setRestLength (float restLen)
void setStrength (float strengthVal)
void bindChild (Bone &boneObj_in)
void bindParent (Bone &boneObj_in)
bool hasParent ()
void transformBegin ()
void transformEnd ()
void transformReverseBegin ()
void transformReverseEnd ()
ObjectControllercontroller ()
void debugDraw (bool firstBone=true)
void debugDrawNode ()

Public Attributes

ObjectController objController
std::vector< Bone * > children
Boneparent
float matrix [16]
XYZ start_pt
XYZ end_pt
XYZ center
XYZ restPosition
XYZ restDirection
float restLength
float strength
bool trans_init


Constructor & Destructor Documentation

Bone::Bone (  ) 

Bone::~Bone (  ) 


Member Function Documentation

void Bone::calcMatrix ( bool  childBones = true,
bool  firstBone = true 
)

void Bone::calcNodes ( bool  firstBone = true  ) 

Here is the call graph for this function:

void Bone::control ( int  controllerId,
int  motionId,
float  value 
) [virtual]

Implements Controllable.

float Bone::read_control ( int  controllerId,
int  motionId 
) [virtual]

Reimplemented from Controllable.

void Bone::setRestPosition ( const XYZ pt  )  [inline]

void Bone::setRestDirection ( const XYZ pt  )  [inline]

void Bone::setRestLength ( float  restLen  )  [inline]

void Bone::setStrength ( float  strengthVal  )  [inline]

void Bone::bindChild ( Bone boneObj_in  ) 

void Bone::bindParent ( Bone boneObj_in  ) 

Here is the call graph for this function:

bool Bone::hasParent (  ) 

void Bone::transformBegin (  ) 

Here is the call graph for this function:

void Bone::transformEnd (  ) 

Here is the call graph for this function:

void Bone::transformReverseBegin (  ) 

Here is the call graph for this function:

void Bone::transformReverseEnd (  ) 

Here is the call graph for this function:

ObjectController & Bone::controller (  ) 

void Bone::debugDraw ( bool  firstBone = true  ) 

void Bone::debugDrawNode (  ) 


Member Data Documentation

std::vector<Bone *> Bone::children

float Bone::matrix[16]


The documentation for this class was generated from the following files:

Generated on Thu Mar 19 19:35:08 2009 for CubicVR by  doxygen 1.5.6