Urho3D::Skeleton Class Reference
Urho3D::Skeleton Class Reference
#include <Urho3D/Graphics/Skeleton.h>
Collaboration diagram for Urho3D::Skeleton:
Public Member Functions | |
Skeleton () | |
Construct an empty skeleton. | |
~Skeleton () | |
Destruct. | |
bool | Load (Deserializer &source) |
Read from a stream. Return true if successful. | |
bool | Save (Serializer &dest) const |
Write to a stream. Return true if successful. | |
void | Define (const Skeleton &src) |
Define from another skeleton. | |
void | SetRootBoneIndex (unsigned index) |
Set root bone's index. | |
void | ClearBones () |
Clear bones. | |
void | Reset () |
Reset all animating bones to initial positions. | |
const Vector< Bone > & | GetBones () const |
Return all bones. | |
Vector< Bone > & | GetModifiableBones () |
Return modifiable bones. | |
unsigned | GetNumBones () const |
Bone * | GetRootBone () |
unsigned | GetBoneIndex (const String &boneName) const |
Return index of the bone by name. Return M_MAX_UNSIGNED if not found. | |
unsigned | GetBoneIndex (const StringHash &boneNameHash) const |
Return index of the bone by name hash. Return M_MAX_UNSIGNED if not found. | |
unsigned | GetBoneIndex (const Bone *bone) const |
Return index of the bone by the bone pointer. Return M_MAX_UNSIGNED if not found. | |
Bone * | GetBoneParent (const Bone *bone) |
Return parent of the given bone. Return null for root bones. | |
Bone * | GetBone (unsigned index) |
Bone * | GetBone (const String &name) |
Return bone by name. | |
Bone * | GetBone (const char *name) |
Return bone by name. | |
Bone * | GetBone (const StringHash &boneNameHash) |
Return bone by name hash. | |
void | ResetSilent () |
Reset all animating bones to initial positions without marking the nodes dirty. Requires the node dirtying to be performed later. | |
Private Attributes | |
Vector< Bone > | bones_ |
Bones. | |
unsigned | rootBoneIndex_ |
Root bone index. | |
Detailed Description
Hierarchical collection of bones.
Member Function Documentation
◆ GetBone()
Bone * Urho3D::Skeleton::GetBone | ( | unsigned | index | ) |
Return bone by index.
Here is the caller graph for this function:
◆ GetNumBones()
|
inline |
Return number of bones.
Here is the caller graph for this function:
◆ GetRootBone()
Bone * Urho3D::Skeleton::GetRootBone | ( | ) |
Return root bone.
Here is the call graph for this function:
Here is the caller graph for this function:
The documentation for this class was generated from the following files:
- Source/Urho3D/Graphics/Skeleton.h
- Source/Urho3D/Graphics/Skeleton.cpp