Assimp  v3.1.1 (June 2014)
Assimp::Ogre::Bone Class Reference

Ogre Bone. More...

Public Member Functions

void AddChild (Bone *bone)
 Add child bone. More...
 
 Bone ()
 
void CalculateWorldMatrixAndDefaultPose (Skeleton *skeleton)
 Calculates the world matrix for bone and its children. More...
 
aiBoneConvertToAssimpBone (Skeleton *parent, const std::vector< aiVertexWeight > &boneWeights)
 Convert to Assimp bone (mesh bones). More...
 
aiNodeConvertToAssimpNode (Skeleton *parent, aiNode *parentNode=0)
 Convert to Assimp node (animation nodes). More...
 
bool IsParented () const
 Returns if this bone is parented. More...
 
uint16_t ParentId () const
 Parent index as uint16_t. Internally int32_t as -1 means unparented. More...
 

Public Attributes

std::vector< uint16_tchildren
 
aiMatrix4x4 defaultPose
 
uint16_t id
 
std::string name
 
Boneparent
 
int32_t parentId
 
aiVector3D position
 
aiQuaternion rotation
 
aiVector3D scale
 
aiMatrix4x4 worldMatrix
 

Detailed Description

Constructor & Destructor Documentation

Assimp::Ogre::Bone::Bone ( )

Member Function Documentation

void Assimp::Ogre::Bone::AddChild ( Bone bone)

Add child bone.

void Assimp::Ogre::Bone::CalculateWorldMatrixAndDefaultPose ( Skeleton skeleton)

Calculates the world matrix for bone and its children.

aiBone * Assimp::Ogre::Bone::ConvertToAssimpBone ( Skeleton parent,
const std::vector< aiVertexWeight > &  boneWeights 
)

Convert to Assimp bone (mesh bones).

aiNode * Assimp::Ogre::Bone::ConvertToAssimpNode ( Skeleton parent,
aiNode parentNode = 0 
)

Convert to Assimp node (animation nodes).

bool Assimp::Ogre::Bone::IsParented ( ) const

Returns if this bone is parented.

uint16_t Assimp::Ogre::Bone::ParentId ( ) const

Parent index as uint16_t. Internally int32_t as -1 means unparented.

Member Data Documentation

std::vector<uint16_t> Assimp::Ogre::Bone::children
aiMatrix4x4 Assimp::Ogre::Bone::defaultPose
uint16_t Assimp::Ogre::Bone::id
std::string Assimp::Ogre::Bone::name
Bone* Assimp::Ogre::Bone::parent
int32_t Assimp::Ogre::Bone::parentId
aiVector3D Assimp::Ogre::Bone::position
aiQuaternion Assimp::Ogre::Bone::rotation
aiVector3D Assimp::Ogre::Bone::scale
aiMatrix4x4 Assimp::Ogre::Bone::worldMatrix

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