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

◆ Bone()

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

Member Function Documentation

◆ AddChild()

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

Add child bone.

◆ CalculateWorldMatrixAndDefaultPose()

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

Calculates the world matrix for bone and its children.

◆ ConvertToAssimpBone()

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

Convert to Assimp bone (mesh bones).

◆ ConvertToAssimpNode()

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

Convert to Assimp node (animation nodes).

◆ IsParented()

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

Returns if this bone is parented.

◆ ParentId()

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

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

Member Data Documentation

◆ children

std::vector<uint16_t> Assimp::Ogre::Bone::children

◆ defaultPose

aiMatrix4x4 Assimp::Ogre::Bone::defaultPose

◆ id

uint16_t Assimp::Ogre::Bone::id

◆ name

std::string Assimp::Ogre::Bone::name

◆ parent

Bone* Assimp::Ogre::Bone::parent

◆ parentId

int32_t Assimp::Ogre::Bone::parentId

◆ position

aiVector3D Assimp::Ogre::Bone::position

◆ rotation

aiQuaternion Assimp::Ogre::Bone::rotation

◆ scale

aiVector3D Assimp::Ogre::Bone::scale

◆ worldMatrix

aiMatrix4x4 Assimp::Ogre::Bone::worldMatrix

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