OGRE
1.11.6
Object-Oriented Graphics Rendering Engine
|
A frustum represents a pyramid, capped at the near and far end which is used to represent either a visible area or a projection area. More...
#include <OgreFrustum.h>
Public Types | |
typedef SharedPtr< RenderSystemData > | RenderSystemDataPtr |
typedef std::vector< ShadowRenderable * > | ShadowRenderableList |
typedef VectorIterator< ShadowRenderableList > | ShadowRenderableListIterator |
Public Member Functions | |
Frustum (const String &name=BLANKSTRING) | |
Named constructor. More... | |
virtual | ~Frustum () |
MovableObjectFactory * | _getCreator (void) const |
Get the creator of this object, if any (internal use only) More... | |
LightList * | _getLightList () |
Returns a pointer to the current list of lights for this object. More... | |
SceneManager * | _getManager (void) const |
Get the manager of this object, if any (internal use only) More... | |
virtual const Affine3 & | _getParentNodeFullTransform (void) const |
Return the full transformation of the parent sceneNode or the attachingPoint node. More... | |
virtual void | _notifyAttached (Node *parent, bool isTagPoint=false) |
Internal method called to notify the object that it has been attached to a node. More... | |
virtual void | _notifyCreator (MovableObjectFactory *fact) |
Notify the object of it's creator (internal use only) More... | |
void | _notifyCurrentCamera (Camera *cam) |
Overridden from MovableObject. More... | |
virtual void | _notifyManager (SceneManager *man) |
Notify the object of it's manager (internal use only) More... | |
virtual void | _notifyMoved (void) |
Internal method called to notify the object that it has been moved. More... | |
virtual void | _releaseManualHardwareResources () |
Notifies the movable object that hardware resources were lost. More... | |
virtual void | _restoreManualHardwareResources () |
Notifies the movable object that hardware resources should be restored. More... | |
virtual void | _updateCustomGpuParameter (const GpuProgramParameters::AutoConstantEntry &constantEntry, GpuProgramParameters *params) const |
Update a custom GpuProgramParameters constant which is derived from information only this Renderable knows. More... | |
void | _updateRenderQueue (RenderQueue *queue) |
Overridden from MovableObject. More... | |
void | addQueryFlags (uint32 flags) |
As setQueryFlags, except the flags passed as parameters are appended to the existing flags on this object. More... | |
void | addVisibilityFlags (uint32 flags) |
As setVisibilityFlags, except the flags passed as parameters are appended to the existing flags on this object. More... | |
void | calcViewMatrixRelative (const Vector3 &relPos, Matrix4 &matToUpdate) const |
Calculate a view matrix for this frustum, relative to a potentially dynamic point. More... | |
virtual AnimableValuePtr | createAnimableValue (const String &valueName) |
Create a reference-counted AnimableValuePtr for the named value. More... | |
void | detachFromParent (void) |
Detaches an object from a parent SceneNode or TagPoint, if attached. More... | |
void | disableCustomNearClipPlane (void) |
Disables any custom near clip plane. More... | |
void | disableReflection (void) |
Disables reflection modification previously turned on with enableReflection. More... | |
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. More... | |
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. More... | |
void | enableReflection (const Plane &p) |
Modifies this frustum so it always renders from the reflection of itself through the plane specified. More... | |
void | enableReflection (const MovablePlane *p) |
Modifies this frustum so it always renders from the reflection of itself through the plane specified. More... | |
const StringVector & | getAnimableValueNames (void) const |
Gets a list of animable value names for this object. More... | |
Real | getAspectRatio (void) const |
Retrieves the current aspect ratio. More... | |
const AxisAlignedBox & | getBoundingBox (void) const |
Overridden from MovableObject. More... | |
Real | getBoundingRadius (void) const |
Overridden from MovableObject. More... | |
bool | getCastShadows (void) const |
Returns whether shadow casting is enabled for this object. More... | |
virtual bool | getCastsShadows (void) const |
Method which reports whether this renderable would normally cast a shadow. More... | |
const Vector4 & | getCustomParameter (size_t index) const |
Gets the custom value associated with this Renderable at the given index. More... | |
const AxisAlignedBox & | getDarkCapBounds (const Light &light, Real dirLightExtrusionDist) const |
Overridden member from ShadowCaster. More... | |
EdgeData * | getEdgeList (void) |
Returns details of the edges which might be used to determine a silhouette. More... | |
Real | getFarClipDistance (void) const |
Retrieves the distance from the frustum to the far clipping plane. More... | |
Real | getFocalLength () const |
Returns focal length of frustum. More... | |
const Radian & | getFOVy (void) const |
Retrieves the frustums Y-dimension Field Of View (FOV). More... | |
RealRect | getFrustumExtents () const |
Get the extents of the frustum in view space. More... | |
void | getFrustumExtents (Real &outleft, Real &outright, Real &outtop, Real &outbottom) const |
const Vector2 & | getFrustumOffset () const |
Retrieves the frustum offsets. More... | |
virtual const Plane & | getFrustumPlane (unsigned short plane) const |
Retrieves a specified plane of the frustum (world space). More... | |
virtual const Plane * | getFrustumPlanes (void) const |
Retrieves the clipping planes of the frustum (world space). More... | |
const AxisAlignedBox & | getLightCapBounds (void) const |
Overridden member from ShadowCaster. More... | |
uint32 | getLightMask () const |
Get a bitwise mask which will filter the lights affecting this object. More... | |
const LightList & | getLights (void) const |
Overridden from Renderable. More... | |
Listener * | getListener (void) const |
Gets the current listener for this object. More... | |
const MaterialPtr & | getMaterial (void) const |
Overridden from Renderable. More... | |
const String & | getMovableType (void) const |
Overridden from MovableObject. More... | |
const String & | getName (void) const |
Returns the name of this object. More... | |
Real | getNearClipDistance (void) const |
Sets the position of the near clipping plane. More... | |
virtual unsigned short | getNumWorldTransforms (void) const |
Returns the number of world transform matrices this renderable requires. More... | |
virtual const Quaternion & | getOrientationForViewUpdate (void) const |
Get the derived orientation of this frustum. More... | |
OrientationMode | getOrientationMode () const |
Get the orientation mode of the frustum. More... | |
Real | getOrthoWindowHeight () const |
Gets the orthographic window height, for use with orthographic rendering only. More... | |
Real | getOrthoWindowWidth () const |
Gets the orthographic window width, for use with orthographic rendering only. More... | |
Node * | getParentNode (void) const |
Returns the node to which this object is attached. More... | |
SceneNode * | getParentSceneNode (void) const |
Returns the scene node to which this object is attached. More... | |
PlaneBoundedVolume | getPlaneBoundedVolume () |
Gets a world-space list of planes enclosing the frustum. More... | |
Real | getPointExtrusionDistance (const Light *l) const |
Get the distance to extrude for a point/spot light. More... | |
bool | getPolygonModeOverrideable (void) const |
Gets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting. More... | |
virtual const Vector3 & | getPositionForViewUpdate (void) const |
Get the derived position of this frustum. More... | |
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]. More... | |
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). More... | |
const Matrix4 & | getProjectionMatrixWithRSDepth (void) const |
Gets the depth-adjusted projection matrix for the current rendersystem, but one which still conforms to right-hand rules. More... | |
ProjectionType | getProjectionType (void) const |
Retrieves info on the type of projection used (orthographic or perspective). More... | |
uint32 | getQueryFlags (void) const |
Returns the query flags relevant for this object. More... | |
bool | getReceivesShadows () |
Returns whether the Material of any Renderable that this MovableObject will add to the render queue will receive shadows. More... | |
const Affine3 & | getReflectionMatrix (void) const |
Returns the reflection matrix of the frustum if appropriate. More... | |
const Plane & | getReflectionPlane (void) const |
Returns the reflection plane of the frustum if appropriate. More... | |
Real | getRenderingDistance (void) const |
Gets the distance at which batches are no longer rendered. More... | |
Real | getRenderingMinPixelSize () const |
Returns the minimum pixel size an object needs to be in both screen axes in order to be rendered. More... | |
void | getRenderOperation (RenderOperation &op) |
Overridden from Renderable. More... | |
uint8 | getRenderQueueGroup (void) const |
Gets the queue group for this entity. More... | |
const RenderSystemDataPtr & | getRenderSystemData () const |
Gets RenderSystem private data. More... | |
ShadowRenderableListIterator | getShadowVolumeRenderableIterator (ShadowTechnique shadowTechnique, const Light *light, HardwareIndexBufferSharedPtr *indexBuffer, size_t *indexBufferUsedSize, bool extrudeVertices, Real extrusionDist, unsigned long flags=0) |
Define a default implementation of method from ShadowCaster which implements no shadows. More... | |
Real | getSquaredViewDepth (const Camera *cam) const |
Overridden from Renderable. More... | |
virtual Technique * | getTechnique (void) const |
Retrieves a pointer to the Material Technique this renderable object uses. More... | |
uint32 | getTypeFlags (void) const |
Overridden from MovableObject::getTypeFlags. More... | |
bool | getUseIdentityProjection (void) const |
Returns whether or not to use an 'identity' projection. More... | |
bool | getUseIdentityView (void) const |
Returns whether or not to use an 'identity' view. More... | |
const Any & | getUserAny (void) const |
const Any & | getUserAny (void) const |
UserObjectBindings & | getUserObjectBindings () |
Return an instance of user objects binding associated with this class. More... | |
UserObjectBindings & | getUserObjectBindings () |
Return an instance of user objects binding associated with this class. More... | |
const UserObjectBindings & | getUserObjectBindings () const |
Return an instance of user objects binding associated with this class. More... | |
const UserObjectBindings & | getUserObjectBindings () const |
Return an instance of user objects binding associated with this class. More... | |
const Affine3 & | getViewMatrix (void) const |
Gets the view matrix for this frustum. More... | |
uint32 | getVisibilityFlags (void) const |
Returns the visibility flags relevant for this object. More... | |
bool | getVisible (void) const |
Gets this object whether to be visible or not, if it has a renderable component. More... | |
virtual const AxisAlignedBox & | getWorldBoundingBox (bool derive=false) const |
Retrieves the axis-aligned bounding box for this object in world coordinates. More... | |
virtual const Sphere & | getWorldBoundingSphere (bool derive=false) const |
Retrieves the worldspace bounding sphere for this object. More... | |
virtual const Vector3 * | getWorldSpaceCorners (void) const |
Gets the world space corners of the frustum. More... | |
void | getWorldTransforms (Matrix4 *xform) const |
Overridden from Renderable. More... | |
bool | hasCustomParameter (size_t index) const |
Checks whether a custom value is associated with this Renderable at the given index. More... | |
bool | hasEdgeList (void) |
Returns whether the object has a valid edge list. More... | |
bool | isAttached (void) const |
Returns true if this object is attached to a SceneNode or TagPoint. More... | |
bool | isCustomNearClipPlaneEnabled (void) const |
Is a custom near clip plane in use? More... | |
bool | isCustomProjectionMatrixEnabled (void) const |
Returns whether a custom projection matrix is in use. More... | |
bool | isCustomViewMatrixEnabled (void) const |
Returns whether a custom view matrix is in use. More... | |
bool | isDebugDisplayEnabled (void) const |
Gets whether debug display of this object is enabled. More... | |
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. More... | |
bool | isParentTagPoint () const |
Gets whether the parent node is a TagPoint (or a SceneNode) More... | |
bool | isReflected (void) const |
Returns whether this frustum is being reflected. More... | |
virtual bool | isVisible (void) const |
Returns whether or not this object is supposed to be visible or not. More... | |
virtual bool | isVisible (const AxisAlignedBox &bound, FrustumPlane *culledBy=0) const |
Tests whether the given container is visible in the Frustum. More... | |
virtual bool | isVisible (const Sphere &bound, FrustumPlane *culledBy=0) const |
Tests whether the given container is visible in the Frustum. More... | |
virtual bool | isVisible (const Vector3 &vert, FrustumPlane *culledBy=0) const |
Tests whether the given vertex is visible in the Frustum. More... | |
virtual void | postRender (SceneManager *sm, RenderSystem *rsys) |
Called immediately after the Renderable has been rendered. More... | |
virtual bool | preRender (SceneManager *sm, RenderSystem *rsys) |
Called just prior to the Renderable being rendered. More... | |
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. More... | |
const LightList & | queryLights (void) const |
Gets a list of lights, ordered relative to how close they are to this movable object. More... | |
void | removeCustomParameter (size_t index) |
Removes a custom value which is associated with this Renderable at the given index. More... | |
void | removeQueryFlags (uint32 flags) |
As setQueryFlags, except the flags passed as parameters are removed from the existing flags on this object. More... | |
void | removeVisibilityFlags (uint32 flags) |
As setVisibilityFlags, except the flags passed as parameters are removed from the existing flags on this object. More... | |
void | resetFrustumExtents () |
Reset the frustum extents to be automatically derived from other params. More... | |
void | setAspectRatio (Real ratio) |
Sets the aspect ratio for the frustum viewport. More... | |
void | setCastShadows (bool enabled) |
Sets whether or not this object will cast shadows. More... | |
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. More... | |
void | setCustomProjectionMatrix (bool enable, const Matrix4 &projectionMatrix=Matrix4::IDENTITY) |
Set whether to use a custom projection matrix on this frustum. More... | |
void | setCustomViewMatrix (bool enable, const Affine3 &viewMatrix=Affine3::IDENTITY) |
Set whether to use a custom view matrix on this frustum. More... | |
void | setDebugDisplayEnabled (bool enabled) |
Sets whether or not the debug display of this object is enabled. More... | |
void | setFarClipDistance (Real farDist) |
Sets the distance to the far clipping plane. More... | |
void | setFocalLength (Real focalLength=1.0) |
Sets frustum focal length (used in stereo rendering). More... | |
void | setFOVy (const Radian &fovy) |
Sets the Y-dimension Field Of View (FOV) of the frustum. More... | |
void | setFrustumExtents (Real left, Real right, Real top, Real bottom) |
Manually set the extents of the frustum. More... | |
void | setFrustumOffset (const Vector2 &offset) |
Sets frustum offsets, used in stereo rendering. More... | |
void | setFrustumOffset (Real horizontal=0.0, Real vertical=0.0) |
Sets frustum offsets, used in stereo rendering. More... | |
void | setLightMask (uint32 lightMask) |
Set a bitwise mask which will filter the lights affecting this object. More... | |
void | setListener (Listener *listener) |
Sets a listener for this object. More... | |
void | setMaterial (const MaterialPtr &mat) |
material to use for debug display More... | |
void | setNearClipDistance (Real nearDist) |
Sets the position of the near clipping plane. More... | |
void | setOrientationMode (OrientationMode orientationMode) |
Set the orientation mode of the frustum. More... | |
void | setOrthoWindow (Real w, Real h) |
Sets the orthographic window settings, for use with orthographic rendering only. More... | |
void | setOrthoWindowHeight (Real h) |
Sets the orthographic window height, for use with orthographic rendering only. More... | |
void | setOrthoWindowWidth (Real w) |
Sets the orthographic window width, for use with orthographic rendering only. More... | |
void | setPolygonModeOverrideable (bool override) |
Sets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting. More... | |
virtual void | setProjectionType (ProjectionType pt) |
Sets the type of projection to use (orthographic or perspective). More... | |
void | setQueryFlags (uint32 flags) |
Sets the query flags for this object. More... | |
void | setRenderingDistance (Real dist) |
Sets the distance at which the object is no longer rendered. More... | |
void | setRenderingMinPixelSize (Real pixelSize) |
Sets the minimum pixel size an object needs to be in both screen axes in order to be rendered. More... | |
virtual void | setRenderQueueGroup (uint8 queueID) |
Sets the render queue group this entity will be rendered through. More... | |
virtual void | setRenderQueueGroupAndPriority (uint8 queueID, ushort priority) |
Sets the render queue group and group priority this entity will be rendered through. More... | |
void | setRenderSystemData (RenderSystemDataPtr val) const |
Sets RenderSystem private data. More... | |
void | setUseIdentityProjection (bool useIdentityProjection) |
Sets whether or not to use an 'identity' projection. More... | |
void | setUseIdentityView (bool useIdentityView) |
Sets whether or not to use an 'identity' view. More... | |
void | setUserAny (const Any &anything) |
void | setUserAny (const Any &anything) |
void | setVisibilityFlags (uint32 flags) |
Sets the visibility flags for this object. More... | |
void | setVisible (bool visible) |
Tells this object whether to be visible or not, if it has a renderable component. More... | |
void | visitRenderables (Renderable::Visitor *visitor, bool debugRenderables=false) |
Method to allow a caller to abstractly iterate over the Renderable instances that this MovableObject will add to the render queue when asked, if any. More... | |
Static Public Member Functions | |
static void | clearShadowRenderableList (ShadowRenderableList &shadowRenderables) |
Common implementation of releasing shadow renderables. More... | |
static void | extrudeVertices (const HardwareVertexBufferSharedPtr &vertexBuffer, size_t originalVertexCount, const Vector4 &lightPos, Real extrudeDist) |
Utility method for extruding vertices based on a light. More... | |
static uint32 | getDefaultQueryFlags () |
Get the default query flags for all future MovableObject instances. More... | |
static uint32 | getDefaultVisibilityFlags () |
Get the default visibility flags for all future MovableObject instances. More... | |
static void | setDefaultQueryFlags (uint32 flags) |
Set the default query flags for all future MovableObject instances. More... | |
static void | setDefaultVisibilityFlags (uint32 flags) |
Set the default visibility flags for all future MovableObject instances. More... | |
Static Public Attributes | |
static const Real | INFINITE_FAR_PLANE_ADJUST |
Small constant used to reduce far plane projection to avoid inaccuracies. More... | |
A frustum represents a pyramid, capped at the near and far end which is used to represent either a visible area or a projection area.
Can be used for a number of applications.
|
inherited |
|
inherited |
|
inherited |
Ogre::Frustum::Frustum | ( | const String & | name = BLANKSTRING | ) |
Named constructor.
|
virtual |
void Ogre::Frustum::setFOVy | ( | const Radian & | fovy | ) |
Sets the Y-dimension Field Of View (FOV) of the frustum.
const Radian& Ogre::Frustum::getFOVy | ( | void | ) | const |
Retrieves the frustums Y-dimension Field Of View (FOV).
void Ogre::Frustum::setNearClipDistance | ( | Real | nearDist | ) |
Sets the position of the near clipping plane.
nearDist | The distance to the near clipping plane from the frustum in world coordinates. |
Real Ogre::Frustum::getNearClipDistance | ( | void | ) | const |
Sets the position of the near clipping plane.
void Ogre::Frustum::setFarClipDistance | ( | Real | farDist | ) |
Sets the distance to the far clipping plane.
farDist | 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. |
Real Ogre::Frustum::getFarClipDistance | ( | void | ) | const |
Retrieves the distance from the frustum to the far clipping plane.
void Ogre::Frustum::setAspectRatio | ( | Real | ratio | ) |
Sets the aspect ratio for the frustum viewport.
Real Ogre::Frustum::getAspectRatio | ( | void | ) | const |
Retrieves the current aspect ratio.
void Ogre::Frustum::setFrustumOffset | ( | const Vector2 & | offset | ) |
Sets frustum offsets, used in stereo rendering.
offset | The horizontal and vertical plane offsets. |
Sets frustum offsets, used in stereo rendering.
horizontal | The horizontal plane offset. |
vertical | The vertical plane offset. |
const Vector2& Ogre::Frustum::getFrustumOffset | ( | ) | const |
Retrieves the frustum offsets.
void Ogre::Frustum::setFocalLength | ( | Real | focalLength = 1.0 | ) |
Sets frustum focal length (used in stereo rendering).
focalLength | The distance to the focal plane from the frustum in world coordinates. |
Real Ogre::Frustum::getFocalLength | ( | ) | const |
Returns focal length of frustum.
Manually set the extents of the frustum.
left,right,top,bottom | The position where the side clip planes intersect the near clip plane, in eye space |
void Ogre::Frustum::resetFrustumExtents | ( | ) |
Reset the frustum extents to be automatically derived from other params.
RealRect Ogre::Frustum::getFrustumExtents | ( | ) | const |
Get the extents of the frustum in view space.
void Ogre::Frustum::getFrustumExtents | ( | Real & | outleft, |
Real & | outright, | ||
Real & | outtop, | ||
Real & | outbottom | ||
) | const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
const Matrix4& Ogre::Frustum::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).
const Matrix4& Ogre::Frustum::getProjectionMatrixWithRSDepth | ( | void | ) | const |
Gets the depth-adjusted projection matrix for the current rendersystem, but one which still conforms to right-hand rules.
const Matrix4& Ogre::Frustum::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].
const Affine3& Ogre::Frustum::getViewMatrix | ( | void | ) | const |
Gets the view matrix for this frustum.
Mainly for use by OGRE internally.
Calculate a view matrix for this frustum, relative to a potentially dynamic point.
Mainly for use by OGRE internally when using camera-relative rendering for frustums that are not the centre (e.g. texture projection)
void Ogre::Frustum::setCustomViewMatrix | ( | bool | enable, |
const Affine3 & | viewMatrix = Affine3::IDENTITY |
||
) |
Set whether to use a custom view matrix on this frustum.
enable | If true , the custom view matrix passed as the second parameter will be used in preference to an auto calculated one. If false, the frustum will revert to auto calculating the view matrix. |
viewMatrix | The custom view matrix to use |
|
inline |
Returns whether a custom view matrix is in use.
References Ogre::Matrix4::IDENTITY.
void Ogre::Frustum::setCustomProjectionMatrix | ( | bool | enable, |
const Matrix4 & | projectionMatrix = Matrix4::IDENTITY |
||
) |
Set whether to use a custom projection matrix on this frustum.
enable | If true , the custom projection matrix passed as the second parameter will be used in preference to an auto calculated one. If false , the frustum will revert to auto calculating the projection matrix. |
projectionMatrix | The custom view matrix to use. |
|
inline |
Returns whether a custom projection matrix is in use.
References Ogre::MovableObject::isVisible().
|
virtual |
Retrieves the clipping planes of the frustum (world space).
|
virtual |
Retrieves a specified plane of the frustum (world space).
Reimplemented in Ogre::Camera.
|
virtual |
Tests whether the given container is visible in the Frustum.
bound | Bounding box to be checked (world space). |
culledBy | Optional pointer to an int which will be filled by the plane number which culled the box if the result was false ; |
true
is returned. false
is returned. Reimplemented in Ogre::Camera, and Ogre::PCZCamera.
|
virtual |
Tests whether the given container is visible in the Frustum.
bound | Bounding sphere to be checked (world space). |
culledBy | Optional pointer to an int which will be filled by the plane number which culled the box if the result was false ; |
true
is returned. false
is returned. Reimplemented in Ogre::Camera.
|
virtual |
Tests whether the given vertex is visible in the Frustum.
vert | Vertex to be checked (world space). |
culledBy | Optional pointer to an int which will be filled by the plane number which culled the box if the result was false ; |
true
is returned. false
is returned. Reimplemented in Ogre::Camera.
|
virtual |
Overridden from MovableObject::getTypeFlags.
Reimplemented from Ogre::MovableObject.
|
virtual |
|
virtual |
Overridden from MovableObject.
Implements Ogre::MovableObject.
|
virtual |
Overridden from MovableObject.
Implements Ogre::MovableObject.
|
virtual |
Overridden from MovableObject.
Implements Ogre::MovableObject.
|
virtual |
Overridden from MovableObject.
Reimplemented from Ogre::MovableObject.
void Ogre::Frustum::setMaterial | ( | const MaterialPtr & | mat | ) |
material to use for debug display
|
virtual |
Overridden from Renderable.
Implements Ogre::Renderable.
|
virtual |
Overridden from Renderable.
Implements Ogre::Renderable.
|
virtual |
Overridden from Renderable.
Implements Ogre::Renderable.
Overridden from Renderable.
Implements Ogre::Renderable.
|
virtual |
Overridden from Renderable.
Implements Ogre::Renderable.
|
virtual |
Gets the world space corners of the frustum.
Reimplemented in Ogre::Camera.
|
virtual |
Sets the type of projection to use (orthographic or perspective).
Default is perspective.
Reimplemented in Ogre::PCZCamera.
ProjectionType Ogre::Frustum::getProjectionType | ( | void | ) | const |
Retrieves info on the type of projection used (orthographic or perspective).
Sets the orthographic window settings, for use with orthographic rendering only.
w | The width of the view window in world units. |
h | The height of the view window in world units. |
void Ogre::Frustum::setOrthoWindowHeight | ( | Real | h | ) |
Sets the orthographic window height, for use with orthographic rendering only.
h | The height of the view window in world units. |
void Ogre::Frustum::setOrthoWindowWidth | ( | Real | w | ) |
Sets the orthographic window width, for use with orthographic rendering only.
w | The width of the view window in world units. |
Real Ogre::Frustum::getOrthoWindowHeight | ( | ) | const |
Gets the orthographic window height, for use with orthographic rendering only.
Real Ogre::Frustum::getOrthoWindowWidth | ( | ) | const |
Gets the orthographic window width, for use with orthographic rendering only.
void Ogre::Frustum::enableReflection | ( | const Plane & | p | ) |
Modifies this frustum so it always renders from the reflection of itself through the plane specified.
void Ogre::Frustum::enableReflection | ( | const MovablePlane * | p | ) |
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.
void Ogre::Frustum::disableReflection | ( | void | ) |
Disables reflection modification previously turned on with enableReflection.
|
inline |
Returns whether this frustum is being reflected.
|
inline |
Returns the reflection matrix of the frustum if appropriate.
|
inline |
Returns the reflection plane of the frustum if appropriate.
|
virtual |
Project a sphere onto the near plane and get the bounding rectangle.
sphere | The world-space sphere to project. |
left | Pointers to destination values, these will be completed with the normalised device coordinates (in the range {-1,1}). |
top | Pointers to destination values, these will be completed with the normalised device coordinates (in the range {-1,1}). |
right | Pointers to destination values, these will be completed with the normalised device coordinates (in the range {-1,1}). |
bottom | Pointers to destination values, these will be completed with the normalised device coordinates (in the range {-1,1}). |
true
if the sphere was projected to a subset of the near plane, false
if the entire near plane was contained. Reimplemented in Ogre::Camera.
void Ogre::Frustum::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.
plane | The plane to link to to perform the clipping. This plane must continue to exist while the camera is linked to it; do not destroy it before the frustum. |
void Ogre::Frustum::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.
plane | The plane to link to to perform the clipping. This plane must continue to exist while the camera is linked to it; do not destroy it before the frustum. |
void Ogre::Frustum::disableCustomNearClipPlane | ( | void | ) |
Disables any custom near clip plane.
|
inline |
Is a custom near clip plane in use?
|
virtual |
Method to allow a caller to abstractly iterate over the Renderable instances that this MovableObject will add to the render queue when asked, if any.
visitor | Pointer to a class implementing the Renderable::Visitor interface which will be called back for each Renderable which will be queued. Bear in mind that the state of the Renderable instances may not be finalised depending on when you call this. |
debugRenderables | If false, only regular renderables will be visited (those for normal display). If true, debug renderables will be included too. |
Implements Ogre::MovableObject.
|
virtual |
Get the derived position of this frustum.
Reimplemented in Ogre::Camera.
|
virtual |
Get the derived orientation of this frustum.
Reimplemented in Ogre::Camera.
PlaneBoundedVolume Ogre::Frustum::getPlaneBoundedVolume | ( | ) |
Gets a world-space list of planes enclosing the frustum.
void Ogre::Frustum::setOrientationMode | ( | OrientationMode | orientationMode | ) |
Set the orientation mode of the frustum.
Default is OR_DEGREE_0
OrientationMode Ogre::Frustum::getOrientationMode | ( | ) | const |
Get the orientation mode of the frustum.
|
inlinevirtualinherited |
Notify the object of it's creator (internal use only)
|
inlineinherited |
Get the creator of this object, if any (internal use only)
|
inlinevirtualinherited |
Notify the object of it's manager (internal use only)
|
inlineinherited |
Get the manager of this object, if any (internal use only)
|
inlinevirtualinherited |
Notifies the movable object that hardware resources were lost.
Reimplemented in Ogre::BillboardSet, Ogre::StaticGeometry::Region, Ogre::Entity, and Ogre::ManualObject.
|
inlinevirtualinherited |
Notifies the movable object that hardware resources should be restored.
Reimplemented in Ogre::StaticGeometry::Region, and Ogre::Entity.
|
inlineinherited |
Returns the name of this object.
|
inlineinherited |
Returns the node to which this object is attached.
|
inherited |
Returns the scene node to which this object is attached.
|
inlineinherited |
|
virtualinherited |
Internal method called to notify the object that it has been attached to a node.
Reimplemented in Ogre::Entity, Ogre::ParticleSystem, Ogre::Light, Ogre::PortalBase, and Ogre::InstancedEntity.
Referenced by Ogre::PortalBase::_notifyAttached().
|
inlineinherited |
|
inherited |
|
virtualinherited |
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.
Reimplemented in Ogre::InstancedEntity.
|
virtualinherited |
Internal method called to notify the object that it has been moved.
Reimplemented in Ogre::Light, Ogre::PortalBase, Ogre::InstancedEntity, and Ogre::PCZLight.
|
virtualinherited |
Retrieves the axis-aligned bounding box for this object in world coordinates.
Implements Ogre::ShadowCaster.
Reimplemented in Ogre::Entity, and Ogre::PortalBase.
|
virtualinherited |
Retrieves the worldspace bounding sphere for this object.
Reimplemented in Ogre::Entity, and Ogre::PortalBase.
|
inlineinherited |
Tells this object whether to be visible or not, if it has a renderable component.
Referenced by Ogre::Light::setVisible().
|
inlineinherited |
Gets this object whether to be visible or not, if it has a renderable component.
|
virtualinherited |
Returns whether or not this object is supposed to be visible or not.
Reimplemented in Ogre::StaticGeometry::Region.
Referenced by isCustomProjectionMatrixEnabled().
|
inlineinherited |
Sets the distance at which the object is no longer rendered.
dist | Distance beyond which the object will not be rendered (the default is 0, which means objects are always rendered). |
|
inlineinherited |
Gets the distance at which batches are no longer rendered.
|
inlineinherited |
Sets the minimum pixel size an object needs to be in both screen axes in order to be rendered.
pixelSize | Number of minimum pixels (the default is 0, which means objects are always rendered). |
|
inlineinherited |
Returns the minimum pixel size an object needs to be in both screen axes in order to be rendered.
|
inlineinherited |
Sets any kind of user value on this object.
|
inlineinherited |
Retrieves the custom user value associated with this object.
|
inlineinherited |
Return an instance of user objects binding associated with this class.
You can use it to associate one or more custom objects with this class instance.
|
inlineinherited |
Return an instance of user objects binding associated with this class.
You can use it to associate one or more custom objects with this class instance.
|
virtualinherited |
Sets the render queue group this entity will be rendered through.
queueID | Enumerated value of the queue group to use. See the enum RenderQueueGroupID for what kind of values can be used here. |
Reimplemented in Ogre::ParticleSystem, and Ogre::Entity.
|
virtualinherited |
Sets the render queue group and group priority this entity will be rendered through.
queueID | Enumerated value of the queue group to use. See the enum RenderQueueGroupID for what kind of values can be used here. |
priority | The priority within a group to use. |
Reimplemented in Ogre::ParticleSystem, and Ogre::Entity.
|
inlineinherited |
Gets the queue group for this entity.
|
virtualinherited |
Return the full transformation of the parent sceneNode or the attachingPoint node.
Reimplemented in Ogre::InstancedEntity.
|
inlineinherited |
Sets the query flags for this object.
|
inlineinherited |
As setQueryFlags, except the flags passed as parameters are appended to the existing flags on this object.
|
inlineinherited |
As setQueryFlags, except the flags passed as parameters are removed from the existing flags on this object.
|
inlineinherited |
Returns the query flags relevant for this object.
|
inlinestaticinherited |
Set the default query flags for all future MovableObject instances.
|
inlinestaticinherited |
Get the default query flags for all future MovableObject instances.
|
inlineinherited |
Sets the visibility flags for this object.
|
inlineinherited |
As setVisibilityFlags, except the flags passed as parameters are appended to the existing flags on this object.
|
inlineinherited |
As setVisibilityFlags, except the flags passed as parameters are removed from the existing flags on this object.
|
inlineinherited |
Returns the visibility flags relevant for this object.
|
inlinestaticinherited |
Set the default visibility flags for all future MovableObject instances.
|
inlinestaticinherited |
Get the default visibility flags for all future MovableObject instances.
|
inlineinherited |
Sets a listener for this object.
|
inlineinherited |
Gets the current listener for this object.
|
inherited |
Gets a list of lights, ordered relative to how close they are to this movable object.
|
inlineinherited |
Get a bitwise mask which will filter the lights affecting this object.
|
inherited |
Set a bitwise mask which will filter the lights affecting this object.
|
inlineinherited |
Returns a pointer to the current list of lights for this object.
|
inlinevirtualinherited |
Returns details of the edges which might be used to determine a silhouette.
Implements Ogre::ShadowCaster.
Reimplemented in Ogre::StaticGeometry::Region.
|
inlinevirtualinherited |
Returns whether the object has a valid edge list.
Implements Ogre::ShadowCaster.
Reimplemented in Ogre::StaticGeometry::Region.
|
virtualinherited |
Define a default implementation of method from ShadowCaster which implements no shadows.
Implements Ogre::ShadowCaster.
Reimplemented in Ogre::StaticGeometry::Region.
|
virtualinherited |
Overridden member from ShadowCaster.
Implements Ogre::ShadowCaster.
|
virtualinherited |
Overridden member from ShadowCaster.
Implements Ogre::ShadowCaster.
|
inlineinherited |
Sets whether or not this object will cast shadows.
|
inlinevirtualinherited |
Returns whether shadow casting is enabled for this object.
Implements Ogre::ShadowCaster.
|
inherited |
Returns whether the Material of any Renderable that this MovableObject will add to the render queue will receive shadows.
Get the distance to extrude for a point/spot light.
Implements Ogre::ShadowCaster.
|
inlineinherited |
Sets whether or not the debug display of this object is enabled.
|
inlineinherited |
Gets whether debug display of this object is enabled.
|
staticinherited |
Common implementation of releasing shadow renderables.
|
staticinherited |
Utility method for extruding vertices based on a light.
vertexBuffer | The vertex buffer containing ONLY xyz position values, which must be originalVertexCount * 2 * 3 floats long. |
originalVertexCount | The count of the original number of vertices, i.e. the number in the mesh, not counting the doubling which has already been done (by VertexData::prepareForShadowVolume) to provide the extruded area of the buffer. |
lightPos | 4D light position in object space, when w=0.0f this represents a directional light. |
extrudeDist | The distance to extrude. |
|
inlineinherited |
Gets a list of animable value names for this object.
References Ogre::Exception::ERR_ITEM_NOT_FOUND, and OGRE_EXCEPT.
|
inlinevirtualinherited |
Create a reference-counted AnimableValuePtr for the named value.
Reimplemented in Ogre::Light.
References Ogre::Exception::ERR_ITEM_NOT_FOUND, and OGRE_EXCEPT.
|
inlinevirtualinherited |
Retrieves a pointer to the Material Technique this renderable object uses.
Reimplemented in Ogre::InstanceBatch, Ogre::StaticGeometry::GeometryBucket, and Ogre::SubEntity.
|
inlinevirtualinherited |
Called just prior to the Renderable being rendered.
Reimplemented in Ogre::BillboardChain.
|
inlinevirtualinherited |
Called immediately after the Renderable has been rendered.
|
inlinevirtualinherited |
Returns the number of world transform matrices this renderable requires.
Reimplemented in Ogre::BorderRenderable, Ogre::SubEntity, Ogre::BaseInstanceBatchVTF, Ogre::InstanceBatchHW, and Ogre::InstanceBatchShader.
|
inlineinherited |
Sets whether or not to use an 'identity' projection.
|
inlineinherited |
Returns whether or not to use an 'identity' projection.
|
inlineinherited |
Sets whether or not to use an 'identity' view.
|
inlineinherited |
Returns whether or not to use an 'identity' view.
|
inlinevirtualinherited |
Method which reports whether this renderable would normally cast a shadow.
Reimplemented in Ogre::SubEntity, and Ogre::StaticGeometry::GeometryBucket.
|
inlineinherited |
Sets a custom parameter for this Renderable, which may be used to drive calculations for this specific Renderable, like GPU program parameters.
index | The index with which to associate the value. Note that this does not have to start at 0, and can include gaps. It also has no direct correlation with a GPU program parameter index - the mapping between the two is performed by the ACT_CUSTOM entry, if that is used. |
value | The value to associate. |
|
inlineinherited |
Removes a custom value which is associated with this Renderable at the given index.
index | Index of the parameter to remove. |
|
inlineinherited |
Checks whether a custom value is associated with this Renderable at the given index.
index | Index of the parameter to check for existence. |
|
inlineinherited |
Gets the custom value associated with this Renderable at the given index.
index | Index of the parameter to retrieve. |
References Ogre::Exception::ERR_ITEM_NOT_FOUND, and OGRE_EXCEPT.
|
inlinevirtualinherited |
Update a custom GpuProgramParameters constant which is derived from information only this Renderable knows.
constantEntry | The auto constant entry referring to the parameter being updated |
params | The parameters object which this method should call to set the updated parameters. |
Reimplemented in Ogre::SubEntity.
References Ogre::GpuProgramParameters::_writeRawConstant(), Ogre::GpuProgramParameters::AutoConstantEntry::data, Ogre::GpuProgramParameters::AutoConstantEntry::elementCount, and Ogre::GpuProgramParameters::AutoConstantEntry::physicalIndex.
|
inlineinherited |
Sets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting.
override | true means that a lower camera detail will override this renderables detail level, false means it won't. |
|
inlineinherited |
Gets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting.
Referenced by Ogre::BorderRenderable::getPolygonModeOverrideable().
|
inlineinherited |
Sets any kind of user value on this object.
Referenced by Ogre::InstanceBatch::getRenderOperation().
|
inlineinherited |
Retrieves the custom user value associated with this object.
Referenced by Ogre::InstanceBatch::getRenderOperation().
|
inlineinherited |
Return an instance of user objects binding associated with this class.
You can use it to associate one or more custom objects with this class instance.
|
inlineinherited |
Return an instance of user objects binding associated with this class.
You can use it to associate one or more custom objects with this class instance.
|
inlineinherited |
Gets RenderSystem private data.
|
inlineinherited |
Sets RenderSystem private data.
|
static |
Small constant used to reduce far plane projection to avoid inaccuracies.