#include <OGREInterfaces.h>
Inherits DigitalSpaces::DIObjectBase.
Public Member Functions | |
| DIOGRESceneManager * | GetSceneManager (void) |
| Returns a pointer to the SceneManager this camera is rendering through. | |
| const char * | GetName (void) |
| Gets the camera's name. | |
| void | SetPolygonMode (OGREPolygonMode sd) |
| Sets the level of rendering detail required from this camera. | |
| OGREPolygonMode | GetPolygonMode (void) |
| Retrieves the level of detail that the camera will render. | |
| void | SetPosition (float x, float y, float z) |
| Sets the camera's position. | |
| void | SetPosition (in_Vector3f *vec) |
| Sets the camera's position. | |
| void | GetPosition (out_Vector3f *vec) |
| Retrieves the camera's position. | |
| void | Move (in_Vector3f *vec) |
| Moves the camera's position by the vector offset provided along world axes. | |
| void | MoveRelative (in_Vector3f *vec) |
| Moves the camera's position by the vector offset provided along it's own axes (relative to orientation). | |
| void | SetDirection (float x, float y, float z) |
| Sets the camera's direction vector. | |
| void | SetDirection (in_Vector3f *vec) |
| Sets the camera's direction vector. | |
| void | GetDirection (out_Vector3f *vec) |
| void | GetUp (out_Vector3f *vec) |
| Gets the camera's up vector. | |
| void | GetRight (out_Vector3f *vec) |
| Gets the camera's right vector. | |
| void | LookAt (in_Vector3f *targetPoint) |
| Points the camera at a location in worldspace. | |
| void | LookAt (float x, float y, float z) |
| Points the camera at a location in worldspace. | |
| void | RollRadian (const float angle) |
| Rolls the camera anticlockwise, around its local z axis. | |
| void | RollDegree (const float angle) |
| void | YawRadian (const float angle) |
| Rotates the camera anticlockwise around it's local y axis. | |
| void | YawDegree (const float angle) |
| void | PitchRadian (const float angle) |
| Pitches the camera up/down anticlockwise around it's local z axis. | |
| void | PitchDegree (const float angle) |
| void | RotateRadian (in_Vector3f *axis, const float angle) |
| Rotate the camera around an arbitrary axis. | |
| void | RotateDegree (in_Vector3f *axis, const float angle) |
| void | Rotate (in_Quaternionf *q) |
| Rotate the camera around an aritrary axis using a Quarternion. | |
| void | SetFixedYawAxis (bool useFixed) |
| Tells the camera whether to yaw around it's own local Y axis or a fixed axis of choice. | |
| void | SetFixedYawAxis (bool useFixed, in_Vector3f *fixedAxis) |
| void | GetOrientation (out_Quaternionf *q) |
| Returns the camera's current orientation. | |
| void | SetOrientation (in_Quaternionf *q) |
| Sets the camera's orientation. | |
| void | GetDerivedOrientation (out_Quaternionf *q) |
| Gets the derived orientation of the camera, including any rotation inherited from a node attachment. | |
| void | GetDerivedPosition (out_Vector3f *vec) |
| Gets the derived position of the camera, including any translation inherited from a node attachment. | |
| void | GetDerivedDirection (out_Vector3f *vec) |
| Gets the derived direction vector of the camera, including any translation inherited from a node attachment. | |
| void | SetAutoTracking (bool enabled) |
| Enables / disables automatic tracking of a SceneNode. | |
| void | SetAutoTracking (bool enabled, DIOGRESceneNode *target, in_Vector3f *offset) |
| void | SetLodBias () |
| Sets the level-of-detail factor for this Camera. | |
| void | SetLodBias (float factor) |
| float | GetLodBias (void) |
| Returns the level-of-detail bias factor currently applied to this camera. | |
| DIOGRERay * | GetCameraToViewportRay (float screenx, float screeny) |
| Gets a world space ray as cast from the camera through a viewport position. | |
| void | SetWindow (float Left, float Top, float Right, float Bottom) |
| Sets the viewing window inside of viewport. | |
| void | ResetWindow (void) |
| Cancel view window. | |
| bool | IsWindowSet (void) |
| Returns if a viewport window is being used. | |
| DIOGRESceneNode * | GetAutoTrackTarget (void) |
| Get the auto tracking target for this camera, if any. | |
| void | GetAutoTrackOffset (out_Vector3f *vec) |
| Get the auto tracking offset for this camera, if it is auto tracking. | |
| DIOGREViewport * | GetViewport (void) |
| Get the last viewport which was attached to this camera. | |
| void | SetAutoAspectRatio (bool autoratio) |
| If set to true a vieport that owns this frustum will be able to recalculate the aspect ratio whenever the frustum is resized. | |
| bool | GetAutoAspectRatio (void) |
| Retreives if AutoAspectRatio is currently set or not. | |
| void | SetFOVyRadian (const float fovy) |
| Sets the Y-dimension Field Of View (FOV) of the frustum. | |
| void | SetFOVyDegree (const float fovy) |
| float | GetFOVyRadian (void) |
| Retrieves the frustums Y-dimension Field Of View (FOV). | |
| float | GetFOVyDegree (void) |
| void | SetNearClipDistance (float nearDist) |
| Sets the position of the near clipping plane. | |
| float | GetNearClipDistance (void) |
| Sets the position of the near clipping plane. | |
| void | SetFarClipDistance (float farDist) |
| Sets the distance to the far clipping plane. | |
| float | GetFarClipDistance (void) |
| Retrieves the distance from the frustum to the far clipping plane. | |
| void | SetAspectRatio (float ratio) |
| Sets the aspect ratio for the frustum viewport. | |
| float | GetAspectRatio (void) |
| Retreives the current aspect ratio. | |
| void | GetProjectionMatrixWithRSDepth (out_Matrix4f *mat) |
| Gets the 'standard' projection matrix for this frustum, ie the projection matrix which conforms to standard right-handed rules. | |
| void | GetViewMatrix (out_Matrix4f *mat) |
| Gets the view matrix for this frustum. | |
| void | GetFrustumPlane (unsigned short plane, out_Vector4f *outPlane) |
| Retrieves a specified plane of the frustum. | |
| bool | IsVisible (DIOGREAxisAlignedBox *bound) |
| Tests whether the given container is visible in the Frustum. | |
| bool | IsVisible (DIOGREAxisAlignedBox *bound, OGREFrustumPlane *culledBy) |
| bool | IsVisible (in_Vector4f *sphere) |
| Tests whether the given container is visible in the Frustum. | |
| bool | IsVisible (in_Vector4f *sphere, OGREFrustumPlane *culledBy) |
| bool | IsVisible (in_Vector3f *vert) |
| Tests whether the given vertex is visible in the Frustum. | |
| bool | IsVisible (in_Vector3f *vert, OGREFrustumPlane *culledBy) |
| void | SetProjectionType (OGREProjectionType pt) |
| Sets the type of projection to use (orthographic or perspective). | |
| OGREProjectionType | GetProjectionType (void) |
| Retrieves info on the type of projection used (orthographic or perspective). | |
| DIOGRESceneManager* DigitalSpaces::DIOGRECamera::GetSceneManager | ( | void | ) |
Returns a pointer to the SceneManager this camera is rendering through.
| const char* DigitalSpaces::DIOGRECamera::GetName | ( | void | ) |
Gets the camera's name.
| void DigitalSpaces::DIOGRECamera::SetPolygonMode | ( | OGREPolygonMode | sd | ) |
Sets the level of rendering detail required from this camera.
| OGREPolygonMode DigitalSpaces::DIOGRECamera::GetPolygonMode | ( | void | ) |
Retrieves the level of detail that the camera will render.
| void DigitalSpaces::DIOGRECamera::SetPosition | ( | float | x, | |
| float | y, | |||
| float | z | |||
| ) |
Sets the camera's position.
| void DigitalSpaces::DIOGRECamera::SetPosition | ( | in_Vector3f * | vec | ) |
Sets the camera's position.
| void DigitalSpaces::DIOGRECamera::GetPosition | ( | out_Vector3f * | vec | ) |
Retrieves the camera's position.
| void DigitalSpaces::DIOGRECamera::Move | ( | in_Vector3f * | vec | ) |
Moves the camera's position by the vector offset provided along world axes.
| void DigitalSpaces::DIOGRECamera::MoveRelative | ( | in_Vector3f * | vec | ) |
Moves the camera's position by the vector offset provided along it's own axes (relative to orientation).
| void DigitalSpaces::DIOGRECamera::SetDirection | ( | float | x, | |
| float | y, | |||
| float | z | |||
| ) |
Sets the camera's direction vector.
| void DigitalSpaces::DIOGRECamera::SetDirection | ( | in_Vector3f * | vec | ) |
Sets the camera's direction vector.
| void DigitalSpaces::DIOGRECamera::GetDirection | ( | out_Vector3f * | vec | ) |
| void DigitalSpaces::DIOGRECamera::GetUp | ( | out_Vector3f * | vec | ) |
Gets the camera's up vector.
| void DigitalSpaces::DIOGRECamera::GetRight | ( | out_Vector3f * | vec | ) |
Gets the camera's right vector.
| void DigitalSpaces::DIOGRECamera::LookAt | ( | in_Vector3f * | targetPoint | ) |
Points the camera at a location in worldspace.
| targetPoint | A vector specifying the look at point. |
| void DigitalSpaces::DIOGRECamera::LookAt | ( | float | x, | |
| float | y, | |||
| float | z | |||
| ) |
Points the camera at a location in worldspace.
| x | ||
| y | ||
| z | Co-ordinates of the point to look at. |
| void DigitalSpaces::DIOGRECamera::RollRadian | ( | const float | angle | ) |
Rolls the camera anticlockwise, around its local z axis.
| void DigitalSpaces::DIOGRECamera::RollDegree | ( | const float | angle | ) |
| void DigitalSpaces::DIOGRECamera::YawRadian | ( | const float | angle | ) |
Rotates the camera anticlockwise around it's local y axis.
| void DigitalSpaces::DIOGRECamera::YawDegree | ( | const float | angle | ) |
| void DigitalSpaces::DIOGRECamera::PitchRadian | ( | const float | angle | ) |
Pitches the camera up/down anticlockwise around it's local z axis.
| void DigitalSpaces::DIOGRECamera::PitchDegree | ( | const float | angle | ) |
| void DigitalSpaces::DIOGRECamera::RotateRadian | ( | in_Vector3f * | axis, | |
| const float | angle | |||
| ) |
Rotate the camera around an arbitrary axis.
| void DigitalSpaces::DIOGRECamera::RotateDegree | ( | in_Vector3f * | axis, | |
| const float | angle | |||
| ) |
| void DigitalSpaces::DIOGRECamera::Rotate | ( | in_Quaternionf * | q | ) |
Rotate the camera around an aritrary axis using a Quarternion.
| void DigitalSpaces::DIOGRECamera::SetFixedYawAxis | ( | bool | useFixed | ) |
Tells the camera whether to yaw around it's own local Y axis or a fixed axis of choice.
| useFixed | If true, the axis passed in the second parameter will always be the yaw axis no matter what the camera orientation. If false, the camera yaws around the local Y. | |
| fixedAxis | The axis to use if the first parameter is true. |
| void DigitalSpaces::DIOGRECamera::SetFixedYawAxis | ( | bool | useFixed, | |
| in_Vector3f * | fixedAxis | |||
| ) |
| void DigitalSpaces::DIOGRECamera::GetOrientation | ( | out_Quaternionf * | q | ) |
Returns the camera's current orientation.
| void DigitalSpaces::DIOGRECamera::SetOrientation | ( | in_Quaternionf * | q | ) |
Sets the camera's orientation.
| void DigitalSpaces::DIOGRECamera::GetDerivedOrientation | ( | out_Quaternionf * | q | ) |
Gets the derived orientation of the camera, including any rotation inherited from a node attachment.
| void DigitalSpaces::DIOGRECamera::GetDerivedPosition | ( | out_Vector3f * | vec | ) |
Gets the derived position of the camera, including any translation inherited from a node attachment.
| void DigitalSpaces::DIOGRECamera::GetDerivedDirection | ( | out_Vector3f * | vec | ) |
Gets the derived direction vector of the camera, including any translation inherited from a node attachment.
| void DigitalSpaces::DIOGRECamera::SetAutoTracking | ( | bool | enabled | ) |
Enables / disables automatic tracking of a SceneNode.
| enabled | If true, the Camera will track the SceneNode supplied as the next parameter (cannot be null). If false the camera will cease tracking and will remain in it's current orientation. | |
| target | Pointer to the SceneNode which this Camera will track. Make sure you don't delete this SceneNode before turning off tracking (e.g. SceneManager::clearScene will delete it so be careful of this). Can be null if and only if the enabled param is false. | |
| offset | If supplied, the camera targets this point in local space of the target node instead of the origin of the target node. Good for fine tuning the look at point. |
| void DigitalSpaces::DIOGRECamera::SetAutoTracking | ( | bool | enabled, | |
| DIOGRESceneNode * | target, | |||
| in_Vector3f * | offset | |||
| ) |
| void DigitalSpaces::DIOGRECamera::SetLodBias | ( | ) |
Sets the level-of-detail factor for this Camera.
| factor | The factor to apply to the usual level of detail calculation. Higher values increase the detail, so 2.0 doubles the normal detail and 0.5 halves it. |
| void DigitalSpaces::DIOGRECamera::SetLodBias | ( | float | factor | ) |
| float DigitalSpaces::DIOGRECamera::GetLodBias | ( | void | ) |
Returns the level-of-detail bias factor currently applied to this camera.
| DIOGRERay* DigitalSpaces::DIOGRECamera::GetCameraToViewportRay | ( | float | screenx, | |
| float | screeny | |||
| ) |
Gets a world space ray as cast from the camera through a viewport position.
| screenx,screeny | The x and y position at which the ray should intersect the viewport, in normalised screen coordinates [0,1] |
| void DigitalSpaces::DIOGRECamera::SetWindow | ( | float | Left, | |
| float | Top, | |||
| float | Right, | |||
| float | Bottom | |||
| ) |
Sets the viewing window inside of viewport.
| Left | Relative to Viewport - 0 corresponds to left edge, 1 - to right edge (default - 0). | |
| Top | Relative to Viewport - 0 corresponds to top edge, 1 - to bottom edge (default - 0). | |
| Right | Relative to Viewport - 0 corresponds to left edge, 1 - to right edge (default - 1). | |
| Bottom | Relative to Viewport - 0 corresponds to top edge, 1 - to bottom edge (default - 1). |
| void DigitalSpaces::DIOGRECamera::ResetWindow | ( | void | ) |
Cancel view window.
| bool DigitalSpaces::DIOGRECamera::IsWindowSet | ( | void | ) |
Returns if a viewport window is being used.
| DIOGRESceneNode* DigitalSpaces::DIOGRECamera::GetAutoTrackTarget | ( | void | ) |
Get the auto tracking target for this camera, if any.
| void DigitalSpaces::DIOGRECamera::GetAutoTrackOffset | ( | out_Vector3f * | vec | ) |
Get the auto tracking offset for this camera, if it is auto tracking.
| DIOGREViewport* DigitalSpaces::DIOGRECamera::GetViewport | ( | void | ) |
Get the last viewport which was attached to this camera.
| void DigitalSpaces::DIOGRECamera::SetAutoAspectRatio | ( | bool | autoratio | ) |
If set to true a vieport that owns this frustum will be able to recalculate the aspect ratio whenever the frustum is resized.
| bool DigitalSpaces::DIOGRECamera::GetAutoAspectRatio | ( | void | ) |
Retreives if AutoAspectRatio is currently set or not.
| void DigitalSpaces::DIOGRECamera::SetFOVyRadian | ( | const float | fovy | ) |
Sets the Y-dimension Field Of View (FOV) of the frustum.
| void DigitalSpaces::DIOGRECamera::SetFOVyDegree | ( | const float | fovy | ) |
| float DigitalSpaces::DIOGRECamera::GetFOVyRadian | ( | void | ) |
Retrieves the frustums Y-dimension Field Of View (FOV).
| float DigitalSpaces::DIOGRECamera::GetFOVyDegree | ( | void | ) |
| void DigitalSpaces::DIOGRECamera::SetNearClipDistance | ( | float | nearDist | ) |
Sets the position of the near clipping plane.
| near | The distance to the near clipping plane from the frustum in world coordinates. |
| float DigitalSpaces::DIOGRECamera::GetNearClipDistance | ( | void | ) |
Sets the position of the near clipping plane.
| void DigitalSpaces::DIOGRECamera::SetFarClipDistance | ( | float | farDist | ) |
Sets the distance to the far clipping plane.
| far | The distance to the far clipping plane from the frustum in world coordinates.If you specify 0, this means an infinite view distance which is useful especially when projecting shadows; but be careful not to use a near distance too close. |
| float DigitalSpaces::DIOGRECamera::GetFarClipDistance | ( | void | ) |
Retrieves the distance from the frustum to the far clipping plane.
| void DigitalSpaces::DIOGRECamera::SetAspectRatio | ( | float | ratio | ) |
Sets the aspect ratio for the frustum viewport.
| float DigitalSpaces::DIOGRECamera::GetAspectRatio | ( | void | ) |
Retreives the current aspect ratio.
| void DigitalSpaces::DIOGRECamera::GetProjectionMatrixWithRSDepth | ( | out_Matrix4f * | mat | ) |
Gets the 'standard' projection matrix for this frustum, ie the projection matrix which conforms to standard right-handed rules.
| void DigitalSpaces::DIOGRECamera::GetViewMatrix | ( | out_Matrix4f * | mat | ) |
Gets the view matrix for this frustum.
Mainly for use by OGRE internally.
| void DigitalSpaces::DIOGRECamera::GetFrustumPlane | ( | unsigned short | plane, | |
| out_Vector4f * | outPlane | |||
| ) |
Retrieves a specified plane of the frustum.
| bool DigitalSpaces::DIOGRECamera::IsVisible | ( | DIOGREAxisAlignedBox * | bound | ) |
Tests whether the given container is visible in the Frustum.
| bound | Bounding box to be checked | |
| culledBy | Optional pointer to an int which will be filled by the plane number which culled the box if the result was false; |
| bool DigitalSpaces::DIOGRECamera::IsVisible | ( | DIOGREAxisAlignedBox * | bound, | |
| OGREFrustumPlane * | culledBy | |||
| ) |
| bool DigitalSpaces::DIOGRECamera::IsVisible | ( | in_Vector4f * | sphere | ) |
Tests whether the given container is visible in the Frustum.
| bound | Bounding sphere to be checked | |
| culledBy | Optional pointer to an int which will be filled by the plane number which culled the box if the result was false; |
| bool DigitalSpaces::DIOGRECamera::IsVisible | ( | in_Vector4f * | sphere, | |
| OGREFrustumPlane * | culledBy | |||
| ) |
| bool DigitalSpaces::DIOGRECamera::IsVisible | ( | in_Vector3f * | vert | ) |
Tests whether the given vertex is visible in the Frustum.
| vert | Vertex to be checked | |
| culledBy | Optional pointer to an int which will be filled by the plane number which culled the box if the result was false; |
| bool DigitalSpaces::DIOGRECamera::IsVisible | ( | in_Vector3f * | vert, | |
| OGREFrustumPlane * | culledBy | |||
| ) |
| void DigitalSpaces::DIOGRECamera::SetProjectionType | ( | OGREProjectionType | pt | ) |
Sets the type of projection to use (orthographic or perspective).
Default is perspective.
| OGREProjectionType DigitalSpaces::DIOGRECamera::GetProjectionType | ( | void | ) |
Retrieves info on the type of projection used (orthographic or perspective).
1.5.6