This is an interface for all 3D objects that can have their full transforms manipulated. More...
#include <transformableobject.h>
Public Member Functions | |
virtual | ~TransformableObject () |
Class Destructor. | |
virtual Vector3 | ConvertGlobalToLocal (const Vector3 &Location) const |
Converts a point in global space to the same point in local space. More... | |
virtual Quaternion | ConvertGlobalToLocal (const Quaternion &Orientation) const |
Converts a rotation in global space to the same rotation in local space. More... | |
virtual Vector3 | ConvertLocalToGlobal (const Vector3 &Location) const |
Converts a point in local space to the same point in global space. More... | |
virtual Quaternion | ConvertLocalToGlobal (const Quaternion &Orientation) const |
Converts a rotation in local space to the same rotation in global space. More... | |
virtual Vector3 | GetLocation () const =0 |
Gets this objects current location. More... | |
virtual Quaternion | GetOrientation () const =0 |
Gets this objects current orientation. More... | |
virtual Vector3 | GetScale () const =0 |
Gets the scaling currently being applied to this object. More... | |
virtual void | Pitch (const Real Angle)=0 |
Rotate the object around the X axis. More... | |
virtual void | Roll (const Real Angle)=0 |
Rotate the object around the Z axis. More... | |
virtual void | Rotate (const Vector3 &Axis, const Real Angle)=0 |
Rotates the object from it's existing rotation. More... | |
virtual void | Rotate (const Quaternion &Rotation)=0 |
Rotates the object from it's existing rotation. More... | |
virtual void | Scale (const Vector3 &Scale)=0 |
Scales the object from it's current size. More... | |
virtual void | Scale (const Real X, const Real Y, const Real Z)=0 |
Scales the object from it's current size. More... | |
virtual void | SetLocation (const Vector3 &Loc)=0 |
Sets the location of this object in parent space. More... | |
virtual void | SetLocation (const Real X, const Real Y, const Real Z)=0 |
Sets the location of this object in parent space via Reals. More... | |
virtual void | SetOrientation (const Quaternion &Ori)=0 |
Sets the orientation of this object in parent space. More... | |
virtual void | SetOrientation (const Real X, const Real Y, const Real Z, const Real W)=0 |
Sets the orientation of this object in parent space via Reals. More... | |
virtual void | SetScale (const Vector3 &Sc)=0 |
Sets the scaling to be applied to this object. More... | |
virtual void | SetScale (const Real X, const Real Y, const Real Z)=0 |
Sets the scaling to be applied to this object via Reals. More... | |
virtual void | Translate (const Vector3 &Trans)=0 |
Moves this object from it's current location. More... | |
virtual void | Translate (const Real X, const Real Y, const Real Z)=0 |
Moves this object from it's current location. More... | |
virtual void | Yaw (const Real Angle)=0 |
Rotate the object around the Y axis. More... | |
This is an interface for all 3D objects that can have their full transforms manipulated.
Definition at line 53 of file transformableobject.h.
|
virtual |
Converts a point in global space to the same point in local space.
Location | The point in global space to be converted. |
Definition at line 56 of file transformableobject.cpp.
|
virtual |
Converts a rotation in global space to the same rotation in local space.
Orientation | The rotation in global space to be converted. |
Definition at line 62 of file transformableobject.cpp.
|
virtual |
Converts a point in local space to the same point in global space.
Location | The point in local space to be converted. |
Definition at line 53 of file transformableobject.cpp.
|
virtual |
Converts a rotation in local space to the same rotation in global space.
Orientation | The rotation in local space to be converted. |
Definition at line 59 of file transformableobject.cpp.
|
pure virtual |
Gets this objects current location.
Implemented in Mezzanine::Physics::CollidableProxy, Mezzanine::AreaEffect, Mezzanine::Graphics::RenderableProxy, Mezzanine::RigidDebris, Mezzanine::SoftDebris, Mezzanine::WorldProxy, and Mezzanine::Physics::SoftProxy.
|
pure virtual |
Gets this objects current orientation.
Implemented in Mezzanine::Physics::CollidableProxy, Mezzanine::AreaEffect, Mezzanine::Graphics::RenderableProxy, Mezzanine::RigidDebris, Mezzanine::SoftDebris, Mezzanine::WorldProxy, and Mezzanine::Physics::SoftProxy.
|
pure virtual |
Gets the scaling currently being applied to this object.
Implemented in Mezzanine::Physics::CollidableProxy, Mezzanine::AreaEffect, Mezzanine::Graphics::RenderableProxy, Mezzanine::RigidDebris, Mezzanine::SoftDebris, Mezzanine::WorldProxy, and Mezzanine::Physics::SoftProxy.
|
pure virtual |
Rotate the object around the X axis.
Angle | The angle to rotate this object in radians. |
Implemented in Mezzanine::Physics::CollidableProxy, Mezzanine::AreaEffect, Mezzanine::Graphics::RenderableProxy, Mezzanine::RigidDebris, Mezzanine::SoftDebris, and Mezzanine::WorldProxy.
|
pure virtual |
Rotate the object around the Z axis.
Angle | The angle to rotate this object in radians. |
Implemented in Mezzanine::Physics::CollidableProxy, Mezzanine::AreaEffect, Mezzanine::Graphics::RenderableProxy, Mezzanine::RigidDebris, Mezzanine::SoftDebris, and Mezzanine::WorldProxy.
|
pure 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. |
Implemented in Mezzanine::Physics::CollidableProxy, Mezzanine::AreaEffect, Mezzanine::Graphics::RenderableProxy, Mezzanine::RigidDebris, Mezzanine::SoftDebris, and Mezzanine::WorldProxy.
|
pure virtual |
Rotates the object from it's existing rotation.
Rotation | The rotation to apply to this object. |
Implemented in Mezzanine::Physics::CollidableProxy, Mezzanine::AreaEffect, Mezzanine::Graphics::RenderableProxy, Mezzanine::RigidDebris, Mezzanine::SoftDebris, and Mezzanine::WorldProxy.
|
pure virtual |
Scales the object from it's current size.
Scale | A Vector3 representing the scaling to apply to this object. |
Implemented in Mezzanine::Physics::CollidableProxy, Mezzanine::AreaEffect, Mezzanine::Graphics::RenderableProxy, Mezzanine::RigidDebris, Mezzanine::SoftDebris, and Mezzanine::WorldProxy.
|
pure virtual |
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. |
Implemented in Mezzanine::Physics::CollidableProxy, Mezzanine::AreaEffect, Mezzanine::Graphics::RenderableProxy, Mezzanine::RigidDebris, Mezzanine::SoftDebris, and Mezzanine::WorldProxy.
|
pure virtual |
Sets the location of this object in parent space.
Loc | A Vector3 representing the location this object is to be set to. |
Implemented in Mezzanine::Physics::CollidableProxy, Mezzanine::AreaEffect, Mezzanine::Graphics::RenderableProxy, Mezzanine::RigidDebris, Mezzanine::SoftDebris, Mezzanine::WorldProxy, and Mezzanine::Physics::SoftProxy.
|
pure virtual |
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. |
Implemented in Mezzanine::Physics::CollidableProxy, Mezzanine::AreaEffect, Mezzanine::Graphics::RenderableProxy, Mezzanine::RigidDebris, Mezzanine::SoftDebris, Mezzanine::WorldProxy, and Mezzanine::Physics::SoftProxy.
|
pure virtual |
Sets the orientation of this object in parent space.
Ori | A Quaternion representing the rotation this object is to be set to. |
Implemented in Mezzanine::Physics::CollidableProxy, Mezzanine::AreaEffect, Mezzanine::Graphics::RenderableProxy, Mezzanine::RigidDebris, Mezzanine::SoftDebris, Mezzanine::WorldProxy, and Mezzanine::Physics::SoftProxy.
|
pure 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. |
Implemented in Mezzanine::Physics::CollidableProxy, Mezzanine::AreaEffect, Mezzanine::Graphics::RenderableProxy, Mezzanine::RigidDebris, Mezzanine::SoftDebris, Mezzanine::WorldProxy, and Mezzanine::Physics::SoftProxy.
|
pure virtual |
Sets the scaling to be applied to this object.
Sc | A Vector3 representing the amount of scaling to apply to this object. |
Implemented in Mezzanine::Physics::CollidableProxy, Mezzanine::AreaEffect, Mezzanine::Graphics::RenderableProxy, Mezzanine::RigidDebris, Mezzanine::SoftDebris, Mezzanine::WorldProxy, and Mezzanine::Physics::SoftProxy.
|
pure virtual |
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. |
Implemented in Mezzanine::Physics::CollidableProxy, Mezzanine::AreaEffect, Mezzanine::Graphics::RenderableProxy, Mezzanine::RigidDebris, Mezzanine::SoftDebris, Mezzanine::WorldProxy, and Mezzanine::Physics::SoftProxy.
|
pure virtual |
Moves this object from it's current location.
Trans | A Vector3 representing the amount of movement to apply to this object. |
Implemented in Mezzanine::Physics::CollidableProxy, Mezzanine::AreaEffect, Mezzanine::Graphics::RenderableProxy, Mezzanine::RigidDebris, Mezzanine::SoftDebris, and Mezzanine::WorldProxy.
|
pure 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. |
Implemented in Mezzanine::Physics::CollidableProxy, Mezzanine::AreaEffect, Mezzanine::Graphics::RenderableProxy, Mezzanine::RigidDebris, Mezzanine::SoftDebris, and Mezzanine::WorldProxy.
|
pure virtual |
Rotate the object around the Y axis.
Angle | The angle to rotate this object in radians. |
Implemented in Mezzanine::Physics::CollidableProxy, Mezzanine::AreaEffect, Mezzanine::Graphics::RenderableProxy, Mezzanine::RigidDebris, Mezzanine::SoftDebris, and Mezzanine::WorldProxy.