#include <OgreCamera.h>
Inheritance diagram for Ogre::Camera:
Public Types | |
typedef std::vector< ShadowRenderable * > | ShadowRenderableList |
typedef VectorIterator< ShadowRenderableList > | ShadowRenderableListIterator |
Public Member Functions | |
Camera (const String &name, SceneManager *sm) | |
Standard constructor. | |
virtual | ~Camera () |
Standard destructor. | |
SceneManager * | getSceneManager (void) const |
Returns a pointer to the SceneManager this camera is rendering through. | |
virtual const String & | getName (void) const |
Gets the camera's name. | |
void | setDetailLevel (SceneDetailLevel sd) |
Sets the level of rendering detail required from this camera. | |
SceneDetailLevel | getDetailLevel (void) const |
Retrieves the level of detail that the camera will render. | |
void | setPosition (Real x, Real y, Real z) |
Sets the camera's position. | |
void | setPosition (const Vector3 &vec) |
Sets the camera's position. | |
const Vector3 & | getPosition (void) const |
Retrieves the camera's position. | |
void | move (const Vector3 &vec) |
Moves the camera's position by the vector offset provided along world axes. | |
void | moveRelative (const Vector3 &vec) |
Moves the camera's position by the vector offset provided along it's own axes (relative to orientation). | |
void | setDirection (Real x, Real y, Real z) |
Sets the camera's direction vector. | |
void | setDirection (const Vector3 &vec) |
Sets the camera's direction vector. | |
Vector3 | getDirection (void) const |
Vector3 | getUp (void) const |
Gets the camera's up vector. | |
Vector3 | getRight (void) const |
Gets the camera's right vector. | |
void | lookAt (const Vector3 &targetPoint) |
Points the camera at a location in worldspace. | |
void | lookAt (Real x, Real y, Real z) |
Points the camera at a location in worldspace. | |
void | roll (const Radian &angle) |
Rolls the camera anticlockwise, around its local z axis. | |
void | yaw (const Radian &angle) |
Rotates the camera anticlockwise around it's local y axis. | |
void | pitch (const Radian &angle) |
Pitches the camera up/down anticlockwise around it's local z axis. | |
void | rotate (const Vector3 &axis, const Radian &angle) |
Rotate the camera around an arbitrary axis. | |
void | rotate (const Quaternion &q) |
Rotate the camera around an aritrary axis using a Quarternion. | |
void | setFixedYawAxis (bool useFixed, const Vector3 &fixedAxis=Vector3::UNIT_Y) |
Tells the camera whether to yaw around it's own local Y axis or a fixed axis of choice. | |
const Quaternion & | getOrientation (void) const |
Returns the camera's current orientation. | |
void | setOrientation (const Quaternion &q) |
Sets the camera's orientation. | |
void | _renderScene (Viewport *vp, bool includeOverlays) |
Tells the Camera to contact the SceneManager to render from it's viewpoint. | |
void | _notifyRenderedFaces (unsigned int numfaces) |
Internal method to notify camera of the visible faces in the last render. | |
unsigned int | _getNumRenderedFaces (void) const |
Internal method to retrieve the number of visible faces in the last render. | |
const Quaternion & | getDerivedOrientation (void) const |
Gets the derived orientation of the camera, including any rotation inherited from a node attachment. | |
const Vector3 & | getDerivedPosition (void) const |
Gets the derived position of the camera, including any translation inherited from a node attachment. | |
Vector3 | getDerivedDirection (void) const |
Gets the derived direction vector of the camera, including any translation inherited from a node attachment. | |
Vector3 | getDerivedUp (void) const |
Gets the derived up vector of the camera, including any translation inherited from a node attachment. | |
Vector3 | getDerivedRight (void) const |
Gets the derived right vector of the camera, including any translation inherited from a node attachment. | |
const String & | getMovableType (void) const |
Overridden from MovableObject. | |
void | setAutoTracking (bool enabled, SceneNode *target=0, const Vector3 &offset=Vector3::ZERO) |
Enables / disables automatic tracking of a SceneNode. | |
void | setLodBias (Real factor=1.0) |
Sets the level-of-detail factor for this Camera. | |
Real | getLodBias (void) const |
Returns the level-of-detail bias factor currently applied to this camera. | |
Ray | getCameraToViewportRay (Real screenx, Real screeny) const |
Gets a world space ray as cast from the camera through a viewport position. | |
Real | _getLodBiasInverse (void) const |
Internal method for OGRE to use for LOD calculations. | |
void | _autoTrack (void) |
Internal method used by OGRE to update auto-tracking cameras. | |
virtual void | setWindow (Real Left, Real Top, Real Right, Real Bottom) |
Sets the viewing window inside of viewport. | |
virtual void | resetWindow (void) |
Cancel view window. | |
virtual bool | isWindowSet (void) const |
Returns if a viewport window is being used. | |
const std::vector< Plane > & | getWindowPlanes (void) const |
Gets the window clip planes, only applicable if isWindowSet == true. | |
Real | getBoundingRadius (void) const |
Overridden from MovableObject. | |
SceneNode * | getAutoTrackTarget (void) const |
Get the auto tracking target for this camera, if any. | |
const Vector3 & | getAutoTrackOffset (void) const |
Get the auto tracking offset for this camera, if it is auto tracking. | |
Viewport * | getViewport (void) const |
Get the last viewport which was attached to this camera. | |
void | _notifyViewport (Viewport *viewport) |
Notifies this camera that a viewport is using it. | |
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) const |
Retreives if AutoAspectRatio is currently set or not. | |
virtual void | setFOVy (const Radian &fovy) |
Sets the Y-dimension Field Of View (FOV) of the frustum. | |
virtual const Radian & | getFOVy (void) const |
Retrieves the frustums Y-dimension Field Of View (FOV). | |
virtual void | setNearClipDistance (Real nearDist) |
Sets the position of the near clipping plane. | |
virtual Real | getNearClipDistance (void) const |
Sets the position of the near clipping plane. | |
virtual void | setFarClipDistance (Real farDist) |
Sets the distance to the far clipping plane. | |
virtual Real | getFarClipDistance (void) const |
Retrieves the distance from the frustum to the far clipping plane. | |
virtual void | setAspectRatio (Real ratio) |
Sets the aspect ratio for the frustum viewport. | |
virtual Real | getAspectRatio (void) const |
Retreives the current aspect ratio. | |
virtual const Matrix4 & | getProjectionMatrix (void) const |
Gets the projection matrix for this frustum. | |
virtual const Matrix4 & | getStandardProjectionMatrix (void) const |
Gets the 'standard' projection matrix for this frustum, ie the projection matrix which conforms to standard right-handed rules. | |
virtual const Matrix4 & | getViewMatrix (void) const |
Gets the view matrix for this frustum. | |
virtual const Plane & | getFrustumPlane (unsigned short plane) const |
Retrieves a specified plane of the frustum. | |
virtual bool | isVisible (const AxisAlignedBox &bound, FrustumPlane *culledBy=0) const |
Tests whether the given container is visible in the Frustum. | |
virtual bool | isVisible (const Sphere &bound, FrustumPlane *culledBy=0) const |
Tests whether the given container is visible in the Frustum. | |
virtual bool | isVisible (const Vector3 &vert, FrustumPlane *culledBy=0) const |
Tests whether the given vertex is visible in the Frustum. | |
virtual bool | isVisible (void) const |
Returns whether or not this object is supposed to be visible or not. | |
const AxisAlignedBox & | getBoundingBox (void) const |
Overridden from MovableObject. | |
void | _updateRenderQueue (RenderQueue *queue) |
Overridden from MovableObject. | |
void | _notifyCurrentCamera (Camera *cam) |
Overridden from MovableObject. | |
const MaterialPtr & | getMaterial (void) const |
Overridden from Renderable. | |
void | getRenderOperation (RenderOperation &op) |
Overridden from Renderable. | |
void | getWorldTransforms (Matrix4 *xform) const |
Overridden from Renderable. | |
const Quaternion & | getWorldOrientation (void) const |
Overridden from Renderable. | |
const Vector3 & | getWorldPosition (void) const |
Overridden from Renderable. | |
Real | getSquaredViewDepth (const Camera *cam) const |
Overridden from Renderable. | |
const LightList & | getLights (void) const |
Overridden from Renderable. | |
virtual const Vector3 * | getWorldSpaceCorners (void) const |
Gets the world space corners of the frustum. | |
virtual void | setProjectionType (ProjectionType pt) |
Sets the type of projection to use (orthographic or perspective). | |
virtual ProjectionType | getProjectionType (void) const |
Retrieves info on the type of projection used (orthographic or perspective). | |
virtual void | enableReflection (const Plane &p) |
Modifies this frustum so it always renders from the reflection of itself through the plane specified. | |
virtual void | enableReflection (const MovablePlane *p) |
Modifies this frustum so it always renders from the reflection of itself through the plane specified. | |
virtual void | disableReflection (void) |
Disables reflection modification previously turned on with enableReflection. | |
virtual bool | isReflected (void) const |
Returns whether this frustum is being reflected. | |
virtual const Matrix4 & | getReflectionMatrix (void) const |
Returns the reflection matrix of the frustum if appropriate. | |
virtual const Plane & | getReflectionPlane (void) const |
Returns the reflection plane of the frustum if appropriate. | |
virtual bool | projectSphere (const Sphere &sphere, Real *left, Real *top, Real *right, Real *bottom) const |
Project a sphere onto the near plane and get the bounding rectangle. | |
virtual void | enableCustomNearClipPlane (const MovablePlane *plane) |
Links the frustum to a custom near clip plane, which can be used to clip geometry in a custom manner without using user clip planes. | |
virtual void | enableCustomNearClipPlane (const Plane &plane) |
Links the frustum to a custom near clip plane, which can be used to clip geometry in a custom manner without using user clip planes. | |
virtual void | disableCustomNearClipPlane (void) |
Disables any custom near clip plane. | |
virtual bool | isCustomNearClipPlaneEnabled (void) const |
Is a custom near clip plane in use? | |
virtual Node * | getParentNode (void) const |
Returns the node to which this object is attached. | |
virtual SceneNode * | getParentSceneNode (void) const |
Returns the scene node to which this object is attached. | |
virtual void | _notifyAttached (Node *parent, bool isTagPoint=false) |
Internal method called to notify the object that it has been attached to a node. | |
virtual bool | isAttached (void) const |
Returns true if this object is attached to a SceneNode or TagPoint. | |
virtual bool | isInScene (void) const |
Returns true if this object is attached to a SceneNode or TagPoint, and this SceneNode / TagPoint is currently in an active part of the scene graph. | |
virtual const AxisAlignedBox & | getWorldBoundingBox (bool derive=false) const |
Retrieves the axis-aligned bounding box for this object in world coordinates. | |
virtual const Sphere & | getWorldBoundingSphere (bool derive=false) const |
Retrieves the worldspace bounding sphere for this object. | |
virtual void | setVisible (bool visible) |
Tells this object whether to be visible or not, if it has a renderable component. | |
virtual void | setUserObject (UserDefinedObject *obj) |
Call this to associate your own custom user object instance with this MovableObject. | |
virtual UserDefinedObject * | getUserObject (void) |
Retrieves a pointer to a custom application object associated with this movable by an earlier call to setUserObject. | |
virtual void | setRenderQueueGroup (RenderQueueGroupID queueID) |
Sets the render queue group this entity will be rendered through. | |
virtual RenderQueueGroupID | getRenderQueueGroup (void) const |
Gets the queue group for this entity, see setRenderQueueGroup for full details. | |
virtual Matrix4 | _getParentNodeFullTransform (void) const |
return the full transformation of the parent sceneNode or the attachingPoint node | |
virtual void | setQueryFlags (unsigned long flags) |
Sets the query flags for this object. | |
virtual void | addQueryFlags (unsigned long flags) |
As setQueryFlags, except the flags passed as parameters are appended to the existing flags on this object. | |
virtual void | removeQueryFlags (unsigned long flags) |
As setQueryFlags, except the flags passed as parameters are removed from the existing flags on this object. | |
virtual unsigned long | getQueryFlags (void) const |
Returns the query flags relevant for this object. | |
EdgeData * | getEdgeList (void) |
Define a default implementation of method from ShadowCaster which implements no shadows. | |
ShadowRenderableListIterator | getShadowVolumeRenderableIterator (ShadowTechnique shadowTechnique, const Light *light, HardwareIndexBufferSharedPtr *indexBuffer, bool extrudeVertices, Real extrusionDist, unsigned long flags=0) |
Define a default implementation of method from ShadowCaster which implements no shadows. | |
const AxisAlignedBox & | getLightCapBounds (void) const |
Overridden member from ShadowCaster. | |
const AxisAlignedBox & | getDarkCapBounds (const Light &light, Real dirLightExtrusionDist) const |
Overridden member from ShadowCaster. | |
void | setCastShadows (bool enabled) |
Sets whether or not this object will cast shadows. | |
bool | getCastShadows (void) const |
Returns whether shadow casting is enabled for this object. | |
Real | getPointExtrusionDistance (const Light *l) const |
Get the distance to extrude for a point/spot light. | |
virtual Technique * | getTechnique (void) const |
Retrieves a pointer to the Material Technique this renderable object uses. | |
virtual unsigned short | getNumWorldTransforms (void) const |
Returns the number of world transform matrices this renderable requires. | |
virtual bool | useIdentityProjection (void) const |
Returns whether or not to use an 'identity' projection. | |
virtual bool | useIdentityView (void) const |
Returns whether or not to use an 'identity' projection. | |
virtual SceneDetailLevel | getRenderDetail () const |
Returns the preferred rasterisation mode of this renderable. | |
virtual bool | getNormaliseNormals (void) const |
Returns whether or not this Renderable wishes the hardware to normalise normals. | |
virtual const PlaneList & | getClipPlanes () const |
virtual bool | getCastsShadows (void) const |
Method which reports whether this renderable would normally cast a shadow. | |
void | setCustomParameter (size_t index, const Vector4 &value) |
Sets a custom parameter for this Renderable, which may be used to drive calculations for this specific Renderable, like GPU program parameters. | |
const Vector4 & | getCustomParameter (size_t index) const |
Gets the custom value associated with this Renderable at the given index. | |
virtual void | _updateCustomGpuParameter (const GpuProgramParameters::AutoConstantEntry &constantEntry, GpuProgramParameters *params) const |
Update a custom GpuProgramParameters constant which is derived from information only this Renderable knows. | |
virtual void | setRenderDetailOverrideable (bool override) |
Sets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting. | |
virtual bool | getRenderDetailOverrideable (void) const |
Gets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting. | |
Static Public Member Functions | |
void | extrudeVertices (HardwareVertexBufferSharedPtr vertexBuffer, size_t originalVertexCount, const Vector4 &lightPos, Real extrudeDist) |
Utility method for extruding vertices based on a light. | |
Static Public Attributes | |
const Real | INFINITE_FAR_PLANE_ADJUST |
Small constant used to reduce far plane projection to avoid inaccuracies. | |
Protected Types | |
typedef std::map< size_t, Vector4 > | CustomParameterMap |
Protected Member Functions | |
void | updateFrustum (void) const |
void | updateView (void) const |
bool | isViewOutOfDate (void) const |
void | invalidateFrustum (void) const |
Signal to update frustum information. | |
void | invalidateView (void) const |
Signal to update view information. | |
virtual void | setWindowImpl (void) const |
Do actual window setting, using parameters set in SetWindow call. | |
const Vector3 & | getPositionForViewUpdate (void) const |
Get the derived position of this frustum. | |
const Quaternion & | getOrientationForViewUpdate (void) const |
Get the derived orientation of this frustum. | |
virtual bool | isFrustumOutOfDate (void) const |
Real | getExtrusionDistance (const Vector3 &objectPos, const Light *light) const |
Helper moethod for calculating extrusion distance. | |
virtual void | updateEdgeListLightFacing (EdgeData *edgeData, const Vector4 &lightPos) |
Tells the caster to perform the tasks necessary to update the edge data's light listing. | |
virtual void | generateShadowVolume (EdgeData *edgeData, HardwareIndexBufferSharedPtr indexBuffer, const Light *light, ShadowRenderableList &shadowRenderables, unsigned long flags) |
Generates the indexes required to render a shadow volume into the index buffer which is passed in, and updates shadow renderables to use it. | |
virtual void | extrudeBounds (AxisAlignedBox &box, const Vector4 &lightPos, Real extrudeDist) const |
Utility method for extruding a bounding box. | |
Protected Attributes | |
String | mName |
Camera name. | |
SceneManager * | mSceneMgr |
Scene manager responsible for the scene. | |
Quaternion | mOrientation |
Camera orientation, quaternion style. | |
Vector3 | mPosition |
Camera position - default (0,0,0). | |
Quaternion | mDerivedOrientation |
Derived positions of parent orientation / position. | |
Vector3 | mDerivedPosition |
bool | mYawFixed |
Whether to yaw around a fixed axis. | |
Vector3 | mYawFixedAxis |
Fixed axis to yaw around. | |
SceneDetailLevel | mSceneDetail |
Rendering type. | |
unsigned int | mVisFacesLastRender |
Stored number of visible faces in the last render. | |
SceneNode * | mAutoTrackTarget |
SceneNode which this Camera will automatically track. | |
Vector3 | mAutoTrackOffset |
Tracking offset for fine tuning. | |
Real | mSceneLodFactor |
Real | mSceneLodFactorInv |
Inverted scene LOD factor, can be used by Renderables to adjust their LOD. | |
Real | mWLeft |
Viewing window. | |
Real | mWTop |
Viewing window. | |
Real | mWRight |
Viewing window. | |
Real | mWBottom |
Viewing window. | |
bool | mWindowSet |
Is viewing window used. | |
std::vector< Plane > | mWindowClipPlanes |
Windowed viewport clip planes. | |
bool | mRecalcWindow |
Viewport * | mLastViewport |
The last viewport to be added using this camera. | |
bool | mAutoAspectRatio |
Whether aspect ratio will automaticaally be recalculated when a vieport changes its size. | |
ProjectionType | mProjType |
Orthographic or perspective? | |
Radian | mFOVy |
y-direction field-of-view (default 45) | |
Real | mFarDist |
Far clip distance - default 10000. | |
Real | mNearDist |
Near clip distance - default 100. | |
Real | mAspect |
x/y viewport ratio - default 1.3333 | |
Plane | mFrustumPlanes [6] |
The 6 main clipping planes. | |
Quaternion | mLastParentOrientation |
Stored versions of parent orientation / position. | |
Vector3 | mLastParentPosition |
Matrix4 | mProjMatrix |
Pre-calced projection matrix. | |
Matrix4 | mStandardProjMatrix |
Pre-calced standard projection matrix. | |
Matrix4 | mViewMatrix |
Pre-calced view matrix. | |
bool | mRecalcFrustum |
Something's changed in the frustrum shape? | |
bool | mRecalcView |
Something re the view pos has changed. | |
Real | mCoeffL [2] |
Temp coefficient values calculated from a frustum change, used when establishing the frustum planes when the view changes. | |
Real | mCoeffR [2] |
Temp coefficient values calculated from a frustum change, used when establishing the frustum planes when the view changes. | |
Real | mCoeffB [2] |
Temp coefficient values calculated from a frustum change, used when establishing the frustum planes when the view changes. | |
Real | mCoeffT [2] |
Temp coefficient values calculated from a frustum change, used when establishing the frustum planes when the view changes. | |
AxisAlignedBox | mBoundingBox |
VertexData | mVertexData |
MaterialPtr | mMaterial |
Vector3 | mWorldSpaceCorners [8] |
bool | mReflect |
Is this frustum to act as a reflection of itself? | |
Matrix4 | mReflectMatrix |
Derived reflection matrix. | |
Plane | mReflectPlane |
Fixed reflection plane. | |
const MovablePlane * | mLinkedReflectPlane |
Pointer to a reflection plane (automatically updated). | |
Plane | mLastLinkedReflectionPlane |
Record of the last world-space reflection plane info used. | |
bool | mObliqueDepthProjection |
Is this frustum using an oblique depth projection? | |
Plane | mObliqueProjPlane |
Fixed oblique projection plane. | |
const MovablePlane * | mLinkedObliqueProjPlane |
Pointer to oblique projection plane (automatically updated). | |
Plane | mLastLinkedObliqueProjPlane |
Record of the last world-space oblique depth projection plane info used. | |
Node * | mParentNode |
node to which this object is attached | |
bool | mParentIsTagPoint |
bool | mVisible |
Is this object visible? | |
UserDefinedObject * | mUserObject |
User defined object which is linked to this object. | |
RenderQueueGroupID | mRenderQueueID |
The render queue to use when rendering this object. | |
bool | mRenderQueueIDSet |
Flags whether the RenderQueue's default should be used. | |
unsigned long | mQueryFlags |
Flags determining whether this object is included / excluded from scene queries. | |
AxisAlignedBox | mWorldAABB |
Cached world AABB of this object. | |
Sphere | mWorldBoundingSphere |
AxisAlignedBox | mWorldDarkCapBounds |
World space AABB of this object's dark cap. | |
bool | mCastShadows |
Does this object cast shadows? | |
CustomParameterMap | mCustomParameters |
bool | mRenderDetailOverrideable |
Static Protected Attributes | |
String | msMovableType |
Shared class-level name for Movable type. | |
const PlaneList | msDummyPlaneList |
Friends | |
std::ostream & | operator<< (std::ostream &o, Camera &c) |
Function for outputting to a stream. |
Definition at line 76 of file OgreCamera.h.
|
Definition at line 251 of file OgreRenderable.h. |
|
Definition at line 121 of file OgreShadowCaster.h. |
|
Definition at line 122 of file OgreShadowCaster.h. |
|
Standard constructor.
|
|
Standard destructor.
|
|
Internal method used by OGRE to update auto-tracking cameras.
|
|
Internal method for OGRE to use for LOD calculations.
|
|
Internal method to retrieve the number of visible faces in the last render.
|
|
return the full transformation of the parent sceneNode or the attachingPoint node
|
|
Internal method called to notify the object that it has been attached to a node.
Reimplemented in Ogre::Entity, and Ogre::ParticleSystem. |
|
Overridden from MovableObject.
Implements Ogre::MovableObject. |
|
Internal method to notify camera of the visible faces in the last render.
|
|
Notifies this camera that a viewport is using it.
Definition at line 448 of file OgreCamera.h. |
|
Tells the Camera to contact the SceneManager to render from it's viewpoint.
|
|
Update a custom GpuProgramParameters constant which is derived from information only this Renderable knows.
Reimplemented in Ogre::TerrainRenderable. Definition at line 219 of file OgreRenderable.h. References Ogre::GpuProgramParameters::AutoConstantEntry::data, Ogre::GpuProgramParameters::AutoConstantEntry::index, and params. |
|
Overridden from MovableObject.
Implements Ogre::MovableObject. |
|
As setQueryFlags, except the flags passed as parameters are appended to the existing flags on this object.
Definition at line 203 of file OgreMovableObject.h. |
|
Disables any custom near clip plane.
|
|
Disables reflection modification previously turned on with enableReflection.
|
|
Links the frustum to a custom near clip plane, which can be used to clip geometry in a custom manner without using user clip planes.
|
|
Links the frustum to a custom near clip plane, which can be used to clip geometry in a custom manner without using user clip planes.
|
|
Modifies this frustum so it always renders from the reflection of itself through the plane specified. Note that this version of the method links to a plane so that changes to it are picked up automatically. It is important that this plane continues to exist whilst this object does; do not destroy the plane before the frustum.
|
|
Modifies this frustum so it always renders from the reflection of itself through the plane specified.
|
|
Utility method for extruding a bounding box.
|
|
Utility method for extruding vertices based on a light.
|
|
Generates the indexes required to render a shadow volume into the index buffer which is passed in, and updates shadow renderables to use it.
|
|
Retreives the current aspect ratio.
|
|
Retreives if AutoAspectRatio is currently set or not.
|
|
Get the auto tracking offset for this camera, if it is auto tracking.
Definition at line 439 of file OgreCamera.h. |
|
Get the auto tracking target for this camera, if any.
Definition at line 437 of file OgreCamera.h. |
|
Overridden from MovableObject.
Implements Ogre::MovableObject. |
|
Overridden from MovableObject.
Reimplemented from Ogre::Frustum. |
|
Gets a world space ray as cast from the camera through a viewport position.
|
|
Returns whether shadow casting is enabled for this object.
Implements Ogre::ShadowCaster. Definition at line 238 of file OgreMovableObject.h. |
|
Method which reports whether this renderable would normally cast a shadow.
Reimplemented in Ogre::StaticGeometry::GeometryBucket, and Ogre::SubEntity. Definition at line 154 of file OgreRenderable.h. |
|
Definition at line 146 of file OgreRenderable.h. References Ogre::PlaneList. |
|
Gets the custom value associated with this Renderable at the given index.
Definition at line 180 of file OgreRenderable.h. References OGRE_EXCEPT. |
|
Overridden member from ShadowCaster.
Implements Ogre::ShadowCaster. |
|
Gets the derived direction vector of the camera, including any translation inherited from a node attachment.
|
|
Gets the derived orientation of the camera, including any rotation inherited from a node attachment.
|
|
Gets the derived position of the camera, including any translation inherited from a node attachment.
|
|
Gets the derived right vector of the camera, including any translation inherited from a node attachment.
|
|
Gets the derived up vector of the camera, including any translation inherited from a node attachment.
|
|
Retrieves the level of detail that the camera will render.
|
|
|
|
Define a default implementation of method from ShadowCaster which implements no shadows.
Implements Ogre::ShadowCaster. Reimplemented in Ogre::Entity, and Ogre::StaticGeometry::Region. Definition at line 213 of file OgreMovableObject.h. |
|
Helper moethod for calculating extrusion distance.
|
|
Retrieves the distance from the frustum to the far clipping plane.
|
|
Retrieves the frustums Y-dimension Field Of View (FOV).
|
|
Retrieves a specified plane of the frustum.
|
|
Overridden member from ShadowCaster.
Implements Ogre::ShadowCaster. |
|
Overridden from Renderable.
Implements Ogre::Renderable. |
|
Returns the level-of-detail bias factor currently applied to this camera.
|
|
Overridden from Renderable.
Implements Ogre::Renderable. |
|
Overridden from MovableObject.
Reimplemented from Ogre::Frustum. |
|
Gets the camera's name.
Reimplemented from Ogre::Frustum. |
|
Sets the position of the near clipping plane.
|
|
Returns whether or not this Renderable wishes the hardware to normalise normals.
Reimplemented in Ogre::SubEntity. Definition at line 138 of file OgreRenderable.h. |
|
Returns the number of world transform matrices this renderable requires.
Reimplemented in Ogre::BorderRenderable, and Ogre::SubEntity. Definition at line 104 of file OgreRenderable.h. |
|
Returns the camera's current orientation.
|
|
Get the derived orientation of this frustum.
Reimplemented from Ogre::Frustum. |
|
Returns the node to which this object is attached.
|
|
Returns the scene node to which this object is attached.
|
|
Get the distance to extrude for a point/spot light.
Implements Ogre::ShadowCaster. |
|
Retrieves the camera's position.
|
|
Get the derived position of this frustum.
Reimplemented from Ogre::Frustum. |
|
Gets the projection matrix for this frustum. Mainly for use by OGRE internally.
|
|
Retrieves info on the type of projection used (orthographic or perspective).
|
|
Returns the query flags relevant for this object.
Definition at line 210 of file OgreMovableObject.h. |
|
Returns the reflection matrix of the frustum if appropriate.
Definition at line 381 of file OgreFrustum.h. |
|
Returns the reflection plane of the frustum if appropriate.
Definition at line 383 of file OgreFrustum.h. |
|
Returns the preferred rasterisation mode of this renderable.
Reimplemented in Ogre::SubEntity. Definition at line 135 of file OgreRenderable.h. References Ogre::SceneDetailLevel, and Ogre::SDL_SOLID. |
|
Gets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting.
Reimplemented in Ogre::BorderRenderable. Definition at line 243 of file OgreRenderable.h. |
|
Overridden from Renderable.
Implements Ogre::Renderable. |
|
Gets the queue group for this entity, see setRenderQueueGroup for full details.
|
|
Gets the camera's right vector.
|
|
Returns a pointer to the SceneManager this camera is rendering through.
|
|
Define a default implementation of method from ShadowCaster which implements no shadows.
Implements Ogre::ShadowCaster. Reimplemented in Ogre::Entity, and Ogre::StaticGeometry::Region. |
|
Overridden from Renderable.
Implements Ogre::Renderable. |
|
Gets the 'standard' projection matrix for this frustum, ie the projection matrix which conforms to standard right-handed rules.
|
|
Retrieves a pointer to the Material Technique this renderable object uses.
Reimplemented in Ogre::StaticGeometry::GeometryBucket, and Ogre::SubEntity. Definition at line 69 of file OgreRenderable.h. |
|
Gets the camera's up vector.
|
|
Retrieves a pointer to a custom application object associated with this movable by an earlier call to setUserObject.
Definition at line 171 of file OgreMovableObject.h. |
|
Gets the view matrix for this frustum. Mainly for use by OGRE internally. |
|
Get the last viewport which was attached to this camera.
Definition at line 446 of file OgreCamera.h. |
|
Gets the window clip planes, only applicable if isWindowSet == true.
|
|
Retrieves the axis-aligned bounding box for this object in world coordinates.
Implements Ogre::ShadowCaster. Reimplemented in Ogre::Entity. |
|
Retrieves the worldspace bounding sphere for this object.
Reimplemented in Ogre::Entity. |
|
Overridden from Renderable.
Implements Ogre::Renderable. |
|
Overridden from Renderable.
Implements Ogre::Renderable. |
|
Gets the world space corners of the frustum.
|
|
Overridden from Renderable.
Implements Ogre::Renderable. |
|
Signal to update frustum information.
Reimplemented from Ogre::Frustum. |
|
Signal to update view information.
Reimplemented from Ogre::Frustum. |
|
Returns true if this object is attached to a SceneNode or TagPoint.
|
|
Is a custom near clip plane in use?
Definition at line 448 of file OgreFrustum.h. |
|
|
|
Returns true if this object is attached to a SceneNode or TagPoint, and this SceneNode / TagPoint is currently in an active part of the scene graph.
|
|
Returns whether this frustum is being reflected.
Definition at line 379 of file OgreFrustum.h. |
|
Reimplemented from Ogre::Frustum. |
|
Returns whether or not this object is supposed to be visible or not.
Reimplemented in Ogre::StaticGeometry::Region. |
|
Tests whether the given vertex is visible in the Frustum.
|
|
Tests whether the given container is visible in the Frustum.
|
|
Tests whether the given container is visible in the Frustum.
|
|
Returns if a viewport window is being used.
Definition at line 430 of file OgreCamera.h. |
|
Points the camera at a location in worldspace.
|
|
Points the camera at a location in worldspace.
|
|
Moves the camera's position by the vector offset provided along world axes.
|
|
Moves the camera's position by the vector offset provided along it's own axes (relative to orientation).
|
|
Pitches the camera up/down anticlockwise around it's local z axis.
|
|
Project a sphere onto the near plane and get the bounding rectangle.
|
|
As setQueryFlags, except the flags passed as parameters are removed from the existing flags on this object.
Definition at line 207 of file OgreMovableObject.h. |
|
Cancel view window.
|
|
Rolls the camera anticlockwise, around its local z axis.
|
|
Rotate the camera around an aritrary axis using a Quarternion.
|
|
Rotate the camera around an arbitrary axis.
|
|
Sets the aspect ratio for the frustum viewport.
|
|
If set to true a vieport that owns this frustum will be able to recalculate the aspect ratio whenever the frustum is resized.
|
|
Enables / disables automatic tracking of a SceneNode.
|
|
Sets whether or not this object will cast shadows.
Definition at line 236 of file OgreMovableObject.h. |
|
Sets a custom parameter for this Renderable, which may be used to drive calculations for this specific Renderable, like GPU program parameters.
Definition at line 171 of file OgreRenderable.h. |
|
Sets the level of rendering detail required from this camera.
|
|
Sets the camera's direction vector.
|
|
Sets the camera's direction vector.
|
|
Sets the distance to the far clipping plane.
|
|
Tells the camera whether to yaw around it's own local Y axis or a fixed axis of choice.
|
|
Sets the Y-dimension Field Of View (FOV) of the frustum.
|
|
Sets the level-of-detail factor for this Camera.
|
|
Sets the position of the near clipping plane.
|
|
Sets the camera's orientation.
|
|
Sets the camera's position.
|
|
Sets the camera's position.
|
|
Sets the type of projection to use (orthographic or perspective). Default is perspective. |
|
Sets the query flags for this object.
Definition at line 199 of file OgreMovableObject.h. |
|
Sets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting.
Definition at line 235 of file OgreRenderable.h. |
|
Sets the render queue group this entity will be rendered through.
Reimplemented in Ogre::Entity, and Ogre::ParticleSystem. |
|
Call this to associate your own custom user object instance with this MovableObject.
Definition at line 167 of file OgreMovableObject.h. |
|
Tells this object whether to be visible or not, if it has a renderable component.
Reimplemented in Ogre::Light. |
|
Sets the viewing window inside of viewport.
|
|
Do actual window setting, using parameters set in SetWindow call.
|
|
Tells the caster to perform the tasks necessary to update the edge data's light listing. Can be overridden if the subclass needs to do additional things.
|
|
Reimplemented from Ogre::Frustum. |
|
Reimplemented from Ogre::Frustum. |
|
Returns whether or not to use an 'identity' projection.
Reimplemented in Ogre::BorderRenderable, Ogre::OverlayElement, and Ogre::Rectangle2D. Definition at line 114 of file OgreRenderable.h. |
|
Returns whether or not to use an 'identity' projection.
Reimplemented in Ogre::BorderRenderable, Ogre::OverlayElement, and Ogre::Rectangle2D. Definition at line 124 of file OgreRenderable.h. |
|
Rotates the camera anticlockwise around it's local y axis.
|
|
Function for outputting to a stream.
|
|
Small constant used to reduce far plane projection to avoid inaccuracies.
Definition at line 453 of file OgreFrustum.h. |
|
x/y viewport ratio - default 1.3333
Definition at line 74 of file OgreFrustum.h. |
|
Whether aspect ratio will automaticaally be recalculated when a vieport changes its size.
Definition at line 135 of file OgreCamera.h. |
|
Tracking offset for fine tuning.
Definition at line 111 of file OgreCamera.h. |
|
SceneNode which this Camera will automatically track.
Definition at line 109 of file OgreCamera.h. |
|
Definition at line 116 of file OgreFrustum.h. |
|
Does this object cast shadows?
Definition at line 67 of file OgreMovableObject.h. |
|
Temp coefficient values calculated from a frustum change, used when establishing the frustum planes when the view changes.
Definition at line 98 of file OgreFrustum.h. |
|
Temp coefficient values calculated from a frustum change, used when establishing the frustum planes when the view changes.
Definition at line 98 of file OgreFrustum.h. |
|
Temp coefficient values calculated from a frustum change, used when establishing the frustum planes when the view changes.
Definition at line 98 of file OgreFrustum.h. |
|
Temp coefficient values calculated from a frustum change, used when establishing the frustum planes when the view changes.
Definition at line 98 of file OgreFrustum.h. |
|
Definition at line 252 of file OgreRenderable.h. |
|
Derived positions of parent orientation / position.
Definition at line 91 of file OgreCamera.h. |
|
Definition at line 92 of file OgreCamera.h. |
|
Far clip distance - default 10000.
Definition at line 70 of file OgreFrustum.h. |
|
y-direction field-of-view (default 45)
Definition at line 68 of file OgreFrustum.h. |
|
The 6 main clipping planes.
Definition at line 77 of file OgreFrustum.h. |
|
Record of the last world-space oblique depth projection plane info used.
Definition at line 140 of file OgreFrustum.h. |
|
Record of the last world-space reflection plane info used.
Definition at line 131 of file OgreFrustum.h. |
|
Stored versions of parent orientation / position.
Definition at line 80 of file OgreFrustum.h. |
|
Definition at line 81 of file OgreFrustum.h. |
|
The last viewport to be added using this camera.
Definition at line 131 of file OgreCamera.h. |
|
Pointer to oblique projection plane (automatically updated).
Definition at line 138 of file OgreFrustum.h. |
|
Pointer to a reflection plane (automatically updated).
Definition at line 129 of file OgreFrustum.h. |
|
Definition at line 119 of file OgreFrustum.h. |
|
Camera name.
Definition at line 80 of file OgreCamera.h. |
|
Near clip distance - default 100.
Definition at line 72 of file OgreFrustum.h. |
|
Is this frustum using an oblique depth projection?
Definition at line 134 of file OgreFrustum.h. |
|
Fixed oblique projection plane.
Definition at line 136 of file OgreFrustum.h. |
|
Camera orientation, quaternion style.
Definition at line 85 of file OgreCamera.h. |
|
Definition at line 49 of file OgreMovableObject.h. |
|
node to which this object is attached
Definition at line 48 of file OgreMovableObject.h. |
|
Camera position - default (0,0,0).
Definition at line 88 of file OgreCamera.h. |
|
Pre-calced projection matrix.
Definition at line 84 of file OgreFrustum.h. |
|
Orthographic or perspective?
Definition at line 65 of file OgreFrustum.h. |
|
Flags determining whether this object is included / excluded from scene queries.
Definition at line 59 of file OgreMovableObject.h. |
|
Something's changed in the frustrum shape?
Definition at line 90 of file OgreFrustum.h. |
|
Something re the view pos has changed.
Definition at line 92 of file OgreFrustum.h. |
|
Definition at line 129 of file OgreCamera.h. |
|
Is this frustum to act as a reflection of itself?
Definition at line 123 of file OgreFrustum.h. |
|
Derived reflection matrix.
Definition at line 125 of file OgreFrustum.h. |
|
Fixed reflection plane.
Definition at line 127 of file OgreFrustum.h. |
|
Definition at line 253 of file OgreRenderable.h. |
|
The render queue to use when rendering this object.
Definition at line 55 of file OgreMovableObject.h. |
|
Flags whether the RenderQueue's default should be used.
Definition at line 57 of file OgreMovableObject.h. |
|
Rendering type.
Definition at line 100 of file OgreCamera.h. |
|
Definition at line 114 of file OgreCamera.h. |
|
Inverted scene LOD factor, can be used by Renderables to adjust their LOD.
Definition at line 116 of file OgreCamera.h. |
|
Scene manager responsible for the scene.
Definition at line 82 of file OgreCamera.h. |
|
Definition at line 250 of file OgreRenderable.h. |
|
Shared class-level name for Movable type.
Reimplemented from Ogre::Frustum. Definition at line 106 of file OgreCamera.h. |
|
Pre-calced standard projection matrix.
Definition at line 86 of file OgreFrustum.h. |
|
User defined object which is linked to this object.
Definition at line 53 of file OgreMovableObject.h. |
|
Definition at line 117 of file OgreFrustum.h. |
|
Pre-calced view matrix.
Definition at line 88 of file OgreFrustum.h. |
|
Stored number of visible faces in the last render.
Definition at line 103 of file OgreCamera.h. |
|
Is this object visible?
Definition at line 51 of file OgreMovableObject.h. |
|
Viewing window.
Definition at line 123 of file OgreCamera.h. |
|
Windowed viewport clip planes.
Definition at line 127 of file OgreCamera.h. |
|
Is viewing window used.
Definition at line 125 of file OgreCamera.h. |
|
Viewing window.
Definition at line 123 of file OgreCamera.h. |
|
Cached world AABB of this object.
Reimplemented in Ogre::ParticleSystem. Definition at line 61 of file OgreMovableObject.h. |
|
Definition at line 63 of file OgreMovableObject.h. |
|
World space AABB of this object's dark cap.
Definition at line 65 of file OgreMovableObject.h. |
|
Definition at line 120 of file OgreFrustum.h. |
|
Viewing window.
Definition at line 123 of file OgreCamera.h. |
|
Viewing window.
Definition at line 123 of file OgreCamera.h. |
|
Whether to yaw around a fixed axis.
Definition at line 95 of file OgreCamera.h. |
|
Fixed axis to yaw around.
Definition at line 97 of file OgreCamera.h. |
Copyright © 2000-2005 by The OGRE Team
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Feb 12 13:00:15 2006