|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ICamera
| 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 |
_autoTrack()
Internal method used by OGRE to update auto-tracking cameras. |
float |
_getLodBiasInverse()
Internal method for OGRE to use for LOD calculations. |
long |
_getNumRenderedBatches()
Internal method to retrieve the number of visible batches in the last render. |
long |
_getNumRenderedFaces()
Internal method to retrieve the number of visible faces in the last render. |
void |
_notifyRenderedBatches(long numbatches)
Internal method to notify camera of the visible batches in the last render. |
void |
_notifyRenderedFaces(long numfaces)
Internal method to notify camera of the visible faces in the last render. |
void |
_notifyViewport(IViewport viewport)
Notifies this camera that a viewport is using it. |
void |
_renderScene(IViewport vp,
boolean includeOverlays)
Tells the to contact the to render from it's viewpoint. |
void |
forwardIntersect(IPlane worldPlane,
Ivector<IVector4> intersect3d)
Forward projects frustum rays to find forward intersection with plane. |
boolean |
getAutoAspectRatio()
Retrieves if AutoAspectRatio is currently set or not |
IVector3 |
getAutoTrackOffset()
Get the auto tracking offset for this camera, if it is auto tracking. |
ISceneNode |
getAutoTrackTarget()
Get the auto tracking target for this camera, if any. |
float |
getBoundingRadius()
Overridden from |
void |
getCameraToViewportBoxVolume(float screenLeft,
float screenTop,
float screenRight,
float screenBottom,
IPlaneBoundedVolume outVolume,
boolean includeFarPlane)
Gets a world-space list of planes enclosing a volume based on a viewport rectangle. |
void |
getCameraToViewportBoxVolume(IPlaneBoundedVolume returnValue,
float screenLeft,
float screenTop,
float screenRight,
float screenBottom,
boolean includeFarPlane)
Gets a world-space list of planes enclosing a volume based on a viewport rectangle. |
void |
getCameraToViewportRay(float screenx,
float screeny,
IRay outRay)
Gets a world space ray as cast from the camera through a viewport position. |
void |
getCameraToViewportRay(IRay returnValue,
float screenx,
float screeny)
Gets a world space ray as cast from the camera through a viewport position. |
IFrustum |
getCullingFrustum()
Returns the custom culling frustum in use. |
void |
getDerivedDirection(IVector3 returnValue)
Gets the derived direction vector of the camera, including any rotation inherited from a node attachment and reflection matrix. |
IQuaternion |
getDerivedOrientation()
Gets the derived orientation of the camera, including any rotation inherited from a node attachment and reflection matrix. |
IVector3 |
getDerivedPosition()
Gets the derived position of the camera, including any translation inherited from a node attachment and reflection matrix. |
void |
getDerivedRight(IVector3 returnValue)
Gets the derived right vector of the camera, including any rotation inherited from a node attachment and reflection matrix. |
void |
getDerivedUp(IVector3 returnValue)
Gets the derived up vector of the camera, including any rotation inherited from a node attachment and reflection matrix. |
void |
getDirection(IVector3 returnValue)
|
float |
getFarClipDistance()
Retrieves the distance from the frustum to the far clipping plane. |
IPlane |
getFrustumPlane(int plane)
Retrieves a specified plane of the frustum (world space). |
float |
getLodBias()
Returns the level-of-detail bias factor currently applied to this camera. |
ICamera |
getLodCamera()
Get a pointer to the camera which should be used to determine LOD settings. |
java.lang.String |
getMovableType()
Overridden from |
java.lang.String |
getName()
Gets the camera's name. |
float |
getNearClipDistance()
Sets the position of the near clipping plane. |
IQuaternion |
getOrientation()
Returns the camera's current orientation. |
IQuaternion |
getOrientationForViewUpdate()
Get the derived orientation of this frustum. |
PolygonMode |
getPolygonMode()
Retrieves the level of detail that the camera will render. |
IVector3 |
getPosition()
Retrieves the camera's position. |
IVector3 |
getPositionForViewUpdate()
Get the derived position of this frustum. |
void |
getRealDirection(IVector3 returnValue)
Gets the real world direction vector of the camera, including any rotation inherited from a node attachment. |
IQuaternion |
getRealOrientation()
Gets the real world orientation of the camera, including any rotation inherited from a node attachment |
IVector3 |
getRealPosition()
Gets the real world position of the camera, including any translation inherited from a node attachment. |
void |
getRealRight(IVector3 returnValue)
Gets the real world right vector of the camera, including any rotation inherited from a node attachment. |
void |
getRealUp(IVector3 returnValue)
Gets the real world up vector of the camera, including any rotation inherited from a node attachment. |
void |
getRight(IVector3 returnValue)
Gets the camera's right vector. |
ISceneManager |
getSceneManager()
Returns a pointer to the this camera is rendering through. |
void |
getUp(IVector3 returnValue)
Gets the camera's up vector. |
boolean |
getUseRenderingDistance()
Get whether this camera should use the 'rendering distance' on objects to exclude distant objects from the final image. |
IMatrix4 |
getViewMatrix()
Gets the view matrix for this frustum. |
IMatrix4 |
getViewMatrix(boolean ownFrustumOnly)
Specialised version of getViewMatrix allowing caller to differentiate whether the custom culling frustum should be allowed or not. |
IViewport |
getViewport()
Get the last viewport which was attached to this camera. |
void |
getWindowPlanes(Ivector<IPlane> returnValue)
|
IVector3 |
getWorldSpaceCorners()
Gets the world space corners of the frustum. |
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 |
isWindowSet()
|
void |
lookAt(float x,
float y,
float z)
Points the camera at a location in worldspace. |
void |
lookAt(IVector3 targetPoint)
Points the camera at a location in worldspace. |
void |
move(IVector3 vec)
Moves the camera's position by the vector offset provided along world axes. |
void |
moveRelative(IVector3 vec)
Moves the camera's position by the vector offset provided along it's own axes (relative to orientation). |
void |
pitch(IRadian angle)
Pitches the camera up/down anticlockwise around it's local z axis. |
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 |
resetWindow()
|
void |
roll(IRadian angle)
Rolls the camera anticlockwise, around its local z axis. |
void |
rotate(IQuaternion q)
Rotate the camera around an arbitrary axis using a . |
void |
rotate(IVector3 axis,
IRadian angle)
Rotate the camera around an arbitrary axis. |
void |
setAutoAspectRatio(boolean autoratio)
If set to true a viewport that owns this frustum will be able to recalculate the aspect ratio whenever the frustum is resized. |
void |
setAutoTracking(boolean enabled,
ISceneNode target,
IVector3 offset)
Enables / disables automatic tracking of a . |
void |
setCullingFrustum(IFrustum frustum)
Tells the camera to use a separate instance to perform culling. |
void |
setDirection(float x,
float y,
float z)
Sets the camera's direction vector. |
void |
setDirection(IVector3 vec)
Sets the camera's direction vector. |
void |
setFixedYawAxis(boolean useFixed,
IVector3 fixedAxis)
Tells the camera whether to yaw around it's own local Y axis or a fixed axis of choice. |
void |
setLodBias(float factor)
Sets the level-of-detail factor for this . |
void |
setLodCamera(ICamera lodCam)
Get a pointer to the camera which should be used to determine LOD settings. |
void |
setOrientation(IQuaternion q)
Sets the camera's orientation. |
void |
setPolygonMode(PolygonMode sd)
Sets the level of rendering detail required from this camera. |
void |
setPosition(float x,
float y,
float z)
Sets the camera's position. |
void |
setPosition(IVector3 vec)
Sets the camera's position. |
void |
setUseRenderingDistance(boolean use)
Set whether this camera should use the 'rendering distance' on objects to exclude distant objects from the final image. |
void |
setWindow(float Left,
float Top,
float Right,
float Bottom)
Sets the viewing window inside of viewport. |
void |
synchroniseBaseSettingsWith(ICamera cam)
Synchronise core camera settings with another. |
void |
yaw(IRadian angle)
Rotates the camera anticlockwise around it's local y axis. |
| 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 |
|---|
ISceneManager getSceneManager()
java.lang.String getName()
getName in interface IMovableObjectvoid setPolygonMode(PolygonMode sd)
PolygonMode getPolygonMode()
void setPosition(float x,
float y,
float z)
void setPosition(IVector3 vec)
IVector3 getPosition()
void move(IVector3 vec)
void moveRelative(IVector3 vec)
void setDirection(float x,
float y,
float z)
void setDirection(IVector3 vec)
void getDirection(IVector3 returnValue)
void getUp(IVector3 returnValue)
void getRight(IVector3 returnValue)
void lookAt(IVector3 targetPoint)
void lookAt(float x,
float y,
float z)
void roll(IRadian angle)
void yaw(IRadian angle)
void pitch(IRadian angle)
void rotate(IVector3 axis,
IRadian angle)
void rotate(IQuaternion q)
void setFixedYawAxis(boolean useFixed,
IVector3 fixedAxis)
IQuaternion getOrientation()
void setOrientation(IQuaternion q)
void _renderScene(IViewport vp,
boolean includeOverlays)
void _notifyRenderedFaces(long numfaces)
void _notifyRenderedBatches(long numbatches)
long _getNumRenderedFaces()
long _getNumRenderedBatches()
IQuaternion getDerivedOrientation()
IVector3 getDerivedPosition()
void getDerivedDirection(IVector3 returnValue)
void getDerivedUp(IVector3 returnValue)
void getDerivedRight(IVector3 returnValue)
IQuaternion getRealOrientation()
IVector3 getRealPosition()
void getRealDirection(IVector3 returnValue)
void getRealUp(IVector3 returnValue)
void getRealRight(IVector3 returnValue)
java.lang.String getMovableType()
getMovableType in interface IFrustumgetMovableType in interface IMovableObject
void setAutoTracking(boolean enabled,
ISceneNode target,
IVector3 offset)
void setLodBias(float factor)
float getLodBias()
void setLodCamera(ICamera lodCam)
ICamera getLodCamera()
void getCameraToViewportRay(IRay returnValue,
float screenx,
float screeny)
void getCameraToViewportRay(float screenx,
float screeny,
IRay outRay)
void getCameraToViewportBoxVolume(IPlaneBoundedVolume returnValue,
float screenLeft,
float screenTop,
float screenRight,
float screenBottom,
boolean includeFarPlane)
void getCameraToViewportBoxVolume(float screenLeft,
float screenTop,
float screenRight,
float screenBottom,
IPlaneBoundedVolume outVolume,
boolean includeFarPlane)
float _getLodBiasInverse()
void _autoTrack()
void setWindow(float Left,
float Top,
float Right,
float Bottom)
void resetWindow()
boolean isWindowSet()
void getWindowPlanes(Ivector<IPlane> returnValue)
float getBoundingRadius()
getBoundingRadius in interface IFrustumgetBoundingRadius in interface IMovableObjectISceneNode getAutoTrackTarget()
IVector3 getAutoTrackOffset()
IViewport getViewport()
void _notifyViewport(IViewport viewport)
void setAutoAspectRatio(boolean autoratio)
boolean getAutoAspectRatio()
void setCullingFrustum(IFrustum frustum)
IFrustum getCullingFrustum()
void forwardIntersect(IPlane worldPlane,
Ivector<IVector4> intersect3d)
boolean isVisible(IAxisAlignedBox bound,
EnumPointer<FrustumPlane> culledBy)
IFrustum
isVisible in interface IFrustum
boolean isVisible(ISphere bound,
EnumPointer<FrustumPlane> culledBy)
IFrustum
isVisible in interface IFrustum
boolean isVisible(IVector3 vert,
EnumPointer<FrustumPlane> culledBy)
IFrustum
isVisible in interface IFrustumIVector3 getWorldSpaceCorners()
IFrustum
getWorldSpaceCorners in interface IFrustumIPlane getFrustumPlane(int plane)
IFrustum
getFrustumPlane in interface IFrustum
boolean projectSphere(ISphere sphere,
FloatPointer left,
FloatPointer top,
FloatPointer right,
FloatPointer bottom)
IFrustum
projectSphere in interface IFrustumfloat getNearClipDistance()
IFrustum
getNearClipDistance in interface IFrustumfloat getFarClipDistance()
IFrustum
getFarClipDistance in interface IFrustumIMatrix4 getViewMatrix()
IFrustum
getViewMatrix in interface IFrustumIMatrix4 getViewMatrix(boolean ownFrustumOnly)
void setUseRenderingDistance(boolean use)
boolean getUseRenderingDistance()
void synchroniseBaseSettingsWith(ICamera cam)
IVector3 getPositionForViewUpdate()
getPositionForViewUpdate in interface IFrustumIQuaternion getOrientationForViewUpdate()
getOrientationForViewUpdate in interface IFrustum
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||