#include <OgreFrustum.h>
Inheritance diagram for Ogre::Frustum:
Public Types | |
typedef std::vector< ShadowRenderable * > | ShadowRenderableList |
typedef VectorIterator< ShadowRenderableList > | ShadowRenderableListIterator |
Public Member Functions | |
Frustum () | |
virtual | ~Frustum () |
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 void | setFrustumOffset (const Vector2 &offset) |
Sets frustum offsets, used in stereo rendering. | |
virtual void | setFrustumOffset (Real horizontal=0.0, Real vertical=0.0) |
Sets frustum offsets, used in stereo rendering. | |
virtual const Vector2 & | getFrustumOffset () const |
Retreives the frustum offsets. | |
virtual void | setFocalLength (Real focalLength=1.0) |
Sets frustum focal length (used in stereo rendering). | |
virtual Real | getFocalLength () const |
Returns focal length of frustum. | |
virtual const Matrix4 & | getProjectionMatrixRS (void) const |
Gets the projection matrix for this frustum adjusted for the current rendersystem specifics (may be right or left-handed, depth range may vary). | |
virtual const Matrix4 & | getProjectionMatrixWithRSDepth (void) const |
Gets the depth-adjusted projection matrix for the current rendersystem, but one which still conforms to right-hand rules. | |
virtual const Matrix4 & | getProjectionMatrix (void) const |
Gets the normal projection matrix for this frustum, ie the projection matrix which conforms to standard right-handed rules and uses depth range [-1,+1]. | |
virtual const Matrix4 & | getViewMatrix (void) const |
Gets the view matrix for this frustum. | |
virtual void | setCustomViewMatrix (bool enable, const Matrix4 &viewMatrix=Matrix4::IDENTITY) |
Set whether to use a custom view matrix on this frustum. | |
virtual bool | isCustomViewMatrixEnabled (void) const |
Returns whether a custom view matrix is in use. | |
virtual void | setCustomProjectionMatrix (bool enable, const Matrix4 &projectionMatrix=Matrix4::IDENTITY) |
Set whether to use a custom projection matrix on this frustum. | |
virtual bool | isCustomProjectionMatrixEnabled (void) const |
Returns whether a custom projection matrix is in use. | |
virtual const Plane * | getFrustumPlanes (void) const |
Retrieves the clipping planes of the 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. | |
const AxisAlignedBox & | getBoundingBox (void) const |
Overridden from MovableObject. | |
Real | getBoundingRadius (void) const |
Overridden from MovableObject. | |
void | _updateRenderQueue (RenderQueue *queue) |
Overridden from MovableObject. | |
const String & | getMovableType (void) const |
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 void | _notifyCreator (MovableObjectFactory *fact) |
Notify the object of it's creator (internal use only). | |
virtual void | _notifyManager (SceneManager *man) |
Notify the object of it's manager (internal use only). | |
virtual SceneManager * | _getManager (void) const |
Get the manager of this object, if any (internal use only). | |
virtual const String & | getName (void) const |
Returns the name of this object. | |
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 bool | isVisible (void) const |
Returns whether or not this object is supposed to be visible or not. | |
virtual void | setRenderingDistance (Real dist) |
Sets the distance at which the object is no longer rendered. | |
virtual Real | getRenderingDistance (void) const |
Gets the distance at which batches are no longer rendered. | |
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 | setUserAny (const Any &anything) |
Sets any kind of user value on this object. | |
virtual const Any & | getUserAny (void) const |
Retrieves the custom user value associated with this object. | |
virtual void | setRenderQueueGroup (uint8 queueID) |
Sets the render queue group this entity will be rendered through. | |
virtual uint8 | 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 (uint32 flags) |
Sets the query flags for this object. | |
virtual void | addQueryFlags (uint32 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 uint32 | getQueryFlags (void) const |
Returns the query flags relevant for this object. | |
virtual void | setVisibilityFlags (uint32 flags) |
Sets the visiblity flags for this object. | |
virtual void | addVisibilityFlags (uint32 flags) |
As setVisibilityFlags, except the flags passed as parameters are appended to the existing flags on this object. | |
virtual void | removeVisibilityFlags (uint32 flags) |
As setVisibilityFlags, except the flags passed as parameters are removed from the existing flags on this object. | |
virtual uint32 | getVisibilityFlags (void) const |
Returns the visibility 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 uint32 | getTypeFlags (void) const |
Get the 'type flags' for this MovableObject. | |
const StringVector & | getAnimableValueNames (void) const |
Gets a list of animable value names for this object. | |
virtual AnimableValuePtr | createAnimableValue (const String &valueName) |
Create a reference-counted AnimableValuePtr for the named value. | |
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 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 | setPolygonModeOverrideable (bool override) |
Sets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting. | |
virtual bool | getPolygonModeOverrideable (void) const |
Gets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting. | |
Static Public Member Functions | |
void | setDefaultQueryFlags (uint32 flags) |
Set the default query flags for all future MovableObject instances. | |
uint32 | getDefaultQueryFlags (uint32 flags) |
Get the default query flags for all future MovableObject instances. | |
void | setDefaultVisibilityFlags (uint32 flags) |
Set the default visibility flags for all future MovableObject instances. | |
uint32 | getDefaultVisibilityFlags (uint32 flags) |
Get the default visibility flags for all future MovableObject instances. | |
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< String, StringVector > | AnimableDictionaryMap |
typedef std::map< size_t, Vector4 > | CustomParameterMap |
Protected Member Functions | |
virtual void | calcProjectionParameters (Real &left, Real &right, Real &bottom, Real &top) const |
virtual void | updateFrustum (void) const |
Update frustum if out of date. | |
virtual void | updateView (void) const |
Update view if out of date. | |
virtual void | updateFrustumImpl (void) const |
Implementation of updateFrustum (called if out of date). | |
virtual void | updateViewImpl (void) const |
Implementation of updateView (called if out of date). | |
virtual void | updateFrustumPlanes (void) const |
virtual void | updateFrustumPlanesImpl (void) const |
Implementation of updateFrustumPlanes (called if out of date). | |
virtual void | updateWorldSpaceCorners (void) const |
virtual void | updateWorldSpaceCornersImpl (void) const |
Implementation of updateWorldSpaceCorners (called if out of date). | |
virtual void | updateVertexData (void) const |
virtual bool | isViewOutOfDate (void) const |
virtual bool | isFrustumOutOfDate (void) const |
virtual void | invalidateFrustum (void) const |
Signal to update frustum information. | |
virtual void | invalidateView (void) const |
Signal to update view information. | |
virtual const Vector3 & | getPositionForViewUpdate (void) const |
Get the derived position of this frustum. | |
virtual const Quaternion & | getOrientationForViewUpdate (void) const |
Get the derived orientation of this frustum. | |
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. | |
virtual const String & | getAnimableDictionaryName (void) const |
Get the name of the animable dictionary for this class. | |
void | createAnimableDictionary (void) const |
Internal method for creating a dictionary of animable value names for the class, if it does not already exist. | |
StringVector & | getAnimableValueNames (void) |
Get an updateable reference to animable value list. | |
virtual void | initialiseAnimableDictionary (StringVector &vec) const |
Internal method for initialising dictionary; should be implemented by subclasses wanting to expose animable parameters. | |
Protected Attributes | |
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 | |
Vector2 | mFrustumOffset |
Off-axis frustum center offset - default (0.0, 0.0). | |
Real | mFocalLength |
Focal length of frustum (for stereo rendering, defaults to 1.0). | |
Plane | mFrustumPlanes [6] |
The 6 main clipping planes. | |
Quaternion | mLastParentOrientation |
Stored versions of parent orientation / position. | |
Vector3 | mLastParentPosition |
Matrix4 | mProjMatrixRS |
Pre-calced projection matrix for the specific render system. | |
Matrix4 | mProjMatrixRSDepth |
Pre-calced standard projection matrix but with render system depth range. | |
Matrix4 | mProjMatrix |
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. | |
bool | mRecalcFrustumPlanes |
Something re the frustum planes has changed. | |
bool | mRecalcWorldSpaceCorners |
Something re the world space corners has changed. | |
bool | mRecalcVertexData |
Something re the vertex data has changed. | |
bool | mCustomViewMatrix |
Are we using a custom view matrix? | |
bool | mCustomProjMatrix |
Are we using a custom projection matrix? | |
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. | |
String | mName |
Name of this object. | |
MovableObjectFactory * | mCreator |
Creator of this object (if created by a factory). | |
SceneManager * | mManager |
SceneManager holding this object (if applicable). | |
Node * | mParentNode |
node to which this object is attached | |
bool | mParentIsTagPoint |
bool | mVisible |
Is this object visible? | |
Real | mUpperDistance |
Upper distance to still render. | |
Real | mSquaredUpperDistance |
bool | mBeyondFarDistance |
Hidden because of distance? | |
Any | mUserAny |
User defined link to another object / value / whatever. | |
uint8 | mRenderQueueID |
The render queue to use when rendering this object. | |
bool | mRenderQueueIDSet |
Flags whether the RenderQueue's default should be used. | |
uint32 | mQueryFlags |
Flags determining whether this object is included / excluded from scene queries. | |
uint32 | mVisibilityFlags |
Flags determining whether this object is visible (compared to SceneManager mask). | |
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 | mPolygonModeOverrideable |
Static Protected Attributes | |
String | msMovableType |
Shared class-level name for Movable type. | |
uint32 | msDefaultQueryFlags |
Default query flags. | |
uint32 | msDefaultVisibilityFlags |
Default visibility flags. | |
AnimableDictionaryMap | msAnimableDictionary |
Static map of class name to list of animable value names. | |
const PlaneList | msDummyPlaneList |
Can be used for a number of applications.
Definition at line 61 of file OgreFrustum.h.
|
Definition at line 202 of file OgreAnimable.h. |
|
Definition at line 247 of file OgreRenderable.h. |
|
Definition at line 121 of file OgreShadowCaster.h. |
|
Definition at line 122 of file OgreShadowCaster.h. |
|
|
|
|
|
Get the manager of this object, if any (internal use only).
Definition at line 111 of file OgreMovableObject.h. |
|
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. |
|
Notify the object of it's creator (internal use only).
Definition at line 107 of file OgreMovableObject.h. |
|
Overridden from MovableObject.
Reimplemented from Ogre::MovableObject. |
|
Notify the object of it's manager (internal use only).
Definition at line 109 of file OgreMovableObject.h. |
|
Update a custom GpuProgramParameters constant which is derived from information only this Renderable knows.
Reimplemented in Ogre::SubEntity, and Ogre::TerrainRenderable. Definition at line 215 of file OgreRenderable.h. References Ogre::GpuProgramParameters::AutoConstantEntry::data, Ogre::GpuProgramParameters::AutoConstantEntry::index, and Ogre::GpuProgramParameters::setConstant(). |
|
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 268 of file OgreMovableObject.h. References Ogre::uint32. |
|
As setVisibilityFlags, except the flags passed as parameters are appended to the existing flags on this object.
Definition at line 296 of file OgreMovableObject.h. References Ogre::uint32. |
|
|
|
Internal method for creating a dictionary of animable value names for the class, if it does not already exist.
Definition at line 215 of file OgreAnimable.h. References Ogre::StringVector. |
|
Create a reference-counted AnimableValuePtr for the named value.
Reimplemented in Ogre::Light. Definition at line 281 of file OgreAnimable.h. References Ogre::AnimableValuePtr, OGRE_EXCEPT, and Ogre::String. |
|
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.
|
|
Get the name of the animable dictionary for this class.
Reimplemented in Ogre::Light. Definition at line 210 of file OgreAnimable.h. References Ogre::String. |
|
Gets a list of animable value names for this object.
Definition at line 256 of file OgreAnimable.h. References OGRE_EXCEPT, and Ogre::StringVector. |
|
Get an updateable reference to animable value list.
Definition at line 228 of file OgreAnimable.h. References OGRE_EXCEPT, and Ogre::StringVector. |
|
Retreives the current aspect ratio.
|
|
Overridden from MovableObject.
Implements Ogre::MovableObject. |
|
Overridden from MovableObject.
Implements Ogre::MovableObject. Reimplemented in Ogre::Camera. |
|
Returns whether shadow casting is enabled for this object.
Implements Ogre::ShadowCaster. Definition at line 339 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 150 of file OgreRenderable.h. |
|
Definition at line 142 of file OgreRenderable.h. References Ogre::PlaneList. |
|
Gets the custom value associated with this Renderable at the given index.
Definition at line 176 of file OgreRenderable.h. References OGRE_EXCEPT. |
|
Overridden member from ShadowCaster.
Implements Ogre::ShadowCaster. |
|
Get the default query flags for all future MovableObject instances.
Definition at line 283 of file OgreMovableObject.h. References Ogre::uint32. |
|
Get the default visibility flags for all future MovableObject instances.
Definition at line 311 of file OgreMovableObject.h. References Ogre::uint32. |
|
Define a default implementation of method from ShadowCaster which implements no shadows.
Implements Ogre::ShadowCaster. Reimplemented in Ogre::Entity, Ogre::ManualObject, and Ogre::StaticGeometry::Region. Definition at line 314 of file OgreMovableObject.h. |
|
Helper moethod for calculating extrusion distance.
|
|
Retrieves the distance from the frustum to the far clipping plane.
Reimplemented in Ogre::Camera. |
|
Returns focal length of frustum.
|
|
Retrieves the frustums Y-dimension Field Of View (FOV).
|
|
Retreives the frustum offsets.
|
|
Retrieves a specified plane of the frustum.
Reimplemented in Ogre::Camera. |
|
Retrieves the clipping planes of the frustum.
|
|
Overridden member from ShadowCaster.
Implements Ogre::ShadowCaster. |
|
Overridden from Renderable.
Implements Ogre::Renderable. |
|
Overridden from Renderable.
Implements Ogre::Renderable. |
|
Overridden from MovableObject.
Implements Ogre::MovableObject. Reimplemented in Ogre::Camera. |
|
Returns the name of this object.
Reimplemented in Ogre::Camera. Definition at line 114 of file OgreMovableObject.h. References Ogre::String. |
|
Sets the position of the near clipping plane.
Reimplemented in Ogre::Camera. |
|
Returns whether or not this Renderable wishes the hardware to normalise normals.
Reimplemented in Ogre::SubEntity. Definition at line 134 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. |
|
Get the derived orientation of this frustum.
Reimplemented in Ogre::Camera. |
|
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. |
|
Gets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting.
Reimplemented in Ogre::BorderRenderable. Definition at line 239 of file OgreRenderable.h. |
|
Get the derived position of this frustum.
Reimplemented in Ogre::Camera. |
|
Gets the normal projection matrix for this frustum, ie the projection matrix which conforms to standard right-handed rules and uses depth range [-1,+1].
|
|
Gets the projection matrix for this frustum adjusted for the current rendersystem specifics (may be right or left-handed, depth range may vary).
|
|
Gets the depth-adjusted projection matrix for the current rendersystem, but one which still conforms to right-hand rules.
|
|
Retrieves info on the type of projection used (orthographic or perspective).
|
|
Returns the query flags relevant for this object.
Definition at line 275 of file OgreMovableObject.h. References Ogre::uint32. |
|
Returns the reflection matrix of the frustum if appropriate.
Definition at line 507 of file OgreFrustum.h. |
|
Returns the reflection plane of the frustum if appropriate.
Definition at line 509 of file OgreFrustum.h. |
|
Gets the distance at which batches are no longer rendered.
Definition at line 208 of file OgreMovableObject.h. References Ogre::Real. |
|
Overridden from Renderable.
Implements Ogre::Renderable. |
|
Gets the queue group for this entity, see setRenderQueueGroup for full details.
|
|
Define a default implementation of method from ShadowCaster which implements no shadows.
Implements Ogre::ShadowCaster. Reimplemented in Ogre::Entity, Ogre::ManualObject, and Ogre::StaticGeometry::Region. |
|
Overridden from Renderable.
Implements Ogre::Renderable. |
|
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. |
|
Get the 'type flags' for this MovableObject.
Reimplemented in Ogre::BillboardSet, Ogre::Entity, Ogre::Light, Ogre::ParticleSystem, Ogre::StaticGeometry::Region, and Ogre::TerrainRenderable. |
|
Retrieves the custom user value associated with this object.
Definition at line 236 of file OgreMovableObject.h. |
|
Retrieves a pointer to a custom application object associated with this movable by an earlier call to setUserObject.
Definition at line 220 of file OgreMovableObject.h. |
|
Gets the view matrix for this frustum. Mainly for use by OGRE internally. Reimplemented in Ogre::Camera. |
|
Returns the visibility flags relevant for this object.
Definition at line 303 of file OgreMovableObject.h. References Ogre::uint32. |
|
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.
Reimplemented in Ogre::Camera. |
|
Overridden from Renderable.
Implements Ogre::Renderable. |
|
Internal method for initialising dictionary; should be implemented by subclasses wanting to expose animable parameters.
Reimplemented in Ogre::Light. Definition at line 248 of file OgreAnimable.h. References Ogre::StringVector. |
|
Signal to update frustum information.
Reimplemented in Ogre::Camera. |
|
Signal to update view information.
Reimplemented in Ogre::Camera. |
|
Returns true if this object is attached to a SceneNode or TagPoint.
|
|
Is a custom near clip plane in use?
Definition at line 574 of file OgreFrustum.h. |
|
Returns whether a custom projection matrix is in use.
Definition at line 378 of file OgreFrustum.h. |
|
Returns whether a custom view matrix is in use.
Definition at line 353 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 505 of file OgreFrustum.h. |
|
Reimplemented in Ogre::Camera. |
|
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.
Reimplemented in Ogre::Camera. |
|
Tests whether the given container is visible in the Frustum.
Reimplemented in Ogre::Camera. |
|
Tests whether the given container is visible in the Frustum.
Reimplemented in Ogre::Camera. |
|
Project a sphere onto the near plane and get the bounding rectangle.
Reimplemented in Ogre::Camera. |
|
As setQueryFlags, except the flags passed as parameters are removed from the existing flags on this object.
Definition at line 272 of file OgreMovableObject.h. |
|
As setVisibilityFlags, except the flags passed as parameters are removed from the existing flags on this object.
Definition at line 300 of file OgreMovableObject.h. References Ogre::uint32. |
|
Sets the aspect ratio for the frustum viewport.
|
|
Sets whether or not this object will cast shadows.
Definition at line 337 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 167 of file OgreRenderable.h. |
|
Set whether to use a custom projection matrix on this frustum.
|
|
Set whether to use a custom view matrix on this frustum.
|
|
Set the default query flags for all future MovableObject instances.
Definition at line 279 of file OgreMovableObject.h. References Ogre::uint32. |
|
Set the default visibility flags for all future MovableObject instances.
Definition at line 307 of file OgreMovableObject.h. References Ogre::uint32. |
|
Sets the distance to the far clipping plane.
|
|
Sets frustum focal length (used in stereo rendering).
|
|
Sets the Y-dimension Field Of View (FOV) of the frustum.
|
|
Sets frustum offsets, used in stereo rendering.
|
|
Sets frustum offsets, used in stereo rendering.
|
|
Sets the position of the near clipping plane.
|
|
Sets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting.
Definition at line 231 of file OgreRenderable.h. |
|
Sets the type of projection to use (orthographic or perspective). Default is perspective. |
|
Sets the query flags for this object.
Definition at line 264 of file OgreMovableObject.h. References Ogre::uint32. |
|
Sets the distance at which the object is no longer rendered.
Definition at line 202 of file OgreMovableObject.h. References Ogre::Real. |
|
Sets the render queue group this entity will be rendered through.
Reimplemented in Ogre::Entity, and Ogre::ParticleSystem. |
|
Sets any kind of user value on this object.
Definition at line 232 of file OgreMovableObject.h. |
|
Call this to associate your own custom user object instance with this MovableObject.
Definition at line 216 of file OgreMovableObject.h. |
|
Sets the visiblity flags for this object.
Definition at line 292 of file OgreMovableObject.h. References Ogre::uint32. |
|
Tells this object whether to be visible or not, if it has a renderable component.
Reimplemented in Ogre::Light. |
|
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.
|
|
Update frustum if out of date.
|
|
Implementation of updateFrustum (called if out of date).
|
|
|
|
Implementation of updateFrustumPlanes (called if out of date).
|
|
|
|
Update view if out of date.
|
|
Implementation of updateView (called if out of date).
|
|
|
|
Implementation of updateWorldSpaceCorners (called if out of date).
|
|
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. |
|
Small constant used to reduce far plane projection to avoid inaccuracies.
Definition at line 579 of file OgreFrustum.h. |
|
x/y viewport ratio - default 1.3333
Definition at line 74 of file OgreFrustum.h. |
|
Hidden because of distance?
Definition at line 68 of file OgreMovableObject.h. |
|
Definition at line 138 of file OgreFrustum.h. |
|
Does this object cast shadows?
Definition at line 86 of file OgreMovableObject.h. |
|
Creator of this object (if created by a factory).
Definition at line 56 of file OgreMovableObject.h. |
|
Definition at line 248 of file OgreRenderable.h. |
|
Are we using a custom projection matrix?
Definition at line 108 of file OgreFrustum.h. |
|
Are we using a custom view matrix?
Definition at line 106 of file OgreFrustum.h. |
|
Far clip distance - default 10000.
Definition at line 70 of file OgreFrustum.h. |
|
Focal length of frustum (for stereo rendering, defaults to 1.0).
Definition at line 78 of file OgreFrustum.h. |
|
y-direction field-of-view (default 45)
Definition at line 68 of file OgreFrustum.h. |
|
Off-axis frustum center offset - default (0.0, 0.0).
Definition at line 76 of file OgreFrustum.h. |
|
The 6 main clipping planes.
Definition at line 81 of file OgreFrustum.h. |
|
Record of the last world-space oblique depth projection plane info used.
Definition at line 162 of file OgreFrustum.h. |
|
Record of the last world-space reflection plane info used.
Definition at line 153 of file OgreFrustum.h. |
|
Stored versions of parent orientation / position.
Definition at line 84 of file OgreFrustum.h. |
|
Definition at line 85 of file OgreFrustum.h. |
|
Pointer to oblique projection plane (automatically updated).
Definition at line 160 of file OgreFrustum.h. |
|
Pointer to a reflection plane (automatically updated).
Definition at line 151 of file OgreFrustum.h. |
|
SceneManager holding this object (if applicable).
Definition at line 58 of file OgreMovableObject.h. |
|
Definition at line 141 of file OgreFrustum.h. |
|
Name of this object.
Reimplemented in Ogre::Camera. Definition at line 54 of file OgreMovableObject.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 156 of file OgreFrustum.h. |
|
Fixed oblique projection plane.
Definition at line 158 of file OgreFrustum.h. |
|
Definition at line 61 of file OgreMovableObject.h. |
|
node to which this object is attached
Definition at line 60 of file OgreMovableObject.h. |
|
Definition at line 249 of file OgreRenderable.h. |
|
Pre-calced standard projection matrix.
Definition at line 92 of file OgreFrustum.h. |
|
Pre-calced projection matrix for the specific render system.
Definition at line 88 of file OgreFrustum.h. |
|
Pre-calced standard projection matrix but with render system depth range.
Definition at line 90 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 76 of file OgreMovableObject.h. |
|
Something's changed in the frustrum shape?
Definition at line 96 of file OgreFrustum.h. |
|
Something re the frustum planes has changed.
Definition at line 100 of file OgreFrustum.h. |
|
Something re the vertex data has changed.
Definition at line 104 of file OgreFrustum.h. |
|
Something re the view pos has changed.
Definition at line 98 of file OgreFrustum.h. |
|
Something re the world space corners has changed.
Definition at line 102 of file OgreFrustum.h. |
|
Is this frustum to act as a reflection of itself?
Definition at line 145 of file OgreFrustum.h. |
|
Derived reflection matrix.
Definition at line 147 of file OgreFrustum.h. |
|
Fixed reflection plane.
Definition at line 149 of file OgreFrustum.h. |
|
The render queue to use when rendering this object.
Definition at line 72 of file OgreMovableObject.h. |
|
Flags whether the RenderQueue's default should be used.
Definition at line 74 of file OgreMovableObject.h. |
|
Static map of class name to list of animable value names.
Definition at line 204 of file OgreAnimable.h. |
|
Default query flags.
Definition at line 90 of file OgreMovableObject.h. |
|
Default visibility flags.
Definition at line 92 of file OgreMovableObject.h. |
|
Definition at line 246 of file OgreRenderable.h. |
|
Shared class-level name for Movable type.
Reimplemented in Ogre::Camera. Definition at line 136 of file OgreFrustum.h. |
|
Definition at line 66 of file OgreMovableObject.h. |
|
Upper distance to still render.
Definition at line 65 of file OgreMovableObject.h. |
|
User defined link to another object / value / whatever.
Definition at line 70 of file OgreMovableObject.h. |
|
Definition at line 139 of file OgreFrustum.h. |
|
Pre-calced view matrix.
Definition at line 94 of file OgreFrustum.h. |
|
Flags determining whether this object is visible (compared to SceneManager mask).
Definition at line 78 of file OgreMovableObject.h. |
|
Is this object visible?
Definition at line 63 of file OgreMovableObject.h. |
|
Cached world AABB of this object.
Reimplemented in Ogre::ParticleSystem. Definition at line 80 of file OgreMovableObject.h. |
|
Definition at line 82 of file OgreMovableObject.h. |
|
World space AABB of this object's dark cap.
Definition at line 84 of file OgreMovableObject.h. |
|
Definition at line 142 of file OgreFrustum.h. |
Copyright © 2000-2005 by The OGRE Team
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Mar 12 14:39:00 2006