This class encapsulates the bones contained in a skeleton used for animation. More...
#include <bone.h>
Public Member Functions | |
Ogre::Bone * | _GetInternalBone () const |
Gets the internal bone pointer. More... | |
Bone * | CreateChild (const UInt16 Handle, const Vector3 &Trans, const Quaternion &Rot) |
Creates a new bone in the parent skeleton as a child of this bone. More... | |
Bone * | GetChild (const UInt16 Index) const |
Gets a child bone by it's index. More... | |
Bone * | GetChild (const String &Name) const |
Gets a child bone by it's name. More... | |
UInt16 | GetHandle () const |
Gets the unique identifying number belonging to this bone. More... | |
Skeleton * | GetHost () const |
Gets the host skeleton this bone belongs to. More... | |
Vector3 | GetLocation () const |
Gets this objects current location. More... | |
Boole | GetManuallyControlled () const |
Gets whether or not this bone is being manually controlled. More... | |
const String & | GetName () const |
Gets the name of this Bone. More... | |
UInt16 | GetNumChildren () const |
Gets the number of child bones contained by this bone. More... | |
Quaternion | GetOrientation () const |
Gets this objects current orientation. More... | |
Vector3 | GetScale () const |
Gets the scaling currently being applied to this object. More... | |
void | Pitch (const Real Angle, const Mezzanine::TransformSpace Space=Mezzanine::TS_Parent) |
Rotate the object around the X axis. More... | |
void | RemoveChild (Bone *ToBeRemoved) |
Removes a bone from this bone. More... | |
void | RemoveChild (const UInt16 Index) |
Removes a bone from this bone by index. More... | |
void | RemoveChild (const String &Name) |
Removes a bone from this bone. More... | |
void | Roll (const Real Angle, const Mezzanine::TransformSpace Space=Mezzanine::TS_Parent) |
Rotate the object around the Z axis. More... | |
void | Rotate (const Vector3 &Axis, const Real Angle, const Mezzanine::TransformSpace Space=Mezzanine::TS_Parent) |
Rotates the object from it's existing rotation. More... | |
void | Rotate (const Quaternion &Rotation, const Mezzanine::TransformSpace Space=Mezzanine::TS_Parent) |
Rotates the object from it's existing rotation. More... | |
void | Scale (const Vector3 &Scale) |
Scales the object from it's current size. More... | |
void | Scale (const Real X, const Real Y, const Real Z) |
Scales the object from it's current size. More... | |
void | SetLocation (const Vector3 &Loc) |
Sets the location of this object in parent space. More... | |
void | SetLocation (const Real X, const Real Y, const Real Z) |
Sets the location of this object in parent space via Reals. More... | |
void | SetManuallyControlled (Boole Manual) |
Sets whether or not this bone is to be manually controlled. More... | |
void | SetOrientation (const Quaternion &Ori) |
Sets the orientation of this object in parent space. More... | |
void | SetOrientation (const Real X, const Real Y, const Real Z, const Real W) |
Sets the orientation of this object in parent space via Reals. More... | |
void | SetScale (const Vector3 &Sc) |
Sets the scaling to be applied to this object. More... | |
void | SetScale (const Real X, const Real Y, const Real Z) |
Sets the scaling to be applied to this object via Reals. More... | |
void | Translate (const Vector3 &Trans, const Mezzanine::TransformSpace Space=Mezzanine::TS_Parent) |
Moves this object from it's current location. More... | |
void | Translate (const Real X, const Real Y, const Real Z, const Mezzanine::TransformSpace Space=Mezzanine::TS_Parent) |
Moves this object from it's current location. More... | |
void | Yaw (const Real Angle, const Mezzanine::TransformSpace Space=Mezzanine::TS_Parent) |
Rotate the object around the Y axis. More... | |
Public Member Functions inherited from Mezzanine::TransformableChildObject | |
virtual | ~TransformableChildObject () |
Class Destructor. | |
Protected Member Functions | |
Bone (Skeleton *HostSkel, Ogre::Bone *InternalBone) | |
Internal constructor. More... | |
~Bone () | |
Class destructor. | |
Protected Attributes | |
Ogre::Bone * | GraphicsBone |
The pointer to the internal Bone this is based on. More... | |
Skeleton * | Host |
The host skeleton this bone belongs to. More... | |
Friends | |
class | Skeleton |
This class encapsulates the bones contained in a skeleton used for animation.
|
protected |
Ogre::Bone * Mezzanine::Graphics::Bone::_GetInternalBone | ( | ) | const |
Bone * Mezzanine::Graphics::Bone::CreateChild | ( | const UInt16 | Handle, |
const Vector3 & | Trans, | ||
const Quaternion & | Rot | ||
) |
Creates a new bone in the parent skeleton as a child of this bone.
Handle | The handle to be given to the bone being created. Must be unique to the parent skeleton. |
Trans | The translation to apply to the created bone. |
Rot | The rotation to apply to the created bone. |
UInt16 Mezzanine::Graphics::Bone::GetHandle | ( | ) | const |
Skeleton * Mezzanine::Graphics::Bone::GetHost | ( | ) | const |
|
virtual |
Gets this objects current location.
Implements Mezzanine::TransformableChildObject.
Boole Mezzanine::Graphics::Bone::GetManuallyControlled | ( | ) | const |
const String & Mezzanine::Graphics::Bone::GetName | ( | ) | const |
UInt16 Mezzanine::Graphics::Bone::GetNumChildren | ( | ) | const |
|
virtual |
Gets this objects current orientation.
Implements Mezzanine::TransformableChildObject.
|
virtual |
Gets the scaling currently being applied to this object.
Implements Mezzanine::TransformableChildObject.
|
virtual |
Rotate the object around the X axis.
Angle | The angle to rotate this object in radians. |
Space | The transform space in which to apply this rotation. |
Implements Mezzanine::TransformableChildObject.
void Mezzanine::Graphics::Bone::RemoveChild | ( | Bone * | ToBeRemoved | ) |
void Mezzanine::Graphics::Bone::RemoveChild | ( | const UInt16 | Index | ) |
void Mezzanine::Graphics::Bone::RemoveChild | ( | const String & | Name | ) |
|
virtual |
Rotate the object around the Z axis.
Angle | The angle to rotate this object in radians. |
Space | The transform space in which to apply this rotation. |
Implements Mezzanine::TransformableChildObject.
|
virtual |
Rotates the object from it's existing rotation.
Axis | The axis on which this object will be rotated. |
Angle | The angle to rotate this object in radians. |
Space | The transform space in which to apply this rotation. |
Implements Mezzanine::TransformableChildObject.
|
virtual |
Rotates the object from it's existing rotation.
Rotation | The rotation to apply to this object. |
Space | The transform space in which to apply this rotation. |
Implements Mezzanine::TransformableChildObject.
|
virtual |
Scales the object from it's current size.
Scale | A Vector3 representing the scaling to apply to this object. |
Implements Mezzanine::TransformableChildObject.
Scales the object from it's current size.
X | The scaling factor to apply on the X axis. |
Y | The scaling factor to apply on the Y axis. |
Z | The scaling factor to apply on the Z axis. |
Implements Mezzanine::TransformableChildObject.
|
virtual |
Sets the location of this object in parent space.
Loc | A Vector3 representing the location this object is to be set to. |
Implements Mezzanine::TransformableChildObject.
Sets the location of this object in parent space via Reals.
X | The position on the X axis where this object is to be set. |
Y | The position on the Y axis where this object is to be set. |
Z | The position on the Z axis where this object is to be set. |
Implements Mezzanine::TransformableChildObject.
void Mezzanine::Graphics::Bone::SetManuallyControlled | ( | Boole | Manual | ) |
|
virtual |
Sets the orientation of this object in parent space.
Ori | A Quaternion representing the rotation this object is to be set to. |
Implements Mezzanine::TransformableChildObject.
|
virtual |
Sets the orientation of this object in parent space via Reals.
X | The X component of the Axis. |
Y | The Y component of the Axis. |
Z | The Z component of the Axis. |
W | Rotation on the Axis X, Y and Z defined. |
Implements Mezzanine::TransformableChildObject.
|
virtual |
Sets the scaling to be applied to this object.
Sc | A Vector3 representing the amount of scaling to apply to this object. |
Implements Mezzanine::TransformableChildObject.
Sets the scaling to be applied to this object via Reals.
X | The scaling factor to apply on the X axis. |
Y | The scaling factor to apply on the Y axis. |
Z | The scaling factor to apply on the Z axis. |
Implements Mezzanine::TransformableChildObject.
|
virtual |
Moves this object from it's current location.
Trans | A Vector3 representing the amount of movement to apply to this object. |
Space | The transform space in which to apply this translation. |
Implements Mezzanine::TransformableChildObject.
|
virtual |
Moves this object from it's current location.
X | The amount of movement to apply on the X axis. |
Y | The amount of movement to apply on the Y axis. |
Z | The amount of movement to apply on the Z axis. |
Space | The transform space in which to apply this translation. |
Implements Mezzanine::TransformableChildObject.
|
virtual |
Rotate the object around the Y axis.
Angle | The angle to rotate this object in radians. |
Space | The transform space in which to apply this rotation. |
Implements Mezzanine::TransformableChildObject.
|
protected |
|
protected |