#include <Bone.h>
Public Member Functions | |
| Bone (const char *name) | |
| virtual | ~Bone () |
| const char * | getName () |
| const char * | getParentName () |
| Vector & | getPosition () |
| Vector & | getRotation () |
| std::vector < BonePositionKey * > & | getPositionKeys () |
| std::vector < BoneRotationKey * > & | getRotationKeys () |
| Vector & | getPositionAtTime (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_ |
Definition at line 59 of file Bone.h.
| Bone::Bone | ( | const char * | name | ) |
| const char* Bone::getName | ( | ) | [inline] |
| const char* Bone::getParentName | ( | ) | [inline] |
| Vector& Bone::getPosition | ( | ) | [inline] |
| Vector& Bone::getRotation | ( | ) | [inline] |
| 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().
std::string Bone::name_ [protected] |
std::string Bone::parentName_ [protected] |
Vector Bone::position_ [protected] |
Vector Bone::rotation_ [protected] |
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().
1.5.3