Bone Class Reference

#include <Bone.h>

List of all members.

Public Member Functions

 Bone (const char *name)
virtual ~Bone ()
const char * getName ()
const char * getParentName ()
VectorgetPosition ()
VectorgetRotation ()
std::vector
< BonePositionKey * > & 
getPositionKeys ()
std::vector
< BoneRotationKey * > & 
getRotationKeys ()
VectorgetPositionAtTime (float currentTime)
void getRotationAtTime (float currentTime, BoneMatrixType &m)
void addPositionKey (BonePositionKey *key)
void addRotationKey (BoneRotationKey *key)
void setParentName (const char *parentName)
void setPosition (Vector &pos)
void setRotation (Vector &rot)

Protected Attributes

std::string name_
std::string parentName_
Vector position_
Vector rotation_
std::vector
< BonePositionKey * > 
positionKeys_
std::vector
< BoneRotationKey * > 
rotationKeys_


Detailed Description

Definition at line 59 of file Bone.h.


Constructor & Destructor Documentation

Bone::Bone ( const char *  name  ) 

Definition at line 39 of file Bone.cpp.

References positionKeys_, and rotationKeys_.

Bone::~Bone (  )  [virtual]

Definition at line 55 of file Bone.cpp.


Member Function Documentation

const char* Bone::getName (  )  [inline]

Definition at line 65 of file Bone.h.

References name_.

Referenced by Model::setupBones().

const char* Bone::getParentName (  )  [inline]

Definition at line 66 of file Bone.h.

References parentName_.

Referenced by Model::setupBones().

Vector& Bone::getPosition (  )  [inline]

Definition at line 67 of file Bone.h.

References position_.

Referenced by Model::setupBones().

Vector& Bone::getRotation (  )  [inline]

Definition at line 68 of file Bone.h.

References rotation_.

Referenced by Model::setupBones().

std::vector<BonePositionKey *>& Bone::getPositionKeys (  )  [inline]

Definition at line 69 of file Bone.h.

References positionKeys_.

Referenced by ModelRendererMesh::drawVerts().

std::vector<BoneRotationKey *>& Bone::getRotationKeys (  )  [inline]

Definition at line 71 of file Bone.h.

References rotationKeys_.

Referenced by ModelRendererMesh::drawVerts().

Vector & Bone::getPositionAtTime ( float  currentTime  ) 

Definition at line 59 of file Bone.cpp.

References BonePositionKey::position, positionKeys_, and BonePositionKey::time.

Referenced by ModelRendererMesh::drawVerts().

void Bone::getRotationAtTime ( float  currentTime,
BoneMatrixType m 
)

Definition at line 96 of file Bone.cpp.

References ModelMaths::angleMatrix(), ModelMaths::angleQuaternion(), PI, q1, q2, ModelMaths::quaternionMatrix(), ModelMaths::quaternionSlerp(), BoneRotationKey::rotation, rotationKeys_, and BoneRotationKey::time.

Referenced by ModelRendererMesh::drawVerts().

void Bone::addPositionKey ( BonePositionKey key  )  [inline]

Definition at line 77 of file Bone.h.

References positionKeys_.

Referenced by MSModelFactory::loadFile().

void Bone::addRotationKey ( BoneRotationKey key  )  [inline]

Definition at line 79 of file Bone.h.

References rotationKeys_.

Referenced by MSModelFactory::loadFile().

void Bone::setParentName ( const char *  parentName  )  [inline]

Definition at line 81 of file Bone.h.

References parentName_.

Referenced by MSModelFactory::loadFile().

void Bone::setPosition ( Vector pos  )  [inline]

Definition at line 83 of file Bone.h.

References position_.

Referenced by MSModelFactory::loadFile().

void Bone::setRotation ( Vector rot  )  [inline]

Definition at line 85 of file Bone.h.

References rotation_.

Referenced by MSModelFactory::loadFile().


Member Data Documentation

std::string Bone::name_ [protected]

Definition at line 89 of file Bone.h.

Referenced by getName().

std::string Bone::parentName_ [protected]

Definition at line 90 of file Bone.h.

Referenced by getParentName(), and setParentName().

Vector Bone::position_ [protected]

Definition at line 91 of file Bone.h.

Referenced by getPosition(), and setPosition().

Vector Bone::rotation_ [protected]

Definition at line 91 of file Bone.h.

Referenced by getRotation(), and setRotation().

std::vector<BonePositionKey *> Bone::positionKeys_ [protected]

Definition at line 92 of file Bone.h.

Referenced by addPositionKey(), Bone(), getPositionAtTime(), and getPositionKeys().

std::vector<BoneRotationKey *> Bone::rotationKeys_ [protected]

Definition at line 93 of file Bone.h.

Referenced by addRotationKey(), Bone(), getRotationAtTime(), and getRotationKeys().


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:00 2009 for Scorched3D by  doxygen 1.5.3