![]() |
OGRE
2.2.4
Object-Oriented Graphics Rendering Engine
|
Class representing a Bone in the join hierarchy of a skeleton. More...
#include <OgreBone.h>
Inheritance diagram for Ogre::Bone:Public Types | |
| typedef vector< Bone * >::type | BoneVec |
| typedef vector< TagPoint * >::type | TagPointVec |
Public Member Functions | |
| Bone () | |
| virtual | ~Bone () |
| void | _deinitialize (bool debugCheckLifoOrder=true) |
| Matrix4 | _getDerivedTransform (void) const |
| Gets the derived transform in world space. More... | |
| FORCEINLINE const SimpleMatrixAf4x3 & | _getFullTransform (void) const |
| Gets the full transformation matrix for this node. More... | |
| const SimpleMatrixAf4x3 & | _getFullTransformUpdated (void) |
| _getDerivedScaleUpdated remarks. More... | |
| FORCEINLINE const SimpleMatrixAf4x3 & | _getLocalSpaceTransform (void) const |
| Gets the transformation matrix for this bone in local space (i.e. More... | |
| BoneTransform & | _getTransform () |
| Returns a direct access to the Transform state. More... | |
| void | _initialize (IdType id, BoneMemoryManager *boneMemoryManager, Bone *parent, ArrayMatrixAf4x3 const *RESTRICT_ALIAS reverseBind) |
| void | _memoryRebased (void) |
| Internal use. Called from BoneMemoryManager's rebases (i.e. cleanups, grows) More... | |
| void | _setNodeParent (Node *nodeParent) |
| Sets a regular Node to be parent of this Bone. More... | |
| void | _setReverseBindPtr (const ArrayMatrixAf4x3 *ptr) |
| void | addTagPoint (TagPoint *tagPoint) |
| Makes the TagPoint child of this Bone. More... | |
| Bone * | getChild (size_t index) |
| Gets a pointer to a child node. More... | |
| const Bone * | getChild (size_t index) const |
| const BoneVec & | getChildren (void) |
| Retrieves the container for efficiently iterating through all children of this bone. More... | |
| uint16 | getDepthLevel () const |
| Returns how deep in the hierarchy we are (eg. 0 -> root node, 1 -> child of root) More... | |
| IdType | getId () const |
| Get the unique id of this object. More... | |
| bool | getInheritOrientation (void) const |
| Returns true if this node is affected by orientation applied to the parent node. More... | |
| bool | getInheritScale (void) const |
| Returns true if this node is affected by scaling factors applied to the parent node. More... | |
| const String & | getName (void) const |
| Returns the name of the node. More... | |
| size_t | getNumChildren (void) const |
| Reports the number of child nodes under this one. More... | |
| Quaternion | getOrientation () const |
| Returns a quaternion representing the nodes orientation. More... | |
| Bone * | getParent (void) const |
| Gets this Bones's parent (NULL if this is the root). More... | |
| Vector3 | getPosition (void) const |
| Gets the position of the node relative to its parent. More... | |
| Vector3 | getScale (void) const |
| Gets the scale of the node relative to its parent. More... | |
| void | operator delete (void *ptr) |
| void | operator delete (void *ptr, void *) |
| void | operator delete (void *ptr, const char *, int, const char *) |
| void | operator delete[] (void *ptr) |
| void | operator delete[] (void *ptr, const char *, int, const char *) |
| void * | operator new (size_t sz, const char *file, int line, const char *func) |
| operator new, with debug line info More... | |
| void * | operator new (size_t sz) |
| void * | operator new (size_t sz, void *ptr) |
| placement operator new More... | |
| void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
| array operator new, with debug line info More... | |
| void * | operator new[] (size_t sz) |
| bool | operator() (const IdObject *left, const IdObject *right) |
| bool | operator() (const IdObject &left, const IdObject &right) |
| void | removeTagPoint (TagPoint *tagPoint) |
| void | setInheritOrientation (bool inherit) |
| Tells the Bone whether it should inherit orientation from it's parent node. More... | |
| void | setInheritScale (bool inherit) |
| Tells the node whether it should inherit scaling factors from it's parent node. More... | |
| void | setName (const String &name) |
| Sets a custom name for this node. Doesn't have to be unique. More... | |
| void | setOrientation (Quaternion q) |
| Sets a given orientation in local space (ie. More... | |
| void | setPosition (const Vector3 &pos) |
| Sets the position of the node relative to its parent. More... | |
| void | setScale (const Vector3 &pos) |
| Sets the scale of the node relative to its parent. More... | |
Static Public Member Functions | |
| static void | updateAllTransforms (const size_t numNodes, BoneTransform t, ArrayMatrixAf4x3 const *RESTRICT_ALIAS reverseBind, size_t numBinds) |
| TODO. More... | |
Public Attributes | |
| size_t | mGlobalIndex |
| Index in the vector holding this node reference (could be our parent node, or a global array tracking all created nodes to avoid memory leaks). More... | |
| size_t | mParentIndex |
| Index in the vector holding this node reference (could be our parent node, or a global array tracking all created nodes to avoid memory leaks). More... | |
Class representing a Bone in the join hierarchy of a skeleton.
| typedef vector<Bone*>::type Ogre::Bone::BoneVec |
| typedef vector<TagPoint*>::type Ogre::Bone::TagPointVec |
| Ogre::Bone::Bone | ( | ) |
|
virtual |
| void Ogre::Bone::_deinitialize | ( | bool | debugCheckLifoOrder = true | ) |
| Matrix4 Ogre::Bone::_getDerivedTransform | ( | void | ) | const |
Gets the derived transform in world space.
|
inline |
Gets the full transformation matrix for this node.
References Ogre::BoneTransform::mFinalTransform, Ogre::BoneTransform::mIndex, and RESTRICT_ALIAS.
| const SimpleMatrixAf4x3& Ogre::Bone::_getFullTransformUpdated | ( | void | ) |
_getDerivedScaleUpdated remarks.
_getFullTransform
|
inline |
Gets the transformation matrix for this bone in local space (i.e.
as if the skeleton wasn't attached to a SceneNode).
References Ogre::BoneTransform::mDerivedTransform, and Ogre::BoneTransform::mIndex.
|
inline |
Returns a direct access to the Transform state.
| void Ogre::Bone::_initialize | ( | IdType | id, |
| BoneMemoryManager * | boneMemoryManager, | ||
| Bone * | parent, | ||
| ArrayMatrixAf4x3 const *RESTRICT_ALIAS | reverseBind | ||
| ) |
| void Ogre::Bone::_memoryRebased | ( | void | ) |
Internal use. Called from BoneMemoryManager's rebases (i.e. cleanups, grows)
| void Ogre::Bone::_setNodeParent | ( | Node * | nodeParent | ) |
Sets a regular Node to be parent of this Bone.
DO NOT USE THIS FUNCTION IF YOU DON'T KNOW WHAT YOU'RE DOING. If you want to use a regular Node to control a bone,
|
inline |
|
inline |
Gets a pointer to a child node.
|
inline |
|
inline |
Retrieves the container for efficiently iterating through all children of this bone.
|
inline |
Returns how deep in the hierarchy we are (eg. 0 -> root node, 1 -> child of root)
|
inlineinherited |
Get the unique id of this object.
| bool Ogre::Bone::getInheritOrientation | ( | void | ) | const |
Returns true if this node is affected by orientation applied to the parent node.
| bool Ogre::Bone::getInheritScale | ( | void | ) | const |
Returns true if this node is affected by scaling factors applied to the parent node.
|
inline |
Returns the name of the node.
|
inline |
Reports the number of child nodes under this one.
|
inline |
Returns a quaternion representing the nodes orientation.
|
inline |
Gets this Bones's parent (NULL if this is the root).
|
inline |
Gets the position of the node relative to its parent.
|
inline |
Gets the scale of the node relative to its parent.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
operator new, with debug line info
|
inlineinherited |
|
inlineinherited |
placement operator new
|
inlineinherited |
array operator new, with debug line info
|
inlineinherited |
| void Ogre::Bone::removeTagPoint | ( | TagPoint * | tagPoint | ) |
| void Ogre::Bone::setInheritOrientation | ( | bool | inherit | ) |
Tells the Bone whether it should inherit orientation from it's parent node.
| inherit | If true, this node's orientation will be affected by its parent's orientation. If false, it will not be affected. |
| void Ogre::Bone::setInheritScale | ( | bool | inherit | ) |
Tells the node whether it should inherit scaling factors from it's parent node.
| inherit | If true, this node's scale will be affected by its parent's scale. If false, it will not be affected. |
|
inline |
Sets a custom name for this node. Doesn't have to be unique.
|
inline |
Sets a given orientation in local space (ie.
relative to its parent)
|
inline |
Sets the position of the node relative to its parent.
|
inline |
Sets the scale of the node relative to its parent.
|
static |
| size_t Ogre::Bone::mGlobalIndex |
Index in the vector holding this node reference (could be our parent node, or a global array tracking all created nodes to avoid memory leaks).
Used for O(1) removals.
| size_t Ogre::Bone::mParentIndex |
Index in the vector holding this node reference (could be our parent node, or a global array tracking all created nodes to avoid memory leaks).
Used for O(1) removals.