![]() |
OGRE 2.2.5
Object-Oriented Graphics Rendering Engine
|
A bone in a skeleton. More...
#include <OgreOldBone.h>
Inheritance diagram for Ogre::v1::OldBone:Public Types | |
| typedef MapIterator< ChildOldNodeMap > | ChildOldNodeIterator |
| typedef unordered_map< String, OldNode * >::type | ChildOldNodeMap |
| typedef ConstMapIterator< ChildOldNodeMap > | ConstChildOldNodeIterator |
| enum | TransformSpace { TS_LOCAL , TS_PARENT , TS_WORLD } |
| Enumeration denoting the spaces which a transform can be relative to. More... | |
Public Member Functions | |
| OldBone (const String &name, unsigned short handle, Skeleton *creator) | |
| Constructor, not to be used directly (use OldBone::createChild or Skeleton::createBone) | |
| OldBone (unsigned short handle, Skeleton *creator) | |
| Constructor, not to be used directly (use OldBone::createChild or Skeleton::createBone) | |
| ~OldBone () | |
| const Quaternion & | _getBindingPoseInverseOrientation (void) const |
| Gets the inverted binding pose orientation. | |
| const Vector3 & | _getBindingPoseInversePosition (void) const |
| Gets the inverted binding pose position. | |
| const Vector3 & | _getBindingPoseInverseScale (void) const |
| Gets the inverted binding pose scale. | |
| virtual const Quaternion & | _getDerivedOrientation (void) const |
| Gets the orientation of the OldNode as derived from all parents. | |
| virtual const Vector3 & | _getDerivedPosition (void) const |
| Gets the position of the OldNode as derived from all parents. | |
| virtual const Vector3 & | _getDerivedScale (void) const |
| Gets the scaling factor of the OldNode as derived from all parents. | |
| virtual const Matrix4 & | _getFullTransform (void) const |
| Gets the full transformation matrix for this OldNode. | |
| void | _getOffsetTransform (Matrix4 &m) const |
| Gets the transform which takes bone space to current from the binding pose. | |
| virtual void | _setDerivedOrientation (const Quaternion &q) |
| Sets the final world orientation of the OldNode directly. | |
| virtual void | _setDerivedPosition (const Vector3 &pos) |
| Sets the final world position of the OldNode directly. | |
| virtual void | _update (bool updateChildren, bool parentHasChanged) |
| Internal method to update the OldNode. | |
| virtual void | addChild (OldNode *child) |
| Adds a (precreated) child scene OldNode to this OldNode. | |
| virtual void | cancelUpdate (OldNode *child) |
| Called by children to notify their parent that they no longer need an update. | |
| virtual Quaternion | convertLocalToWorldOrientation (const Quaternion &localOrientation) |
| Gets the world orientation of an orientation in the OldNode local space useful for simple transforms that don't require a child OldNode. | |
| virtual Vector3 | convertLocalToWorldPosition (const Vector3 &localPos) |
| Gets the world position of a point in the OldNode local space useful for simple transforms that don't require a child OldNode. | |
| virtual Quaternion | convertWorldToLocalOrientation (const Quaternion &worldOrientation) |
| Gets the local orientation, relative to this OldNode, of the given world-space orientation. | |
| virtual Vector3 | convertWorldToLocalPosition (const Vector3 &worldPos) |
| Gets the local position, relative to this OldNode, of the given world-space position. | |
| virtual OldNode * | createChild (const String &name, const Vector3 &translate=Vector3::ZERO, const Quaternion &rotate=Quaternion::IDENTITY) |
| Creates a new named OldNode as a child of this OldNode. | |
| virtual OldNode * | createChild (const Vector3 &translate=Vector3::ZERO, const Quaternion &rotate=Quaternion::IDENTITY) |
| Creates an unnamed new OldNode as a child of this OldNode. | |
| OldBone * | createChild (unsigned short handle, const Vector3 &translate=Vector3::ZERO, const Quaternion &rotate=Quaternion::IDENTITY) |
| Creates a new OldBone as a child of this bone. | |
| virtual OldNode * | getChild (const String &name) const |
| Gets a pointer to a named child OldNode. | |
| virtual OldNode * | getChild (unsigned short index) const |
| Gets a pointer to a child OldNode. | |
| virtual ChildOldNodeIterator | getChildIterator (void) |
| Retrieves an iterator for efficiently looping through all children of this OldNode. | |
| virtual ConstChildOldNodeIterator | getChildIterator (void) const |
| Retrieves an iterator for efficiently looping through all children of this OldNode. | |
| unsigned short | getHandle (void) const |
| Gets the numeric handle for this bone (unique within the skeleton). | |
| virtual bool | getInheritOrientation (void) const |
| Returns true if this OldNode is affected by orientation applied to the parent OldNode. | |
| virtual bool | getInheritScale (void) const |
| Returns true if this OldNode is affected by scaling factors applied to the parent OldNode. | |
| virtual const Quaternion & | getInitialOrientation (void) const |
| Gets the initial orientation of this OldNode, see setInitialState for more info. | |
| virtual const Vector3 & | getInitialPosition (void) const |
| Gets the initial position of this OldNode, see setInitialState for more info. | |
| virtual const Vector3 & | getInitialScale (void) const |
| Gets the initial position of this OldNode, see setInitialState for more info. | |
| virtual Listener * | getListener (void) const |
| Gets the current listener for this OldNode. | |
| virtual Matrix3 | getLocalAxes (void) const |
| Gets a matrix whose columns are the local axes based on the OldNodes orientation relative to it's parent. | |
| const String & | getName (void) const |
| Returns the name of the OldNode. | |
| virtual const Quaternion & | getOrientation () const |
| Returns a quaternion representing the OldNodes orientation. | |
| virtual OldNode * | getParent (void) const |
| Gets this OldNode's parent (NULL if this is the root). | |
| virtual const Vector3 & | getPosition (void) const |
| Gets the position of the OldNode relative to it's parent. | |
| virtual const Vector3 & | getScale (void) const |
| Gets the scaling factor of this OldNode. | |
| virtual Real | getSquaredViewDepth (const Camera *cam) const |
| Helper function, get the squared view depth. | |
| virtual const Any & | getUserAny (void) const |
| UserObjectBindings & | getUserObjectBindings () |
| Return an instance of user objects binding associated with this class. | |
| const UserObjectBindings & | getUserObjectBindings () const |
| Return an instance of user objects binding associated with this class. | |
| bool | isManuallyControlled () const |
| Getter for mManuallyControlled Flag. | |
| void | needUpdate (bool forceParentUpdate=false) |
| virtual unsigned short | numChildren (void) const |
| Reports the number of child OldNodes under this one. | |
| void | operator delete (void *ptr) |
| void | operator delete (void *ptr, const char *, int, const char *) |
| void | operator delete (void *ptr, void *) |
| void | operator delete[] (void *ptr) |
| void | operator delete[] (void *ptr, const char *, int, const char *) |
| void * | operator new (size_t sz) |
| void * | operator new (size_t sz, const char *file, int line, const char *func) |
| operator new, with debug line info | |
| void * | operator new (size_t sz, void *ptr) |
| placement operator new | |
| void * | operator new[] (size_t sz) |
| void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
| array operator new, with debug line info | |
| virtual void | pitch (const Radian &angle, TransformSpace relativeTo=TS_LOCAL) |
| Rotate the OldNode around the X-axis. | |
| virtual void | removeAllChildren (void) |
| Removes all child OldNodes attached to this OldNode. | |
| virtual OldNode * | removeChild (const String &name) |
| Drops the named child from this OldNode. | |
| virtual OldNode * | removeChild (OldNode *child) |
| Drops the specified child from this OldNode. | |
| virtual OldNode * | removeChild (unsigned short index) |
| Drops the specified child from this OldNode. | |
| virtual void | requestUpdate (OldNode *child, bool forceParentUpdate=false) |
| Called by children to notify their parent that they need an update. | |
| void | reset (void) |
| Resets the position and orientation of this OldBone to the original binding position. | |
| virtual void | resetOrientation (void) |
| Resets the OldNodes orientation (local axes as world axes, no rotation). | |
| virtual void | resetToInitialState (void) |
| Resets the position / orientation / scale of this OldNode to it's initial state, see setInitialState for more info. | |
| virtual void | roll (const Radian &angle, TransformSpace relativeTo=TS_LOCAL) |
| Rotate the OldNode around the Z-axis. | |
| virtual void | rotate (const Quaternion &q, TransformSpace relativeTo=TS_LOCAL) |
| Rotate the OldNode around an aritrary axis using a Quarternion. | |
| virtual void | rotate (const Vector3 &axis, const Radian &angle, TransformSpace relativeTo=TS_LOCAL) |
| Rotate the OldNode around an arbitrary axis. | |
| virtual void | scale (const Vector3 &scale) |
| Scales the OldNode, combining it's current scale with the passed in scaling factor. | |
| virtual void | scale (Real x, Real y, Real z) |
| Scales the OldNode, combining it's current scale with the passed in scaling factor. | |
| void | setBindingPose (void) |
| Sets the current position / orientation to be the 'binding pose' ie the layout in which bones were originally bound to a mesh. | |
| virtual void | setInheritOrientation (bool inherit) |
| Tells the OldNode whether it should inherit orientation from it's parent OldNode. | |
| virtual void | setInheritScale (bool inherit) |
| Tells the OldNode whether it should inherit scaling factors from it's parent OldNode. | |
| virtual void | setInitialState (void) |
| Sets the current transform of this OldNode to be the 'initial state' ie that position / orientation / scale to be used as a basis for delta values used in keyframe animation. | |
| virtual void | setListener (Listener *listener) |
| Sets a listener for this OldNode. | |
| void | setManuallyControlled (bool manuallyControlled) |
| Sets whether or not this bone is manually controlled. | |
| virtual void | setOrientation (const Quaternion &q) |
| Sets the orientation of this OldNode via a quaternion. | |
| virtual void | setOrientation (Real w, Real x, Real y, Real z) |
| Sets the orientation of this OldNode via quaternion parameters. | |
| virtual void | setPosition (const Vector3 &pos) |
| Sets the position of the OldNode relative to it's parent. | |
| virtual void | setPosition (Real x, Real y, Real z) |
| Sets the position of the OldNode relative to it's parent. | |
| virtual void | setScale (const Vector3 &scale) |
| Sets the scaling factor applied to this OldNode. | |
| virtual void | setScale (Real x, Real y, Real z) |
| Sets the scaling factor applied to this OldNode. | |
| virtual void | setUserAny (const Any &anything) |
| virtual void | translate (const Matrix3 &axes, const Vector3 &move, TransformSpace relativeTo=TS_PARENT) |
| Moves the OldNode along arbitrary axes. | |
| virtual void | translate (const Matrix3 &axes, Real x, Real y, Real z, TransformSpace relativeTo=TS_PARENT) |
| Moves the OldNode along arbitrary axes. | |
| virtual void | translate (const Vector3 &d, TransformSpace relativeTo=TS_PARENT) |
| Moves the OldNode along the Cartesian axes. | |
| virtual void | translate (Real x, Real y, Real z, TransformSpace relativeTo=TS_PARENT) |
| Moves the OldNode along the Cartesian axes. | |
| virtual void | yaw (const Radian &angle, TransformSpace relativeTo=TS_LOCAL) |
| Rotate the OldNode around the Y-axis. | |
Static Public Member Functions | |
| static void | processQueuedUpdates (void) |
| Process queued 'needUpdate' calls. | |
| static void | queueNeedUpdate (OldNode *n) |
| Queue a 'needUpdate' call to a OldNode safely. | |
A bone in a skeleton.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
| Ogre::v1::OldBone::OldBone | ( | unsigned short | handle, |
| Skeleton * | creator | ||
| ) |
Constructor, not to be used directly (use OldBone::createChild or Skeleton::createBone)
Constructor, not to be used directly (use OldBone::createChild or Skeleton::createBone)
| Ogre::v1::OldBone::~OldBone | ( | ) |
|
inline |
Gets the inverted binding pose orientation.
|
inline |
Gets the inverted binding pose position.
|
inline |
Gets the inverted binding pose scale.
|
virtualinherited |
Gets the orientation of the OldNode as derived from all parents.
|
virtualinherited |
Gets the position of the OldNode as derived from all parents.
|
virtualinherited |
Gets the scaling factor of the OldNode as derived from all parents.
|
virtualinherited |
Gets the full transformation matrix for this OldNode.
| void Ogre::v1::OldBone::_getOffsetTransform | ( | Matrix4 & | m | ) | const |
Gets the transform which takes bone space to current from the binding pose.
|
virtualinherited |
Sets the final world orientation of the OldNode directly.
|
virtualinherited |
Sets the final world position of the OldNode directly.
|
virtualinherited |
Internal method to update the OldNode.
| updateChildren | If true, the update cascades down to all children. Specify false if you wish to update children separately, e.g. because of a more selective SceneManager implementation. |
| parentHasChanged | This flag indicates that the parent transform has changed, so the child should retrieve the parent's transform and combine it with its own even if it hasn't changed itself. |
|
virtualinherited |
|
virtualinherited |
Called by children to notify their parent that they no longer need an update.
|
virtualinherited |
|
virtualinherited |
Gets the local orientation, relative to this OldNode, of the given world-space orientation.
|
virtualinherited |
Gets the local position, relative to this OldNode, of the given world-space position.
|
virtualinherited |
Creates a new named OldNode as a child of this OldNode.
| translate | Initial translation offset of child relative to parent |
| rotate | Initial rotation relative to parent |
|
virtualinherited |
| OldBone * Ogre::v1::OldBone::createChild | ( | unsigned short | handle, |
| const Vector3 & | translate = Vector3::ZERO, |
||
| const Quaternion & | rotate = Quaternion::IDENTITY |
||
| ) |
Creates a new OldBone as a child of this bone.
| handle | The numeric handle to give the new bone; must be unique within the Skeleton. |
| translate | Initial translation offset of child relative to parent |
| rotate | Initial rotation relative to parent |
Gets a pointer to a named child OldNode.
|
virtualinherited |
Gets a pointer to a child OldNode.
|
virtualinherited |
Retrieves an iterator for efficiently looping through all children of this OldNode.
|
virtualinherited |
Retrieves an iterator for efficiently looping through all children of this OldNode.
| unsigned short Ogre::v1::OldBone::getHandle | ( | void | ) | const |
Gets the numeric handle for this bone (unique within the skeleton).
|
virtualinherited |
Returns true if this OldNode is affected by orientation applied to the parent OldNode.
|
virtualinherited |
|
virtualinherited |
Gets the initial orientation of this OldNode, see setInitialState for more info.
|
virtualinherited |
Gets the initial position of this OldNode, see setInitialState for more info.
|
virtualinherited |
Gets the initial position of this OldNode, see setInitialState for more info.
|
inlinevirtualinherited |
Gets the current listener for this OldNode.
|
virtualinherited |
Gets a matrix whose columns are the local axes based on the OldNodes orientation relative to it's parent.
|
virtualinherited |
Returns a quaternion representing the OldNodes orientation.
|
virtualinherited |
Gets this OldNode's parent (NULL if this is the root).
|
virtualinherited |
Gets the position of the OldNode relative to it's parent.
|
virtualinherited |
Gets the scaling factor of this OldNode.
Helper function, get the squared view depth.
|
inlinevirtualinherited |
|
inlineinherited |
Return an instance of user objects binding associated with this class.
You can use it to associate one or more custom objects with this class instance.
|
inlineinherited |
Return an instance of user objects binding associated with this class.
You can use it to associate one or more custom objects with this class instance.
| bool Ogre::v1::OldBone::isManuallyControlled | ( | ) | const |
Getter for mManuallyControlled Flag.
|
virtual |
Reimplemented from Ogre::v1::OldNode.
Reimplemented in Ogre::v1::TagPoint.
|
virtualinherited |
Reports the number of child OldNodes under this one.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
operator new, with debug line info
|
inlineinherited |
placement operator new
|
inlineinherited |
|
inlineinherited |
array operator new, with debug line info
|
virtualinherited |
Rotate the OldNode around the X-axis.
|
staticinherited |
Process queued 'needUpdate' calls.
|
staticinherited |
Queue a 'needUpdate' call to a OldNode safely.
|
virtualinherited |
Removes all child OldNodes attached to this OldNode.
Does not delete the OldNodes, just detaches them from this parent, potentially to be reattached elsewhere.
|
virtualinherited |
|
virtualinherited |
Called by children to notify their parent that they need an update.
| forceParentUpdate | Even if the OldNode thinks it has already told it's parent, tell it anyway |
| void Ogre::v1::OldBone::reset | ( | void | ) |
Resets the position and orientation of this OldBone to the original binding position.
|
virtualinherited |
Resets the OldNodes orientation (local axes as world axes, no rotation).
|
virtualinherited |
Resets the position / orientation / scale of this OldNode to it's initial state, see setInitialState for more info.
|
virtualinherited |
Rotate the OldNode around the Z-axis.
|
virtualinherited |
Rotate the OldNode around an aritrary axis using a Quarternion.
|
virtualinherited |
Rotate the OldNode around an arbitrary axis.
|
virtualinherited |
Scales the OldNode, combining it's current scale with the passed in scaling factor.
Scales the OldNode, combining it's current scale with the passed in scaling factor.
| void Ogre::v1::OldBone::setBindingPose | ( | void | ) |
Sets the current position / orientation to be the 'binding pose' ie the layout in which bones were originally bound to a mesh.
|
virtualinherited |
Tells the OldNode whether it should inherit orientation from it's parent OldNode.
| inherit | If true, this OldNode's orientation will be affected by its parent's orientation. If false, it will not be affected. |
|
virtualinherited |
Tells the OldNode whether it should inherit scaling factors from it's parent OldNode.
| inherit | If true, this OldNode's scale will be affected by its parent's scale. If false, it will not be affected. |
|
virtualinherited |
Sets the current transform of this OldNode to be the 'initial state' ie that position / orientation / scale to be used as a basis for delta values used in keyframe animation.
|
inlinevirtualinherited |
| void Ogre::v1::OldBone::setManuallyControlled | ( | bool | manuallyControlled | ) |
Sets whether or not this bone is manually controlled.
|
virtualinherited |
Sets the orientation of this OldNode via a quaternion.
Sets the orientation of this OldNode via quaternion parameters.
|
virtualinherited |
Sets the position of the OldNode relative to it's parent.
Sets the position of the OldNode relative to it's parent.
|
virtualinherited |
Sets the scaling factor applied to this OldNode.
Sets the scaling factor applied to this OldNode.
|
inlinevirtualinherited |
|
virtualinherited |
Moves the OldNode along arbitrary axes.
| axes | A 3x3 Matrix containing 3 column vectors each representing the axes X, Y and Z respectively. In this format the standard cartesian axes would be expressed as:
1 0 0
0 1 0
0 0 1
i.e. the identity matrix. |
| move | Vector relative to the axes above. |
| relativeTo | The space which this transform is relative to. |
|
virtualinherited |
Moves the OldNode along arbitrary axes.
| axes | A 3x3 Matrix containing 3 column vectors each representing the axes X, Y and Z respectively. In this format the standard cartesian axes would be expressed as
1 0 0
0 1 0
0 0 1
i.e. the identity matrix. |
| x | The x translation component relative to the axes above. |
| y | The y translation component relative to the axes above. |
| z | The z translation component relative to the axes above. |
| relativeTo | The space which this transform is relative to. |
|
virtualinherited |
|
virtualinherited |
Moves the OldNode along the Cartesian axes.
| x | Real x value representing the translation. |
| y | Real y value representing the translation. |
| z | Real z value representing the translation. |
| relativeTo | The space which this transform is relative to. |
|
virtualinherited |
Rotate the OldNode around the Y-axis.