#include <OgreBone.h>
Inheritance diagram for Ogre::Bone:
Public Types | |
typedef HashMap< String, Node * > | ChildNodeMap |
typedef MapIterator< ChildNodeMap > | ChildNodeIterator |
typedef ConstMapIterator< ChildNodeMap > | ConstChildNodeIterator |
enum | TransformSpace { TS_LOCAL, TS_PARENT, TS_WORLD } |
Enumeration denoting the spaces which a transform can be relative to. More... | |
Public Member Functions | |
Bone (unsigned short handle, Skeleton *creator) | |
Constructor, not to be used directly (use Bone::createChild or Skeleton::createBone). | |
Bone (const String &name, unsigned short handle, Skeleton *creator) | |
Constructor, not to be used directly (use Bone::createChild or Skeleton::createBone). | |
~Bone () | |
Bone * | createChild (unsigned short handle, const Vector3 &translate=Vector3::ZERO, const Quaternion &rotate=Quaternion::IDENTITY) |
Creates a new Bone as a child of this bone. | |
unsigned short | getHandle (void) const |
Gets the numeric handle for this bone (unique within the skeleton). | |
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. | |
void | reset (void) |
Resets the position and orientation of this Bone to the original binding position. | |
void | setManuallyControlled (bool manuallyControlled) |
Sets whether or not this bone is manually controlled. | |
bool | isManuallyControlled () const |
Getter for mManuallyControlled Flag. | |
const Matrix4 & | _getBindingPoseInverseTransform (void) const |
Gets the inverse transform which takes bone space to origin from the binding pose. | |
const String & | getName (void) const |
Returns the name of the node. | |
virtual Node * | getParent (void) const |
Gets this node's parent (NULL if this is the root). | |
virtual const Quaternion & | getOrientation () const |
Returns a quaternion representing the nodes orientation. | |
virtual void | setOrientation (const Quaternion &q) |
Sets the orientation of this node via a quaternion. | |
virtual void | setOrientation (Real w, Real x, Real y, Real z) |
Sets the orientation of this node via quaternion parameters. | |
virtual void | resetOrientation (void) |
Resets the nodes orientation (local axes as world axes, no rotation). | |
virtual void | setPosition (const Vector3 &pos) |
Sets the position of the node relative to it's parent. | |
virtual void | setPosition (Real x, Real y, Real z) |
Sets the position of the node relative to it's parent. | |
virtual const Vector3 & | getPosition (void) const |
Gets the position of the node relative to it's parent. | |
virtual void | setScale (const Vector3 &scale) |
Sets the scaling factor applied to this node. | |
virtual void | setScale (Real x, Real y, Real z) |
Sets the scaling factor applied to this node. | |
virtual const Vector3 & | getScale (void) const |
Gets the scaling factor of this node. | |
virtual void | setInheritScale (bool inherit) |
Tells the node whether it should inherit scaling factors from it's parent node. | |
virtual bool | getInheritScale (void) const |
Returns true if this node is affected by scaling factors applied to the parent node. | |
virtual void | scale (const Vector3 &scale) |
Scales the node, combining it's current scale with the passed in scaling factor. | |
virtual void | scale (Real x, Real y, Real z) |
Scales the node, combining it's current scale with the passed in scaling factor. | |
virtual void | translate (const Vector3 &d, TransformSpace relativeTo=TS_PARENT) |
Moves the node along the cartesian axes. | |
virtual void | translate (Real x, Real y, Real z, TransformSpace relativeTo=TS_PARENT) |
Moves the node along the cartesian axes. | |
virtual void | translate (const Matrix3 &axes, const Vector3 &move, TransformSpace relativeTo=TS_PARENT) |
Moves the node along arbitrary axes. | |
virtual void | translate (const Matrix3 &axes, Real x, Real y, Real z, TransformSpace relativeTo=TS_PARENT) |
Moves the node along arbitrary axes. | |
virtual void | roll (const Radian &angle, TransformSpace relativeTo=TS_LOCAL) |
Rotate the node around the Z-axis. | |
virtual void | pitch (const Radian &angle, TransformSpace relativeTo=TS_LOCAL) |
Rotate the node around the X-axis. | |
virtual void | yaw (const Radian &angle, TransformSpace relativeTo=TS_LOCAL) |
Rotate the node around the Y-axis. | |
virtual void | rotate (const Vector3 &axis, const Radian &angle, TransformSpace relativeTo=TS_LOCAL) |
Rotate the node around an arbitrary axis. | |
virtual void | rotate (const Quaternion &q, TransformSpace relativeTo=TS_LOCAL) |
Rotate the node around an aritrary axis using a Quarternion. | |
virtual Matrix3 | getLocalAxes (void) const |
Gets a matrix whose columns are the local axes based on the nodes orientation relative to it's parent. | |
virtual Node * | createChild (const Vector3 &translate=Vector3::ZERO, const Quaternion &rotate=Quaternion::IDENTITY) |
Creates an unnamed new Node as a child of this node. | |
virtual Node * | createChild (const String &name, const Vector3 &translate=Vector3::ZERO, const Quaternion &rotate=Quaternion::IDENTITY) |
Creates a new named Node as a child of this node. | |
virtual void | addChild (Node *child) |
Adds a (precreated) child scene node to this node. | |
virtual unsigned short | numChildren (void) const |
Reports the number of child nodes under this one. | |
virtual Node * | getChild (unsigned short index) const |
Gets a pointer to a child node. | |
virtual Node * | getChild (const String &name) const |
Gets a pointer to a named child node. | |
virtual ChildNodeIterator | getChildIterator (void) |
Retrieves an iterator for efficiently looping through all children of this node. | |
virtual ConstChildNodeIterator | getChildIterator (void) const |
Retrieves an iterator for efficiently looping through all children of this node. | |
virtual Node * | removeChild (unsigned short index) |
Drops the specified child from this node. | |
virtual Node * | removeChild (Node *child) |
Drops the specified child from this node. | |
virtual Node * | removeChild (const String &name) |
Drops the named child from this node. | |
virtual void | removeAllChildren (void) |
Removes all child Nodes attached to this node. | |
virtual const Quaternion & | _getDerivedOrientation (void) const |
Gets the orientation of the node as derived from all parents. | |
virtual const Vector3 & | _getDerivedPosition (void) const |
Gets the position of the node as derived from all parents. | |
virtual const Vector3 & | _getDerivedScale (void) const |
Gets the scaling factor of the node as derived from all parents. | |
virtual Matrix4 | _getFullTransform (void) const |
Gets the full transformation matrix for this node. | |
virtual void | _update (bool updateChildren, bool parentHasChanged) |
Internal method to update the Node. | |
const MaterialPtr & | getMaterial (void) const |
Overridden from Renderable. | |
void | getRenderOperation (RenderOperation &op) |
Overridden from Renderable. | |
void | getWorldTransforms (Matrix4 *xform) const |
Overridden from Renderable. | |
const Quaternion & | getWorldOrientation (void) const |
| |
const Vector3 & | getWorldPosition (void) const |
| |
virtual void | setInitialState (void) |
Sets the current transform of this node 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 | resetToInitialState (void) |
Resets the position / orientation / scale of this node to it's initial state, see setInitialState for more info. | |
virtual const Vector3 & | getInitialPosition (void) const |
Gets the initial position of this node, see setInitialState for more info. | |
virtual const Quaternion & | getInitialOrientation (void) const |
Gets the initial orientation of this node, see setInitialState for more info. | |
virtual const Vector3 & | getInitialScale (void) const |
Gets the initial position of this node, see setInitialState for more info. | |
virtual void | _weightedTransform (Real weight, const Vector3 &translate, const Quaternion &rotate, const Vector3 &scale) |
Internal weighted transform method. | |
Real | getSquaredViewDepth (const Camera *cam) const |
Overridden, see Renderable. | |
virtual void | needUpdate () |
To be called in the event of transform changes to this node that require it's recalculation. | |
virtual void | requestUpdate (Node *child) |
Called by children to notify their parent that they need an update. | |
virtual void | cancelUpdate (Node *child) |
Called by children to notify their parent that they no longer need an update. | |
const LightList & | getLights (void) const |
| |
virtual Technique * | getTechnique (void) const |
Retrieves a pointer to the Material Technique this renderable object uses. | |
virtual unsigned short | getNumWorldTransforms (void) const |
Returns the number of world transform matrices this renderable requires. | |
virtual bool | useIdentityProjection (void) const |
Returns whether or not to use an 'identity' projection. | |
virtual bool | useIdentityView (void) const |
Returns whether or not to use an 'identity' projection. | |
virtual SceneDetailLevel | getRenderDetail () const |
Returns the preferred rasterisation mode of this renderable. | |
virtual bool | getNormaliseNormals (void) const |
Returns whether or not this Renderable wishes the hardware to normalise normals. | |
virtual const PlaneList & | getClipPlanes () const |
virtual bool | getCastsShadows (void) const |
Method which reports whether this renderable would normally cast a shadow. | |
void | setCustomParameter (size_t index, const Vector4 &value) |
Sets a custom parameter for this Renderable, which may be used to drive calculations for this specific Renderable, like GPU program parameters. | |
const Vector4 & | getCustomParameter (size_t index) const |
Gets the custom value associated with this Renderable at the given index. | |
virtual void | _updateCustomGpuParameter (const GpuProgramParameters::AutoConstantEntry &constantEntry, GpuProgramParameters *params) const |
Update a custom GpuProgramParameters constant which is derived from information only this Renderable knows. | |
virtual void | setRenderDetailOverrideable (bool override) |
Sets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting. | |
virtual bool | getRenderDetailOverrideable (void) const |
Gets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting. | |
Protected Types | |
typedef std::set< Node * > | ChildUpdateSet |
typedef std::map< size_t, Vector4 > | CustomParameterMap |
Protected Member Functions | |
Node * | createChildImpl (void) |
See Node. | |
Node * | createChildImpl (const String &name) |
See Node. | |
virtual void | setParent (Node *parent) |
Only available internally - notification of parent. | |
virtual void | _updateFromParent (void) const |
Triggers the node to update it's combined transforms. | |
void | makeTransform (const Vector3 &position, const Vector3 &scale, const Quaternion &orientation, Matrix4 &destMatrix) const |
Internal method for building a Matrix4 from orientation / scale / position. | |
void | makeInverseTransform (const Vector3 &position, const Vector3 &scale, const Quaternion &orientation, Matrix4 &destMatrix) |
Internal method for building an inverse Matrix4 from orientation / scale / position. | |
Protected Attributes | |
unsigned short | mHandle |
The numeric handle of this bone. | |
bool | mManuallyControlled |
Bones set as manuallyControlled are not reseted in Skeleton::reset(). | |
Skeleton * | mCreator |
Pointer back to creator, for child creation (not smart ptr so child does not preserve parent). | |
Matrix4 | mBindDerivedInverseTransform |
The inversed derived transform of the bone in the binding pose. | |
Node * | mParent |
Pointer to parent node. | |
ChildNodeMap | mChildren |
Collection of pointers to direct children; hashmap for efficiency. | |
ChildUpdateSet | mChildrenToUpdate |
List of children which need updating, used if self is not out of date but children are. | |
bool | mNeedParentUpdate |
Flag to indicate own transform from parent is out of date. | |
bool | mNeedChildUpdate |
Flag indicating that all children need to be updated. | |
bool | mParentNotified |
Flag indicating that parent has been notified about update request. | |
String | mName |
Friendly name of this node, can be automatically generated if you don't care. | |
Quaternion | mOrientation |
Stores the orientation of the node relative to it's parent. | |
Vector3 | mPosition |
Stores the position/translation of the node relative to its parent. | |
Vector3 | mScale |
Stores the scaling factor applied to this node. | |
bool | mInheritScale |
Stores whether this node inherits scale from it's parent. | |
MaterialPtr | mpMaterial |
Material pointer should this node be rendered. | |
Quaternion | mDerivedOrientation |
Cached combined orientation. | |
Vector3 | mDerivedPosition |
Cached combined position. | |
Vector3 | mDerivedScale |
Cached combined scale. | |
Vector3 | mInitialPosition |
The position to use as a base for keyframe animation. | |
Quaternion | mInitialOrientation |
The orientation to use as a base for keyframe animation. | |
Vector3 | mInitialScale |
The scale to use as a base for keyframe animation. | |
Real | mAccumAnimWeight |
Vector3 | mTransFromInitial |
Quaternion | mRotFromInitial |
Vector3 | mScaleFromInitial |
Matrix4 | mCachedTransform |
Cached derived transform as a 4x4 matrix. | |
bool | mCachedTransformOutOfDate |
CustomParameterMap | mCustomParameters |
bool | mRenderDetailOverrideable |
Static Protected Attributes | |
unsigned long | msNextGeneratedNameExt |
Incremented count for next name extension. | |
const PlaneList | msDummyPlaneList |
Definition at line 41 of file OgreBone.h.
|
Definition at line 65 of file OgreNode.h. |
|
Definition at line 64 of file OgreNode.h. |
|
Definition at line 74 of file OgreNode.h. |
|
Definition at line 66 of file OgreNode.h. |
|
Definition at line 251 of file OgreRenderable.h. |
|
Enumeration denoting the spaces which a transform can be relative to.
Definition at line 55 of file OgreNode.h. |
|
Constructor, not to be used directly (use Bone::createChild or Skeleton::createBone).
|
|
Constructor, not to be used directly (use Bone::createChild or Skeleton::createBone).
|
|
|
|
Gets the inverse transform which takes bone space to origin from the binding pose.
|
|
Gets the orientation of the node as derived from all parents.
|
|
Gets the position of the node as derived from all parents.
|
|
Gets the scaling factor of the node as derived from all parents.
|
|
Gets the full transformation matrix for this node.
|
|
Internal method to update the Node.
Reimplemented in Ogre::SceneNode, Ogre::TagPoint, and Ogre::BspSceneNode. |
|
Update a custom GpuProgramParameters constant which is derived from information only this Renderable knows.
Reimplemented in Ogre::TerrainRenderable. Definition at line 219 of file OgreRenderable.h. References Ogre::GpuProgramParameters::AutoConstantEntry::data, Ogre::GpuProgramParameters::AutoConstantEntry::index, and params. |
|
Triggers the node to update it's combined transforms.
Reimplemented in Ogre::TagPoint. |
|
Internal weighted transform method.
|
|
Adds a (precreated) child scene node to this node. If it is attached to another node, it must be detached first.
|
|
Called by children to notify their parent that they no longer need an update.
|
|
Creates a new named Node as a child of this node.
|
|
Creates an unnamed new Node as a child of this node.
|
|
Creates a new Bone as a child of this bone.
|
|
See Node.
Implements Ogre::Node. |
|
See Node.
Implements Ogre::Node. |
|
Method which reports whether this renderable would normally cast a shadow.
Reimplemented in Ogre::StaticGeometry::GeometryBucket, and Ogre::SubEntity. Definition at line 154 of file OgreRenderable.h. |
|
Gets a pointer to a named child node.
|
|
Gets a pointer to a child node.
|
|
Retrieves an iterator for efficiently looping through all children of this node.
|
|
Retrieves an iterator for efficiently looping through all children of this node.
|
|
Definition at line 146 of file OgreRenderable.h. References Ogre::PlaneList. |
|
Gets the custom value associated with this Renderable at the given index.
Definition at line 180 of file OgreRenderable.h. References OGRE_EXCEPT. |
|
Gets the numeric handle for this bone (unique within the skeleton).
|
|
Returns true if this node is affected by scaling factors applied to the parent node.
|
|
Gets the initial orientation of this node, see setInitialState for more info.
|
|
Gets the initial position of this node, see setInitialState for more info.
|
|
Gets the initial position of this node, see setInitialState for more info.
|
|
Implements Ogre::Renderable. Reimplemented in Ogre::TagPoint. |
|
Gets a matrix whose columns are the local axes based on the nodes orientation relative to it's parent.
|
|
Overridden from Renderable.
Implements Ogre::Renderable. |
|
Returns the name of the node.
|
|
Returns whether or not this Renderable wishes the hardware to normalise normals.
Reimplemented in Ogre::SubEntity. Definition at line 138 of file OgreRenderable.h. |
|
Returns the number of world transform matrices this renderable requires.
Reimplemented in Ogre::BorderRenderable, and Ogre::SubEntity. Definition at line 104 of file OgreRenderable.h. |
|
Returns a quaternion representing the nodes orientation.
|
|
Gets this node's parent (NULL if this is the root).
|
|
Gets the position of the node relative to it's parent.
|
|
Returns the preferred rasterisation mode of this renderable.
Reimplemented in Ogre::SubEntity. Definition at line 135 of file OgreRenderable.h. References Ogre::SceneDetailLevel, and Ogre::SDL_SOLID. |
|
Gets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting.
Reimplemented in Ogre::BorderRenderable. Definition at line 243 of file OgreRenderable.h. |
|
Overridden from Renderable.
Implements Ogre::Renderable. Reimplemented in Ogre::OctreeNode. |
|
Gets the scaling factor of this node.
|
|
Overridden, see Renderable.
Implements Ogre::Renderable. |
|
Retrieves a pointer to the Material Technique this renderable object uses.
Reimplemented in Ogre::StaticGeometry::GeometryBucket, and Ogre::SubEntity. Definition at line 69 of file OgreRenderable.h. |
|
Implements Ogre::Renderable. |
|
Implements Ogre::Renderable. |
|
Overridden from Renderable.
Implements Ogre::Renderable. |
|
Getter for mManuallyControlled Flag.
|
|
Internal method for building an inverse Matrix4 from orientation / scale / position.
|
|
Internal method for building a Matrix4 from orientation / scale / position.
|
|
To be called in the event of transform changes to this node that require it's recalculation.
Reimplemented in Ogre::TagPoint. |
|
Reports the number of child nodes under this one.
|
|
Rotate the node around the X-axis.
|
|
Removes all child Nodes attached to this node. Does not delete the nodes, just detaches them from this parent, potentially to be reattached elsewhere. |
|
Drops the named child from this node.
Reimplemented in Ogre::OctreeNode. |
|
Drops the specified child from this node.
Reimplemented in Ogre::OctreeNode. |
|
Drops the specified child from this node.
Reimplemented in Ogre::OctreeNode. |
|
Called by children to notify their parent that they need an update.
|
|
Resets the position and orientation of this Bone to the original binding position.
|
|
Resets the nodes orientation (local axes as world axes, no rotation).
|
|
Resets the position / orientation / scale of this node to it's initial state, see setInitialState for more info.
|
|
Rotate the node around the Z-axis.
|
|
Rotate the node around an aritrary axis using a Quarternion.
|
|
Rotate the node around an arbitrary axis.
|
|
Scales the node, combining it's current scale with the passed in scaling factor.
|
|
Scales the node, combining it's current scale with the passed in scaling factor.
|
|
Sets the current position / orientation to be the 'binding pose' ie the layout in which bones were originally bound to a mesh.
|
|
Sets a custom parameter for this Renderable, which may be used to drive calculations for this specific Renderable, like GPU program parameters.
Definition at line 171 of file OgreRenderable.h. |
|
Tells the node whether it should inherit scaling factors from it's parent node.
|
|
Sets the current transform of this node to be the 'initial state' ie that position / orientation / scale to be used as a basis for delta values used in keyframe animation.
|
|
Sets whether or not this bone is manually controlled.
|
|
Sets the orientation of this node via quaternion parameters.
|
|
Sets the orientation of this node via a quaternion.
|
|
Only available internally - notification of parent.
Reimplemented in Ogre::SceneNode. |
|
Sets the position of the node relative to it's parent.
|
|
Sets the position of the node relative to it's parent.
|
|
Sets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting.
Definition at line 235 of file OgreRenderable.h. |
|
Sets the scaling factor applied to this node.
|
|
Sets the scaling factor applied to this node.
|
|
Moves the node along arbitrary axes.
|
|
Moves the node along arbitrary axes.
|
|
Moves the node along the cartesian axes.
|
|
Moves the node along the cartesian axes.
|
|
Returns whether or not to use an 'identity' projection.
Reimplemented in Ogre::BorderRenderable, Ogre::OverlayElement, and Ogre::Rectangle2D. Definition at line 114 of file OgreRenderable.h. |
|
Returns whether or not to use an 'identity' projection.
Reimplemented in Ogre::BorderRenderable, Ogre::OverlayElement, and Ogre::Rectangle2D. Definition at line 124 of file OgreRenderable.h. |
|
Rotate the node around the Y-axis.
Reimplemented in Ogre::SceneNode. |
|
Definition at line 180 of file OgreNode.h. |
|
The inversed derived transform of the bone in the binding pose.
Definition at line 118 of file OgreBone.h. |
|
Cached derived transform as a 4x4 matrix.
Definition at line 189 of file OgreNode.h. |
|
Definition at line 190 of file OgreNode.h. |
|
Collection of pointers to direct children; hashmap for efficiency.
Definition at line 72 of file OgreNode.h. |
|
List of children which need updating, used if self is not out of date but children are.
Definition at line 76 of file OgreNode.h. |
|
Pointer back to creator, for child creation (not smart ptr so child does not preserve parent).
Definition at line 115 of file OgreBone.h. |
|
Definition at line 252 of file OgreRenderable.h. |
|
Cached combined orientation.
Definition at line 115 of file OgreNode.h. |
|
Cached combined position.
Definition at line 124 of file OgreNode.h. |
|
Cached combined scale.
Definition at line 133 of file OgreNode.h. |
|
The numeric handle of this bone.
Definition at line 104 of file OgreBone.h. |
|
Stores whether this node inherits scale from it's parent.
Definition at line 100 of file OgreNode.h. |
|
The orientation to use as a base for keyframe animation.
Definition at line 175 of file OgreNode.h. |
|
The position to use as a base for keyframe animation.
Definition at line 173 of file OgreNode.h. |
|
The scale to use as a base for keyframe animation.
Definition at line 177 of file OgreNode.h. |
|
Bones set as manuallyControlled are not reseted in Skeleton::reset().
Definition at line 107 of file OgreBone.h. |
|
Friendly name of this node, can be automatically generated if you don't care.
Definition at line 85 of file OgreNode.h. |
|
Flag indicating that all children need to be updated.
Definition at line 80 of file OgreNode.h. |
|
Flag to indicate own transform from parent is out of date.
Definition at line 78 of file OgreNode.h. |
|
Stores the orientation of the node relative to it's parent.
Definition at line 91 of file OgreNode.h. |
|
Pointer to parent node.
Definition at line 70 of file OgreNode.h. |
|
Flag indicating that parent has been notified about update request.
Definition at line 82 of file OgreNode.h. |
|
Material pointer should this node be rendered.
Definition at line 103 of file OgreNode.h. |
|
Stores the position/translation of the node relative to its parent.
Definition at line 94 of file OgreNode.h. |
|
Definition at line 253 of file OgreRenderable.h. |
|
Definition at line 184 of file OgreNode.h. |
|
Stores the scaling factor applied to this node.
Definition at line 97 of file OgreNode.h. |
|
Definition at line 186 of file OgreNode.h. |
|
Definition at line 250 of file OgreRenderable.h. |
|
Incremented count for next name extension.
Definition at line 88 of file OgreNode.h. |
|
Definition at line 182 of file OgreNode.h. |
Copyright © 2000-2005 by The OGRE Team
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Feb 12 13:00:10 2006