|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IFrustum
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.ogre4j.IMovableObject |
|---|
IMovableObject.IListener |
| Nested classes/interfaces inherited from interface org.ogre4j.IShadowCaster |
|---|
IShadowCaster.IShadowRenderableList, IShadowCaster.IShadowRenderableListIterator |
| Nested classes/interfaces inherited from interface org.ogre4j.IAnimableObject |
|---|
IAnimableObject.IAnimableDictionaryMap |
| Nested classes/interfaces inherited from interface org.ogre4j.IRenderable |
|---|
IRenderable.ICustomParameterMap, IRenderable.IRenderSystemData, IRenderable.IVisitor |
| Method Summary | |
|---|---|
void |
_notifyCurrentCamera(ICamera cam)
Overridden from |
void |
_updateRenderQueue(IRenderQueue queue)
Overridden from |
void |
calcViewMatrixRelative(IVector3 relPos,
IMatrix4 matToUpdate)
Calculate a view matrix for this frustum, relative to a potentially dynamic point. |
void |
disableCustomNearClipPlane()
Disables any custom near clip plane. |
void |
disableReflection()
Disables reflection modification previously turned on with enableReflection |
void |
enableCustomNearClipPlane(IMovablePlane 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. |
void |
enableCustomNearClipPlane(IPlane 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. |
void |
enableReflection(IMovablePlane p)
Modifies this frustum so it always renders from the reflection of itself through the plane specified. |
void |
enableReflection(IPlane p)
Modifies this frustum so it always renders from the reflection of itself through the plane specified. |
float |
getAspectRatio()
Retreives the current aspect ratio. |
IAxisAlignedBox |
getBoundingBox()
Overridden from |
float |
getBoundingRadius()
Overridden from |
float |
getFarClipDistance()
Retrieves the distance from the frustum to the far clipping plane. |
float |
getFocalLength()
Returns focal length of frustum. |
IRadian |
getFOVy()
Retrieves the frustums Y-dimension Field Of View (FOV). |
void |
getFrustumExtents(FloatPointer outleft,
FloatPointer outright,
FloatPointer outtop,
FloatPointer outbottom)
Get the extents of the frustum in view space. |
IVector2 |
getFrustumOffset()
Retrieves the frustum offsets. |
IPlane |
getFrustumPlane(int plane)
Retrieves a specified plane of the frustum (world space). |
IPlane |
getFrustumPlanes()
Retrieves the clipping planes of the frustum (world space). |
ILightList |
getLights()
Overridden from |
IMaterialPtr |
getMaterial()
Overridden from |
java.lang.String |
getMovableType()
Overridden from |
float |
getNearClipDistance()
Sets the position of the near clipping plane. |
IQuaternion |
getOrientationForViewUpdate()
Get the derived orientation of this frustum. |
float |
getOrthoWindowHeight()
Gets the orthographic window height, for use with orthographic rendering only. |
float |
getOrthoWindowWidth()
Gets the orthographic window width, for use with orthographic rendering only. |
IVector3 |
getPositionForViewUpdate()
Get the derived position of this frustum. |
IMatrix4 |
getProjectionMatrix()
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]. |
IMatrix4 |
getProjectionMatrixRS()
Gets the projection matrix for this frustum adjusted for the current rendersystem specifics (may be right or left-handed, depth range may vary). |
IMatrix4 |
getProjectionMatrixWithRSDepth()
Gets the depth-adjusted projection matrix for the current rendersystem, but one which still conforms to right-hand rules. |
ProjectionType |
getProjectionType()
Retrieves info on the type of projection used (orthographic or perspective). |
IMatrix4 |
getReflectionMatrix()
|
IPlane |
getReflectionPlane()
|
void |
getRenderOperation(IRenderOperation op)
Overridden from |
float |
getSquaredViewDepth(ICamera cam)
Overridden from |
long |
getTypeFlags()
Get the 'type flags' for this . |
IMatrix4 |
getViewMatrix()
Gets the view matrix for this frustum. |
IVector3 |
getWorldSpaceCorners()
Gets the world space corners of the frustum. |
void |
getWorldTransforms(IMatrix4 xform)
Overridden from |
boolean |
isCustomNearClipPlaneEnabled()
Is a custom near clip plane in use? |
boolean |
isCustomProjectionMatrixEnabled()
|
boolean |
isCustomViewMatrixEnabled()
|
boolean |
isReflected()
|
boolean |
isVisible(IAxisAlignedBox bound,
EnumPointer<FrustumPlane> culledBy)
Tests whether the given container is visible in the . |
boolean |
isVisible(ISphere bound,
EnumPointer<FrustumPlane> culledBy)
Tests whether the given container is visible in the . |
boolean |
isVisible(IVector3 vert,
EnumPointer<FrustumPlane> culledBy)
Tests whether the given vertex is visible in the . |
boolean |
projectSphere(ISphere sphere,
FloatPointer left,
FloatPointer top,
FloatPointer right,
FloatPointer bottom)
Project a sphere onto the near plane and get the bounding rectangle. |
void |
resetFrustumExtents()
Reset the frustum extents to be automatically derived from other params. |
void |
setAspectRatio(float ratio)
Sets the aspect ratio for the frustum viewport. |
void |
setCustomProjectionMatrix(boolean enable,
IMatrix4 projectionMatrix)
Set whether to use a custom projection matrix on this frustum. |
void |
setCustomViewMatrix(boolean enable,
IMatrix4 viewMatrix)
Set whether to use a custom view matrix on this frustum. |
void |
setFarClipDistance(float farDist)
Sets the distance to the far clipping plane. |
void |
setFocalLength(float focalLength)
Sets frustum focal length (used in stereo rendering). |
void |
setFOVy(IRadian fovy)
Sets the Y-dimension Field Of View (FOV) of the frustum. |
void |
setFrustumExtents(float left,
float right,
float top,
float bottom)
Manually set the extents of the frustum. |
void |
setFrustumOffset(float horizontal,
float vertical)
Sets frustum offsets, used in stereo rendering. |
void |
setFrustumOffset(IVector2 offset)
Sets frustum offsets, used in stereo rendering. |
void |
setNearClipDistance(float nearDist)
Sets the position of the near clipping plane. |
void |
setOrthoWindow(float w,
float h)
Sets the orthographic window settings, for use with orthographic rendering only. |
void |
setOrthoWindowHeight(float h)
Sets the orthographic window height, for use with orthographic rendering only. |
void |
setOrthoWindowWidth(float w)
Sets the orthographic window width, for use with orthographic rendering only. |
void |
setProjectionType(ProjectionType pt)
Sets the type of projection to use (orthographic or perspective). |
void |
visitRenderables(IRenderable.IVisitor visitor,
boolean debugRenderables)
Method to allow a caller to abstractly iterate over the instances that this will add to the render queue when asked, if any. |
| Methods inherited from interface org.ogre4j.IAnimableObject |
|---|
createAnimableValue, getAnimableValueNames |
| Methods inherited from interface org.xbig.base.INativeObject |
|---|
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer |
| Method Detail |
|---|
void setFOVy(IRadian fovy)
IRadian getFOVy()
void setNearClipDistance(float nearDist)
float getNearClipDistance()
void setFarClipDistance(float farDist)
float getFarClipDistance()
void setAspectRatio(float ratio)
float getAspectRatio()
void setFrustumOffset(IVector2 offset)
void setFrustumOffset(float horizontal,
float vertical)
IVector2 getFrustumOffset()
void setFocalLength(float focalLength)
float getFocalLength()
void setFrustumExtents(float left,
float right,
float top,
float bottom)
void resetFrustumExtents()
void getFrustumExtents(FloatPointer outleft,
FloatPointer outright,
FloatPointer outtop,
FloatPointer outbottom)
IMatrix4 getProjectionMatrixRS()
IMatrix4 getProjectionMatrixWithRSDepth()
IMatrix4 getProjectionMatrix()
IMatrix4 getViewMatrix()
void calcViewMatrixRelative(IVector3 relPos,
IMatrix4 matToUpdate)
void setCustomViewMatrix(boolean enable,
IMatrix4 viewMatrix)
boolean isCustomViewMatrixEnabled()
void setCustomProjectionMatrix(boolean enable,
IMatrix4 projectionMatrix)
boolean isCustomProjectionMatrixEnabled()
IPlane getFrustumPlanes()
IPlane getFrustumPlane(int plane)
boolean isVisible(IAxisAlignedBox bound,
EnumPointer<FrustumPlane> culledBy)
boolean isVisible(ISphere bound,
EnumPointer<FrustumPlane> culledBy)
boolean isVisible(IVector3 vert,
EnumPointer<FrustumPlane> culledBy)
long getTypeFlags()
IMovableObject
getTypeFlags in interface IMovableObjectIAxisAlignedBox getBoundingBox()
getBoundingBox in interface IMovableObjectfloat getBoundingRadius()
getBoundingRadius in interface IMovableObjectvoid _updateRenderQueue(IRenderQueue queue)
_updateRenderQueue in interface IMovableObjectjava.lang.String getMovableType()
getMovableType in interface IMovableObjectvoid _notifyCurrentCamera(ICamera cam)
_notifyCurrentCamera in interface IMovableObjectIMaterialPtr getMaterial()
getMaterial in interface IRenderablevoid getRenderOperation(IRenderOperation op)
getRenderOperation in interface IRenderablevoid getWorldTransforms(IMatrix4 xform)
getWorldTransforms in interface IRenderablefloat getSquaredViewDepth(ICamera cam)
getSquaredViewDepth in interface IRenderableILightList getLights()
getLights in interface IRenderableIVector3 getWorldSpaceCorners()
void setProjectionType(ProjectionType pt)
ProjectionType getProjectionType()
void setOrthoWindow(float w,
float h)
void setOrthoWindowHeight(float h)
void setOrthoWindowWidth(float w)
float getOrthoWindowHeight()
float getOrthoWindowWidth()
void enableReflection(IPlane p)
void enableReflection(IMovablePlane p)
void disableReflection()
boolean isReflected()
IMatrix4 getReflectionMatrix()
IPlane getReflectionPlane()
boolean projectSphere(ISphere sphere,
FloatPointer left,
FloatPointer top,
FloatPointer right,
FloatPointer bottom)
void enableCustomNearClipPlane(IMovablePlane plane)
void enableCustomNearClipPlane(IPlane plane)
void disableCustomNearClipPlane()
boolean isCustomNearClipPlaneEnabled()
void visitRenderables(IRenderable.IVisitor visitor,
boolean debugRenderables)
IMovableObject
visitRenderables in interface IMovableObjectIVector3 getPositionForViewUpdate()
IQuaternion getOrientationForViewUpdate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||