This is the proxy class for placing and manipulating a camera in the scene. More...
#include <cameraproxy.h>
Inheritance diagram for Mezzanine::Graphics::CameraProxy:
Collaboration diagram for Mezzanine::Graphics::CameraProxy:Public Member Functions | |
| CameraProxy (const String &Name, CameraManager *Creator) | |
| Class constructor. More... | |
| CameraProxy (const XML::Node &SelfRoot, CameraManager *Creator) | |
| XML constructor. More... | |
| virtual | ~CameraProxy () |
| Class destructor. | |
| virtual Ogre::MovableObject * | _GetBaseGraphicsObject () const |
| Accessor for the internal graphics object. More... | |
| virtual Ogre::Camera * | _GetGraphicsObject () const |
| Accessor for the internal camera. More... | |
| virtual Real | GetAspectRatio () const |
| Gets the aspect ratio of the cameras veiw. More... | |
| virtual Ray | GetCameraToViewportRay (const Real ScreenX, const Real ScreenY) const |
| Gets a Ray from the camera to the viewport. More... | |
| virtual WorldManager * | GetCreator () const |
| Gets a pointer to this proxies creator. More... | |
| virtual String | GetDerivedSerializableName () const |
| Gets the most derived serializable name of this WorldProxy. More... | |
| virtual Vector3 | GetDirection () const |
| Gets the direction the light from this source is being emitted. More... | |
| virtual Real | GetFarClipDistance () const |
| Gets the distance in world units at which objects are considered too far to render. More... | |
| virtual Real | GetFieldOfViewY () const |
| Gets the vertical field of view of the camera frustrum. More... | |
| virtual Vector3 | GetFixedYawAxis () const |
| If fixed yaw is enabled, on which axis is yawing disabled. More... | |
| virtual const String & | GetName () const |
| Gets the name of this Camera. More... | |
| virtual Real | GetNearClipDistance () const |
| Gets the distance in world units at which objects are considered too close to render. More... | |
| virtual Graphics::OrientationMode | GetOrientationMode () const |
| Gets the orientation mode of this cameras frustrum. More... | |
| virtual Real | GetOrthoWindowHeight () const |
| Gets the current height of the Orthographic projection window in world units. More... | |
| virtual Real | GetOrthoWindowWidth () const |
| Gets the current width of the Orthographic projection window in world units. More... | |
| virtual Graphics::CameraPolyMode | GetPolygonMode () const |
| Gets the debug rendering mode for this camera. More... | |
| virtual Graphics::ProjectionType | GetProjectionType () const |
| Get the type of projection used by the camera. More... | |
| virtual Mezzanine::ProxyType | GetProxyType () const |
| Accessor for the type of proxy. More... | |
| virtual Viewport * | GetViewport () const |
| Gets the Viewport this camera is attached to, if any. More... | |
| virtual Boolean | IsFixedYawEnabled () const |
| Gets whether this cameras Yaw rotation is based on a fixed axis. More... | |
| virtual void | LookAt (const Vector3 &TargetLoc) |
| Sets the direction the camera faces based on a 3D point. 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 | ProtoSerializeProperties (XML::Node &SelfRoot) const |
| Convert the properties of this class to an XML::Node ready for serialization. More... | |
| virtual void | SetAspectRatio (const Real Ratio) |
| Sets the aspect ratio of the cameras veiw. More... | |
| virtual void | SetDirection (const Vector3 &Dir) |
| Sets the direction the light will be emitted from this source. More... | |
| virtual void | SetFarClipDistance (const Real FarDist) |
| Sets the distance in world units at which objects are considered too far to render. More... | |
| virtual void | SetFieldOfViewY (const Real FOV) |
| Sets the vertical field of view of the camera frustrum. More... | |
| virtual void | SetFixedYawAxis (const Boolean UseFixed, const Vector3 &Axis=Vector3::Unit_Y()) |
| Sets whether or not to lock rotation around the Y axis. More... | |
| virtual void | SetNearClipDistance (const Real NearDist) |
| Sets the distance in world units at which objects are considered too close to render. More... | |
| virtual void | SetOrientationMode (const Graphics::OrientationMode OriMode) |
| Sets the orientation mode of this cameras frustrum. More... | |
| virtual void | SetOrthoWindow (const Real Width, const Real Height) |
| Defines the size of the Orthographic projection window in world units. More... | |
| virtual void | SetOrthoWindowHeight (const Real Height) |
| Defines the size of the Orthographic projection window in world units. More... | |
| virtual void | SetOrthoWindowWidth (const Real Width) |
| Defines the size of the Orthographic projection window in world units. More... | |
| virtual void | SetPolygonMode (const Graphics::CameraPolyMode PolyMode) |
| Sets the debug rendering mode for this camera. More... | |
| virtual void | SetProjectionType (const Graphics::ProjectionType ProjType) |
| Sets the type of projection to be used with this camera. More... | |
Public Member Functions inherited from Mezzanine::Graphics::RenderableProxy | |
| RenderableProxy (SceneManager *Creator) | |
| Class constructor. More... | |
| virtual | ~RenderableProxy () |
| Class destructor. | |
| 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 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 | ProtoSerialize (XML::Node &ParentNode) const |
| Convert 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... | |
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::Graphics::RenderableProxy | |
| 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 Member Functions | |
| virtual void | CreateCamera (const String &Name) |
| Creates an internal Camera to be used by the calling instance. More... | |
| virtual void | DestroyCamera () |
| Destroys the internal Camera in use by this proxy. More... | |
Static Protected Member Functions | |
| static String | GenerateName () |
| Generates a name for this Camera to placate the internal system. More... | |
Protected Attributes | |
| Viewport * | CameraVP |
| This is a pointer to the Viewport this camera is attached to, if any. More... | |
| CameraManager * | CamManager |
| A pointer to the CameraManager that created this camera. More... | |
| String | CamName |
| A string containing the forward facing name of this proxy. More... | |
| Vector3 | FixedYawAxis |
| A vector3 representing the fixed axis on which this camera will always Yaw/rotate. More... | |
| Ogre::Camera * | GraphicsCamera |
| A pointer to the internal Camera this proxy is based on. More... | |
| Boolean | UseFixedYaw |
| A bool storing whether or not the FixedYawAxis is being used. More... | |
Protected Attributes inherited from Mezzanine::Graphics::RenderableProxy | |
| 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... | |
Friends | |
| class | Viewport |
This is the proxy class for placing and manipulating a camera in the scene.
Definition at line 66 of file cameraproxy.h.
| Mezzanine::Graphics::CameraProxy::CameraProxy | ( | const String & | Name, |
| CameraManager * | Creator | ||
| ) |
Class constructor.
| Name | The name to be given to this CameraProxy. |
| Creator | A pointer to the manager that created this proxy. |
Definition at line 150 of file cameraproxy.cpp.
| Mezzanine::Graphics::CameraProxy::CameraProxy | ( | const XML::Node & | SelfRoot, |
| CameraManager * | Creator | ||
| ) |
XML constructor.
| SelfRoot | An XML::Node containing the data to populate this class with. |
| Creator | A pointer to the manager that created this proxy. |
Definition at line 158 of file cameraproxy.cpp.
|
virtual |
Accessor for the internal graphics object.
Implements Mezzanine::Graphics::RenderableProxy.
Definition at line 415 of file cameraproxy.cpp.
|
virtual |
Accessor for the internal camera.
Definition at line 412 of file cameraproxy.cpp.
|
protectedvirtual |
Creates an internal Camera to be used by the calling instance.
| Name | The name to be given to this CameraProxy. |
Definition at line 172 of file cameraproxy.cpp.
|
protectedvirtual |
Destroys the internal Camera in use by this proxy.
Definition at line 183 of file cameraproxy.cpp.
|
staticprotected |
Generates a name for this Camera to placate the internal system.
Definition at line 191 of file cameraproxy.cpp.
|
virtual |
Gets the aspect ratio of the cameras veiw.
Definition at line 286 of file cameraproxy.cpp.
|
virtual |
Gets a Ray from the camera to the viewport.
| ScreenX | A Real representing the relative location on screen, on the x axis(0.0 - 1.0). |
| ScreenY | A Real representing the relative location on screen, on the y axis(0.0 - 1.0). |
Definition at line 223 of file cameraproxy.cpp.
|
virtual |
Gets a pointer to this proxies creator.
Reimplemented from Mezzanine::Graphics::RenderableProxy.
Definition at line 205 of file cameraproxy.cpp.
|
virtual |
Gets the most derived serializable name of this WorldProxy.
Reimplemented from Mezzanine::Graphics::RenderableProxy.
Definition at line 403 of file cameraproxy.cpp.
|
virtual |
Gets the direction the light from this source is being emitted.
Definition at line 220 of file cameraproxy.cpp.
|
virtual |
Gets the distance in world units at which objects are considered too far to render.
Definition at line 274 of file cameraproxy.cpp.
|
virtual |
Gets the vertical field of view of the camera frustrum.
Definition at line 280 of file cameraproxy.cpp.
|
virtual |
If fixed yaw is enabled, on which axis is yawing disabled.
Definition at line 296 of file cameraproxy.cpp.
|
virtual |
Gets the name of this Camera.
Definition at line 229 of file cameraproxy.cpp.
|
virtual |
Gets the distance in world units at which objects are considered too close to render.
Definition at line 268 of file cameraproxy.cpp.
|
virtual |
Gets the orientation mode of this cameras frustrum.
Definition at line 247 of file cameraproxy.cpp.
|
virtual |
Gets the current height of the Orthographic projection window in world units.
Definition at line 262 of file cameraproxy.cpp.
|
virtual |
Gets the current width of the Orthographic projection window in world units.
Definition at line 256 of file cameraproxy.cpp.
|
virtual |
Gets the debug rendering mode for this camera.
Definition at line 235 of file cameraproxy.cpp.
|
virtual |
Get the type of projection used by the camera.
Definition at line 241 of file cameraproxy.cpp.
|
virtual |
Accessor for the type of proxy.
Wrap LOD related methods (Camera/Bias).
Wrap reflection methods?
Implements Mezzanine::WorldProxy.
Definition at line 202 of file cameraproxy.cpp.
|
static |
Get the name of the the XML tag the proxy class will leave behind as its instances are serialized.
Definition at line 406 of file cameraproxy.cpp.
|
virtual |
Gets the Viewport this camera is attached to, if any.
Definition at line 208 of file cameraproxy.cpp.
|
virtual |
Gets whether this cameras Yaw rotation is based on a fixed axis.
Definition at line 211 of file cameraproxy.cpp.
|
virtual |
Sets the direction the camera faces based on a 3D point.
| TargetLoc | The location in the world to look at. |
Definition at line 214 of file cameraproxy.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::Graphics::RenderableProxy.
Definition at line 330 of file cameraproxy.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::Graphics::RenderableProxy.
Definition at line 302 of file cameraproxy.cpp.
|
virtual |
Sets the aspect ratio of the cameras veiw.
| Ratio | A Real that represents the camera frustrum viewport aspect ratio, where Ratio = width / height. |
Definition at line 283 of file cameraproxy.cpp.
|
virtual |
Sets the direction the light will be emitted from this source.
| Dir | A Vector3 representing the direction the light will travel from this source. |
Definition at line 217 of file cameraproxy.cpp.
|
virtual |
Sets the distance in world units at which objects are considered too far to render.
| FarDist | A Real representing the distance. |
Definition at line 271 of file cameraproxy.cpp.
|
virtual |
Sets the vertical field of view of the camera frustrum.
| FOV | The field of view in radians. |
Definition at line 277 of file cameraproxy.cpp.
|
virtual |
Sets whether or not to lock rotation around the Y axis.
| UseFixed | Enable or disable the locking of the axis. |
| Axis | The axis to lock, defaults to the Y axis. |
Definition at line 289 of file cameraproxy.cpp.
|
virtual |
Sets the distance in world units at which objects are considered too close to render.
| NearDist | A Real representing the distance. |
Definition at line 265 of file cameraproxy.cpp.
|
virtual |
Sets the orientation mode of this cameras frustrum.
| OriMode | An OrientationMode enum value that expresses the type of orientation this cameras frustrum will use. |
Definition at line 244 of file cameraproxy.cpp.
|
virtual |
Defines the size of the Orthographic projection window in world units.
| Width | The new width of the projection window. |
| Height | The new height of the projection window. |
Definition at line 250 of file cameraproxy.cpp.
|
virtual |
Defines the size of the Orthographic projection window in world units.
| Height | The new height of the projection window. |
Definition at line 259 of file cameraproxy.cpp.
|
virtual |
Defines the size of the Orthographic projection window in world units.
| Width | The new width of the projection window. |
Definition at line 253 of file cameraproxy.cpp.
|
virtual |
Sets the debug rendering mode for this camera.
| PolyMode | A CameraPolyMode enum value expressing the mode to be set. |
Definition at line 232 of file cameraproxy.cpp.
|
virtual |
Sets the type of projection to be used with this camera.
| ProjType | A ProjectionType enum value that expresses the type of projection to be used. |
Definition at line 238 of file cameraproxy.cpp.
|
protected |
This is a pointer to the Viewport this camera is attached to, if any.
Definition at line 85 of file cameraproxy.h.
|
protected |
A pointer to the CameraManager that created this camera.
Definition at line 79 of file cameraproxy.h.
|
protected |
A string containing the forward facing name of this proxy.
Definition at line 73 of file cameraproxy.h.
|
protected |
A vector3 representing the fixed axis on which this camera will always Yaw/rotate.
Definition at line 76 of file cameraproxy.h.
|
protected |
A pointer to the internal Camera this proxy is based on.
Definition at line 82 of file cameraproxy.h.
|
protected |
A bool storing whether or not the FixedYawAxis is being used.
Definition at line 88 of file cameraproxy.h.
1.8.4