This is the base proxy class for world proxies wrapping functionality of the graphics subsystem. More...
#include <renderableproxy.h>
Public Member Functions | |
RenderableProxy (SceneManager *Creator) | |
Class constructor. More... | |
virtual | ~RenderableProxy () |
Class destructor. | |
virtual Ogre::MovableObject * | _GetBaseGraphicsObject () const =0 |
Accessor for the internal graphics object. More... | |
virtual Ogre::SceneNode * | _GetGraphicsNode () const |
Accessor for the internal node in the scenegraph for this proxy. More... | |
virtual void | AddToWorld () |
Performs all the necessary task to ensure this object is connected to it's respective world and ready for use. More... | |
virtual AxisAlignedBox | GetAABB () const |
Gets this proxies AABB. More... | |
virtual Boolean | GetCastShadows () const |
Gets whether or not this proxy can cast a shadow. More... | |
virtual WorldManager * | GetCreator () const |
virtual String | GetDerivedSerializableName () const |
Gets the most derived serializable name of this WorldProxy. More... | |
virtual UInt32 | GetLightMask () const |
Gets which types of lights will affect this proxy. More... | |
virtual Vector3 | GetLocation () const |
Gets this objects current location. More... | |
virtual Quaternion | GetOrientation () const |
Gets this objects current orientation. More... | |
virtual UInt32 | GetQueryMask () const |
Gets the bitmask that will be used to determine if this object should be counted in scene queries. More... | |
virtual Boolean | GetReceiveShadows () const |
Gets whether or not this proxy can be rendered with a shadow casted on it. More... | |
virtual Real | GetRenderDistance () const |
Gets the distance at which the proxy will stop rendering. More... | |
virtual Vector3 | GetScale () const |
Gets the scaling currently being applied to this object. More... | |
virtual UInt32 | GetVisibilityMask () const |
Gets the bitmask that will be used to determine if this object should be visible when rendering. More... | |
virtual Boolean | GetVisible () const |
Gets whether or not this proxy is visible. More... | |
virtual Boolean | IsInWorld () const |
Gets whether or not this object is inside of it's world. More... | |
virtual void | Pitch (const Real Angle) |
Rotate the object around the X axis. More... | |
virtual void | ProtoDeSerialize (const XML::Node &SelfRoot) |
Take the data stored in an XML Node and overwrite this object with it. More... | |
virtual void | ProtoDeSerializeProperties (const XML::Node &SelfRoot) |
Take the data stored in an XML Node and overwrite the properties of this object with it. More... | |
virtual void | ProtoSerialize (XML::Node &ParentNode) const |
Convert this class to an XML::Node ready for serialization. More... | |
virtual void | ProtoSerializeProperties (XML::Node &SelfRoot) const |
Convert the properties of this class to an XML::Node ready for serialization. More... | |
virtual void | RemoveFromWorld () |
Unhooks this proxy from it's respective world. More... | |
virtual void | Roll (const Real Angle) |
Rotate the object around the Z axis. More... | |
virtual void | Rotate (const Vector3 &Axis, const Real Angle) |
Rotates the object from it's existing rotation. More... | |
virtual void | Rotate (const Quaternion &Rotation) |
Rotates the object from it's existing rotation. More... | |
virtual void | Scale (const Vector3 &Scale) |
Scales the object from it's current size. More... | |
virtual void | Scale (const Real X, const Real Y, const Real Z) |
Scales the object from it's current size. More... | |
virtual void | SetCastShadows (const Boolean CastShadows) |
Sets whether or not this proxy can cast a shadow. More... | |
virtual void | SetLightMask (const UInt32 Mask) |
Sets which types of lights will affect this proxy. More... | |
virtual void | SetLocation (const Vector3 &Loc) |
Sets the location of this object in parent space. More... | |
virtual void | SetLocation (const Real X, const Real Y, const Real Z) |
Sets the location of this object in parent space via Reals. More... | |
virtual void | SetOrientation (const Quaternion &Ori) |
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) |
Sets the orientation of this object in parent space via Reals. More... | |
virtual void | SetQueryMask (const UInt32 Mask) |
Sets the bitmesk that will be used to determine if this object should be counted in scene queries. More... | |
virtual void | SetRenderDistance (const Real Distance) |
Sets the distance at which the proxy will stop rendering. More... | |
virtual void | SetScale (const Vector3 &Sc) |
Sets the scaling to be applied to this object. More... | |
virtual void | SetScale (const Real X, const Real Y, const Real Z) |
Sets the scaling to be applied to this object via Reals. More... | |
virtual void | SetVisibilityMask (const UInt32 Mask) |
Sets the bitmask that will be used to determine if this object should be visible when rendering. More... | |
virtual void | SetVisible (const Boolean Visible) |
Sets whether or not this proxy is visible. More... | |
virtual void | Translate (const Vector3 &Trans) |
Moves this object from it's current location. More... | |
virtual void | Translate (const Real X, const Real Y, const Real Z) |
Moves this object from it's current location. More... | |
virtual void | Yaw (const Real Angle) |
Rotate the object around the Y axis. More... | |
Public Member Functions inherited from Mezzanine::WorldProxy | |
WorldProxy () | |
Class constructor. | |
virtual | ~WorldProxy () |
Class destructor. | |
void | _Bind (WorldObject *NewParent) |
Binds this proxy to a WorldObject. More... | |
virtual WorldObject * | GetParentObject () const |
Gets a pointer to the parent object controlling this proxy. More... | |
virtual Mezzanine::ProxyType | GetProxyType () const =0 |
Accessor for the type of proxy. More... | |
Public Member Functions inherited from Mezzanine::TransformableObject | |
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... | |
Static Public Member Functions | |
static String | GetSerializableName () |
Get the name of the the XML tag the proxy class will leave behind as its instances are serialized. More... | |
Static Public Member Functions inherited from Mezzanine::WorldProxy | |
static String | GetSerializableName () |
Get the name of the the XML tag the proxy class will leave behind as its instances are serialized. More... | |
Protected Attributes | |
Ogre::SceneNode * | GraphicsNode |
A pointer to the internal object storing the proxy transform. More... | |
Boolean | InWorld |
This stores whether the proxy is currently in the graphics world or not. More... | |
SceneManager * | Manager |
This is a pointer to the scene manager that created and owns this proxy. More... | |
UInt32 | QueryMask |
This is a bitmask identifying this objects type when being queried. Used for advanced query configuration. More... | |
UInt32 | VisibilityMask |
This is a bitmask identifying this objects type when being rendered. Used for advanced visibility configuration. More... | |
Protected Attributes inherited from Mezzanine::WorldProxy | |
WorldObject * | ParentObject |
Pointer to the Object this proxy belongs to. More... | |
This is the base proxy class for world proxies wrapping functionality of the graphics subsystem.
Definition at line 64 of file renderableproxy.h.
Mezzanine::Graphics::RenderableProxy::RenderableProxy | ( | SceneManager * | Creator) |
Class constructor.
Creator | A pointer to the manager that created this proxy. |
Definition at line 60 of file renderableproxy.cpp.
|
pure virtual |
Accessor for the internal graphics object.
Implemented in Mezzanine::Graphics::CameraProxy, Mezzanine::Graphics::ParticleSystemProxy, Mezzanine::Graphics::BillboardSetProxy, Mezzanine::Graphics::EntityProxy, and Mezzanine::Graphics::LightProxy.
|
virtual |
Accessor for the internal node in the scenegraph for this proxy.
Definition at line 312 of file renderableproxy.cpp.
|
virtual |
Performs all the necessary task to ensure this object is connected to it's respective world and ready for use.
Implements Mezzanine::WorldProxy.
Reimplemented in Mezzanine::Graphics::EntityProxy.
Definition at line 82 of file renderableproxy.cpp.
|
virtual |
Gets this proxies AABB.
Definition at line 79 of file renderableproxy.cpp.
|
virtual |
Gets whether or not this proxy can cast a shadow.
Reimplemented in Mezzanine::Graphics::EntityProxy.
Definition at line 118 of file renderableproxy.cpp.
|
virtual |
Implements Mezzanine::WorldProxy.
Reimplemented in Mezzanine::Graphics::CameraProxy.
Definition at line 103 of file renderableproxy.cpp.
|
virtual |
Gets the most derived serializable name of this WorldProxy.
Reimplemented from Mezzanine::WorldProxy.
Reimplemented in Mezzanine::Graphics::CameraProxy, Mezzanine::Graphics::ParticleSystemProxy, Mezzanine::Graphics::BillboardSetProxy, Mezzanine::Graphics::EntityProxy, and Mezzanine::Graphics::LightProxy.
Definition at line 303 of file renderableproxy.cpp.
|
virtual |
Gets which types of lights will affect this proxy.
Reimplemented in Mezzanine::Graphics::EntityProxy.
Definition at line 127 of file renderableproxy.cpp.
|
virtual |
Gets this objects current location.
Implements Mezzanine::WorldProxy.
Definition at line 167 of file renderableproxy.cpp.
|
virtual |
Gets this objects current orientation.
Implements Mezzanine::WorldProxy.
Definition at line 176 of file renderableproxy.cpp.
|
virtual |
Gets the bitmask that will be used to determine if this object should be counted in scene queries.
Reimplemented in Mezzanine::Graphics::EntityProxy.
Definition at line 149 of file renderableproxy.cpp.
|
virtual |
Gets whether or not this proxy can be rendered with a shadow casted on it.
Reimplemented in Mezzanine::Graphics::EntityProxy.
Definition at line 121 of file renderableproxy.cpp.
|
virtual |
Gets the distance at which the proxy will stop rendering.
Reimplemented in Mezzanine::Graphics::EntityProxy.
Definition at line 155 of file renderableproxy.cpp.
|
virtual |
Gets the scaling currently being applied to this object.
Implements Mezzanine::WorldProxy.
Definition at line 185 of file renderableproxy.cpp.
|
static |
Get the name of the the XML tag the proxy class will leave behind as its instances are serialized.
Definition at line 306 of file renderableproxy.cpp.
|
virtual |
Gets the bitmask that will be used to determine if this object should be visible when rendering.
Reimplemented in Mezzanine::Graphics::EntityProxy.
Definition at line 138 of file renderableproxy.cpp.
|
virtual |
Gets whether or not this proxy is visible.
Reimplemented in Mezzanine::Graphics::EntityProxy.
Definition at line 112 of file renderableproxy.cpp.
|
virtual |
Gets whether or not this object is inside of it's world.
Implements Mezzanine::WorldProxy.
Definition at line 100 of file renderableproxy.cpp.
|
virtual |
Rotate the object around the X axis.
Angle | The angle to rotate this object in radians. |
Implements Mezzanine::WorldProxy.
Definition at line 197 of file renderableproxy.cpp.
|
virtual |
Take the data stored in an XML Node and overwrite this object with it.
SelfRoot | An XML::Node containing the data to populate this class with. |
Reimplemented from Mezzanine::WorldProxy.
Reimplemented in Mezzanine::Graphics::ParticleSystemProxy, Mezzanine::Graphics::BillboardSetProxy, and Mezzanine::Graphics::EntityProxy.
Definition at line 248 of file renderableproxy.cpp.
|
virtual |
Take the data stored in an XML Node and overwrite the properties of this object with it.
SelfRoot | An XML::Node containing the data to populate this class with. |
Reimplemented from Mezzanine::WorldProxy.
Reimplemented in Mezzanine::Graphics::CameraProxy, Mezzanine::Graphics::ParticleSystemProxy, Mezzanine::Graphics::BillboardSetProxy, Mezzanine::Graphics::LightProxy, and Mezzanine::Graphics::EntityProxy.
Definition at line 263 of file renderableproxy.cpp.
|
virtual |
Convert this class to an XML::Node ready for serialization.
ParentNode | The point in the XML hierarchy that all this renderable should be appended to. |
Reimplemented from Mezzanine::WorldProxy.
Reimplemented in Mezzanine::Graphics::BillboardSetProxy, Mezzanine::Graphics::ParticleSystemProxy, and Mezzanine::Graphics::EntityProxy.
Definition at line 218 of file renderableproxy.cpp.
|
virtual |
Convert the properties of this class to an XML::Node ready for serialization.
SelfRoot | The root node containing all the serialized data for this instance. |
Reimplemented from Mezzanine::WorldProxy.
Reimplemented in Mezzanine::Graphics::CameraProxy, Mezzanine::Graphics::ParticleSystemProxy, Mezzanine::Graphics::BillboardSetProxy, Mezzanine::Graphics::LightProxy, and Mezzanine::Graphics::EntityProxy.
Definition at line 228 of file renderableproxy.cpp.
|
virtual |
Unhooks this proxy from it's respective world.
Implements Mezzanine::WorldProxy.
Reimplemented in Mezzanine::Graphics::EntityProxy.
Definition at line 91 of file renderableproxy.cpp.
|
virtual |
Rotate the object around the Z axis.
Angle | The angle to rotate this object in radians. |
Implements Mezzanine::WorldProxy.
Definition at line 200 of file renderableproxy.cpp.
|
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. |
Implements Mezzanine::WorldProxy.
Definition at line 203 of file renderableproxy.cpp.
|
virtual |
Rotates the object from it's existing rotation.
Rotation | The rotation to apply to this object. |
Implements Mezzanine::WorldProxy.
Definition at line 206 of file renderableproxy.cpp.
|
virtual |
Scales the object from it's current size.
Scale | A Vector3 representing the scaling to apply to this object. |
Implements Mezzanine::WorldProxy.
Definition at line 209 of file renderableproxy.cpp.
|
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. |
Implements Mezzanine::WorldProxy.
Definition at line 212 of file renderableproxy.cpp.
|
virtual |
Sets whether or not this proxy can cast a shadow.
CastShadows | True to allow this proxy to cast a shadow, false to prevent it from casting a shadow. |
Reimplemented in Mezzanine::Graphics::EntityProxy.
Definition at line 115 of file renderableproxy.cpp.
|
virtual |
Sets which types of lights will affect this proxy.
Mask | A bitmask used to indicate which types of lights will be applied to this proxy. |
Reimplemented in Mezzanine::Graphics::EntityProxy.
Definition at line 124 of file renderableproxy.cpp.
|
virtual |
Sets the location of this object in parent space.
Location | A Vector3 representing the location this object is to be set to. |
Implements Mezzanine::WorldProxy.
Definition at line 161 of file renderableproxy.cpp.
|
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. |
Implements Mezzanine::WorldProxy.
Definition at line 164 of file renderableproxy.cpp.
|
virtual |
Sets the orientation of this object in parent space.
Orientation | A Quaternion representing the rotation this object is to be set to. |
Implements Mezzanine::WorldProxy.
Definition at line 170 of file renderableproxy.cpp.
|
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::WorldProxy.
Definition at line 173 of file renderableproxy.cpp.
|
virtual |
Sets the bitmesk that will be used to determine if this object should be counted in scene queries.
Mask | The bitmask to be applied. |
Reimplemented in Mezzanine::Graphics::EntityProxy.
Definition at line 141 of file renderableproxy.cpp.
|
virtual |
Sets the distance at which the proxy will stop rendering.
Distance | The distance in world units from the camera when the proxy will stop being rendered. |
Reimplemented in Mezzanine::Graphics::EntityProxy.
Definition at line 152 of file renderableproxy.cpp.
|
virtual |
Sets the scaling to be applied to this object.
Scale | A Vector3 representing the amount of scaling to apply to this object. |
Implements Mezzanine::WorldProxy.
Definition at line 179 of file renderableproxy.cpp.
|
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. |
Implements Mezzanine::WorldProxy.
Definition at line 182 of file renderableproxy.cpp.
|
virtual |
Sets the bitmask that will be used to determine if this object should be visible when rendering.
Mask | The bitmask to be applied. |
Reimplemented in Mezzanine::Graphics::EntityProxy.
Definition at line 130 of file renderableproxy.cpp.
|
virtual |
Sets whether or not this proxy is visible.
Visible | True to allow this proxy to render, false otherwise. |
Reimplemented in Mezzanine::Graphics::EntityProxy.
Definition at line 109 of file renderableproxy.cpp.
|
virtual |
Moves this object from it's current location.
Trans | A Vector3 representing the amount of movement to apply to this object. |
Implements Mezzanine::WorldProxy.
Definition at line 188 of file renderableproxy.cpp.
|
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. |
Implements Mezzanine::WorldProxy.
Definition at line 191 of file renderableproxy.cpp.
|
virtual |
Rotate the object around the Y axis.
Angle | The angle to rotate this object in radians. |
Implements Mezzanine::WorldProxy.
Definition at line 194 of file renderableproxy.cpp.
|
protected |
A pointer to the internal object storing the proxy transform.
Definition at line 69 of file renderableproxy.h.
|
protected |
This stores whether the proxy is currently in the graphics world or not.
Definition at line 81 of file renderableproxy.h.
|
protected |
This is a pointer to the scene manager that created and owns this proxy.
Definition at line 72 of file renderableproxy.h.
|
protected |
This is a bitmask identifying this objects type when being queried. Used for advanced query configuration.
Definition at line 78 of file renderableproxy.h.
|
protected |
This is a bitmask identifying this objects type when being rendered. Used for advanced visibility configuration.
Definition at line 75 of file renderableproxy.h.