org.ogre4j
Class Camera

java.lang.Object
  extended by org.xbig.base.NativeObject
      extended by org.ogre4j.Camera
All Implemented Interfaces:
IAllocatedObject<ISceneObjAllocPolicy>, IAnimableObject, ICamera, IFrustum, IMovableObject, IRenderable, ISceneObjAllocatedObject, IShadowCaster, INativeObject

public class Camera
extends NativeObject
implements 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
 
Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  Camera(InstancePointer p)
          This constructor is public for internal useage only!
protected Camera(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  Camera(java.lang.String name, ISceneManager sm)
          Standard constructor.
  Camera(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 void _autoTrack()
          Internal method used by OGRE to update auto-tracking cameras.
 IMovableObjectFactory _getCreator()
          Get the creator of this object, if any (internal use only)
 ILightList _getLightList()
          Returns a pointer to the current list of lights for this object.
 float _getLodBiasInverse()
          Internal method for OGRE to use for LOD calculations.
 ISceneManager _getManager()
          Get the manager of this object, if any (internal use only)
 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.
 IMatrix4 _getParentNodeFullTransform()
           
 void _notifyAttached(INode parent, boolean isTagPoint)
          Internal method called to notify the object that it has been attached to a node.
 void _notifyCreator(IMovableObjectFactory fact)
          Notify the object of it's creator (internal use only)
 void _notifyCurrentCamera(ICamera cam)
          Overridden from
 void _notifyManager(ISceneManager man)
          Notify the object of it's manager (internal use only)
 void _notifyMoved()
          Internal method called to notify the object that it has been moved.
 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 _updateCustomGpuParameter(IGpuProgramParameters.IAutoConstantEntry constantEntry, IGpuProgramParameters params)
          Update a custom constant which is derived from information only this knows.
 void _updateRenderQueue(IRenderQueue queue)
          Overridden from
 void addQueryFlags(long flags)
          As setQueryFlags, except the flags passed as parameters are appended to the existing flags on this object.
 void addVisibilityFlags(long flags)
          As setVisibilityFlags, except the flags passed as parameters are appended to the existing flags on this object.
 void calcViewMatrixRelative(IVector3 relPos, IMatrix4 matToUpdate)
          Calculate a view matrix for this frustum, relative to a potentially dynamic point.
 void createAnimableValue(IAnimableValuePtr returnValue, java.lang.String valueName)
          Create a reference-counted AnimableValuePtr for the named value.
 void delete()
          Deletes the corresponding C++ object.
 void detatchFromParent()
          Detaches an object from a parent or , if attached.
 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.
static void extrudeVertices(IHardwareVertexBufferSharedPtr vertexBuffer, int originalVertexCount, IVector4 lightPos, float extrudeDist)
          Utility method for extruding vertices based on a light.
 void finalize()
           
 void forwardIntersect(IPlane worldPlane, Ivector<IVector4> intersect3d)
          Forward projects frustum rays to find forward intersection with plane.
 IStringVector getAnimableValueNames()
          Gets a list of animable value names for this object.
 float getAspectRatio()
          Retreives the current aspect ratio.
 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.
 IAxisAlignedBox getBoundingBox()
          Overridden from
 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.
 boolean getCastShadows()
          Returns whether shadow casting is enabled for this object.
 boolean getCastsShadows()
          Method which reports whether this renderable would normally cast a shadow.
 IFrustum getCullingFrustum()
          Returns the custom culling frustum in use.
 IVector4 getCustomParameter(int index)
          Gets the custom value associated with this at the given index.
 IAxisAlignedBox getDarkCapBounds(ILight light, float dirLightExtrusionDist)
          Overridden member from .
static long getDefaultQueryFlags()
          Get the default query flags for all future instances.
static long getDefaultVisibilityFlags()
          Get the default visibility flags for all future instances.
 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)
           
 IEdgeData getEdgeList()
          Returns details of the edges which might be used to determine a silhouette.
 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).
static float getINFINITE_FAR_PLANE_ADJUST()
           
 IAxisAlignedBox getLightCapBounds()
          Overridden member from .
 ILightList getLights()
          Overridden from
 IMovableObject.IListener getListener()
          Gets the current listener for this object.
 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.
 IMaterialPtr getMaterial()
          Overridden from
 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.
 int getNumWorldTransforms()
          Returns the number of world transform matrices this renderable requires.
 IQuaternion getOrientation()
          Returns the camera's current orientation.
 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.
 INode getParentNode()
          Returns the node to which this object is attached.
 ISceneNode getParentSceneNode()
          Returns the scene node to which this object is attached.
 float getPointExtrusionDistance(ILight l)
          Get the distance to extrude for a point/spot light
 PolygonMode getPolygonMode()
          Retrieves the level of detail that the camera will render.
 boolean getPolygonModeOverrideable()
          Gets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting.
 IVector3 getPosition()
          Retrieves the camera's position.
 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).
 long getQueryFlags()
           
 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.
 IMatrix4 getReflectionMatrix()
           
 IPlane getReflectionPlane()
           
 float getRenderingDistance()
          Gets the distance at which batches are no longer rendered.
 void getRenderOperation(IRenderOperation op)
          Overridden from
 short getRenderQueueGroup()
          Gets the queue group for this entity, see setRenderQueueGroup for full details.
 IRenderable.IRenderSystemData getRenderSystemData()
          Sets render system private data
 void getRight(IVector3 returnValue)
          Gets the camera's right vector.
 ISceneManager getSceneManager()
          Returns a pointer to the this camera is rendering through.
 void getShadowVolumeRenderableIterator(IShadowCaster.IShadowRenderableListIterator returnValue, ShadowTechnique shadowTechnique, ILight light, IHardwareIndexBufferSharedPtr indexBuffer, boolean extrudeVertices, float extrusionDist, long flags)
          Gets an iterator over the renderables required to render the shadow volume.
 float getSquaredViewDepth(ICamera cam)
          Overridden from
 ITechnique getTechnique()
          Retrieves a pointer to the this renderable object uses.
 long getTypeFlags()
          Get the 'type flags' for this .
 void getUp(IVector3 returnValue)
          Gets the camera's up vector.
 boolean getUseIdentityProjection()
          Returns whether or not to use an 'identity' projection.
 boolean getUseIdentityView()
          Returns whether or not to use an 'identity' view.
 IAny getUserAny()
          Retrieves the custom user value associated with this object.
 boolean getUseRenderingDistance()
          Get whether this camera should use the 'rendering distance' on objects to exclude distant objects from the final image.
 IUserDefinedObject getUserObject()
          Retrieves a pointer to a custom application object associated with this movable by an earlier call to setUserObject.
 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.
 long getVisibilityFlags()
           
 boolean getVisible()
          Gets this object whether to be visible or not, if it has a renderable component.
 void getWindowPlanes(Ivector<IPlane> returnValue)
           
 IAxisAlignedBox getWorldBoundingBox(boolean derive)
          Retrieves the axis-aligned bounding box for this object in world coordinates.
 ISphere getWorldBoundingSphere(boolean derive)
          Retrieves the worldspace bounding sphere for this object.
 IVector3 getWorldSpaceCorners()
          Gets the world space corners of the frustum.
 void getWorldTransforms(IMatrix4 xform)
          Overridden from
 boolean hasEdgeList()
          Returns whether the object has a valid edge list.
 boolean isAttached()
          Returns true if this object is attached to a or .
 boolean isCustomNearClipPlaneEnabled()
          Is a custom near clip plane in use?
 boolean isCustomProjectionMatrixEnabled()
           
 boolean isCustomViewMatrixEnabled()
           
 boolean isDebugDisplayEnabled()
           
 boolean isInScene()
          Returns true if this object is attached to a or , and this / is currently in an active part of the scene graph.
 boolean isReflected()
           
 boolean isVisible()
          Returns whether or not this object is supposed to be visible or not.
 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.
 void postRender(ISceneManager sm, IRenderSystem rsys)
          Called immediately after the has been rendered.
 boolean preRender(ISceneManager sm, IRenderSystem rsys)
          Called just prior to the being rendered.
 boolean projectSphere(ISphere sphere, FloatPointer left, FloatPointer top, FloatPointer right, FloatPointer bottom)
          Project a sphere onto the near plane and get the bounding rectangle.
 ILightList queryLights()
          Gets a list of lights, ordered relative to how close they are to this movable object.
 void removeQueryFlags(long flags)
          As setQueryFlags, except the flags passed as parameters are removed from the existing flags on this object.
 void removeVisibilityFlags(long flags)
          As setVisibilityFlags, except the flags passed as parameters are removed from the existing flags on this object.
 void resetFrustumExtents()
          Reset the frustum extents to be automatically derived from other params.
 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 setAspectRatio(float ratio)
          Sets the aspect ratio for the frustum viewport.
 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 setCastShadows(boolean enabled)
          Sets whether or not this object will cast shadows.
 void setCullingFrustum(IFrustum frustum)
          Tells the camera to use a separate instance to perform culling.
 void setCustomParameter(int index, IVector4 value)
          Sets a custom parameter for this , which may be used to drive calculations for this specific , like GPU program parameters.
 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 setDebugDisplayEnabled(boolean enabled)
          Sets whether or not the debug display of this object is enabled.
static void setDefaultQueryFlags(long flags)
          Set the default query flags for all future instances.
static void setDefaultVisibilityFlags(long flags)
          Set the default visibility flags for all future instances.
 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 setFarClipDistance(float farDist)
          Sets the distance to the far clipping plane.
 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 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 setListener(IMovableObject.IListener listener)
          Sets a listener for this object.
 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 setNearClipDistance(float nearDist)
          Sets the position of the near clipping plane.
 void setOrientation(IQuaternion q)
          Sets the camera's orientation.
 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 setPolygonMode(PolygonMode sd)
          Sets the level of rendering detail required from this camera.
 void setPolygonModeOverrideable(boolean override)
          Sets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting.
 void setPosition(float x, float y, float z)
          Sets the camera's position.
 void setPosition(IVector3 vec)
          Sets the camera's position.
 void setProjectionType(ProjectionType pt)
          Sets the type of projection to use (orthographic or perspective).
 void setQueryFlags(long flags)
          Sets the query flags for this object.
 void setRenderingDistance(float dist)
          Sets the distance at which the object is no longer rendered.
 void setRenderQueueGroup(short queueID)
          Sets the render queue group this entity will be rendered through.
 void setRenderSystemData(IRenderable.IRenderSystemData val)
          gets render system private data
 void setUseIdentityProjection(boolean useIdentityProjection)
          Sets whether or not to use an 'identity' projection.
 void setUseIdentityView(boolean useIdentityView)
          Sets whether or not to use an 'identity' view.
 void setUserAny(IAny anything)
          Sets any kind of user value on this object.
 void setUseRenderingDistance(boolean use)
          Set whether this camera should use the 'rendering distance' on objects to exclude distant objects from the final image.
 void setUserObject(IUserDefinedObject obj)
          Call this to associate your own custom user object instance with this .
 void setVisibilityFlags(long flags)
          Sets the visiblity flags for this object.
 void setVisible(boolean visible)
          Tells this object whether to be visible or not, if it has a renderable component.
 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 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.
 void yaw(IRadian angle)
          Rotates the camera anticlockwise around it's local y axis.
 
Methods inherited from class org.xbig.base.NativeObject
disconnectFromNativeObject, equals, getInstancePointer, hashCode, setInstancePointer, setInstancePointer, setInstancePointer, toString
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.xbig.base.INativeObject
disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Constructor Detail

Camera

public Camera(InstancePointer p)
This constructor is public for internal useage only! Do not use it!


Camera

protected Camera(InstancePointer p,
                 boolean remote)
Creates a Java wrapper object for an existing C++ object. If remote is set to 'true' this object cannot be deleted in Java.


Camera

public Camera(WithoutNativeObject val)
Allows creation of Java objects without C++ objects.

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()

Camera

public Camera(java.lang.String name,
              ISceneManager sm)
Standard constructor.

Method Detail

delete

public void delete()
Description copied from interface: INativeObject
Deletes the corresponding C++ object.

Subclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!

Specified by:
delete in interface INativeObject
Specified by:
delete in class NativeObject
See Also:
#remote

finalize

public void finalize()
Overrides:
finalize in class NativeObject

getSceneManager

public ISceneManager getSceneManager()
Returns a pointer to the this camera is rendering through.

Specified by:
getSceneManager in interface ICamera

getName

public java.lang.String getName()
Gets the camera's name.

Specified by:
getName in interface ICamera
Specified by:
getName in interface IMovableObject

setPolygonMode

public void setPolygonMode(PolygonMode sd)
Sets the level of rendering detail required from this camera.

Specified by:
setPolygonMode in interface ICamera

getPolygonMode

public PolygonMode getPolygonMode()
Retrieves the level of detail that the camera will render.

Specified by:
getPolygonMode in interface ICamera

setPosition

public void setPosition(float x,
                        float y,
                        float z)
Sets the camera's position.

Specified by:
setPosition in interface ICamera

setPosition

public void setPosition(IVector3 vec)
Sets the camera's position.

Specified by:
setPosition in interface ICamera

getPosition

public IVector3 getPosition()
Retrieves the camera's position.

Specified by:
getPosition in interface ICamera

move

public void move(IVector3 vec)
Moves the camera's position by the vector offset provided along world axes.

Specified by:
move in interface ICamera

moveRelative

public void moveRelative(IVector3 vec)
Moves the camera's position by the vector offset provided along it's own axes (relative to orientation).

Specified by:
moveRelative in interface ICamera

setDirection

public void setDirection(float x,
                         float y,
                         float z)
Sets the camera's direction vector.

Specified by:
setDirection in interface ICamera

setDirection

public void setDirection(IVector3 vec)
Sets the camera's direction vector.

Specified by:
setDirection in interface ICamera

getDirection

public void getDirection(IVector3 returnValue)
Specified by:
getDirection in interface ICamera

getUp

public void getUp(IVector3 returnValue)
Gets the camera's up vector.

Specified by:
getUp in interface ICamera

getRight

public void getRight(IVector3 returnValue)
Gets the camera's right vector.

Specified by:
getRight in interface ICamera

lookAt

public void lookAt(IVector3 targetPoint)
Points the camera at a location in worldspace.

Specified by:
lookAt in interface ICamera

lookAt

public void lookAt(float x,
                   float y,
                   float z)
Points the camera at a location in worldspace.

Specified by:
lookAt in interface ICamera

roll

public void roll(IRadian angle)
Rolls the camera anticlockwise, around its local z axis.

Specified by:
roll in interface ICamera

yaw

public void yaw(IRadian angle)
Rotates the camera anticlockwise around it's local y axis.

Specified by:
yaw in interface ICamera

pitch

public void pitch(IRadian angle)
Pitches the camera up/down anticlockwise around it's local z axis.

Specified by:
pitch in interface ICamera

rotate

public void rotate(IVector3 axis,
                   IRadian angle)
Rotate the camera around an arbitrary axis.

Specified by:
rotate in interface ICamera

rotate

public void rotate(IQuaternion q)
Rotate the camera around an arbitrary axis using a .

Specified by:
rotate in interface ICamera

setFixedYawAxis

public 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.

Specified by:
setFixedYawAxis in interface ICamera

getOrientation

public IQuaternion getOrientation()
Returns the camera's current orientation.

Specified by:
getOrientation in interface ICamera

setOrientation

public void setOrientation(IQuaternion q)
Sets the camera's orientation.

Specified by:
setOrientation in interface ICamera

_renderScene

public void _renderScene(IViewport vp,
                         boolean includeOverlays)
Tells the to contact the to render from it's viewpoint.

Specified by:
_renderScene in interface ICamera

_notifyRenderedFaces

public void _notifyRenderedFaces(long numfaces)
Internal method to notify camera of the visible faces in the last render.

Specified by:
_notifyRenderedFaces in interface ICamera

_notifyRenderedBatches

public void _notifyRenderedBatches(long numbatches)
Internal method to notify camera of the visible batches in the last render.

Specified by:
_notifyRenderedBatches in interface ICamera

_getNumRenderedFaces

public long _getNumRenderedFaces()
Internal method to retrieve the number of visible faces in the last render.

Specified by:
_getNumRenderedFaces in interface ICamera

_getNumRenderedBatches

public long _getNumRenderedBatches()
Internal method to retrieve the number of visible batches in the last render.

Specified by:
_getNumRenderedBatches in interface ICamera

getDerivedOrientation

public IQuaternion getDerivedOrientation()
Gets the derived orientation of the camera, including any rotation inherited from a node attachment and reflection matrix.

Specified by:
getDerivedOrientation in interface ICamera

getDerivedPosition

public IVector3 getDerivedPosition()
Gets the derived position of the camera, including any translation inherited from a node attachment and reflection matrix.

Specified by:
getDerivedPosition in interface ICamera

getDerivedDirection

public void getDerivedDirection(IVector3 returnValue)
Gets the derived direction vector of the camera, including any rotation inherited from a node attachment and reflection matrix.

Specified by:
getDerivedDirection in interface ICamera

getDerivedUp

public void getDerivedUp(IVector3 returnValue)
Gets the derived up vector of the camera, including any rotation inherited from a node attachment and reflection matrix.

Specified by:
getDerivedUp in interface ICamera

getDerivedRight

public void getDerivedRight(IVector3 returnValue)
Gets the derived right vector of the camera, including any rotation inherited from a node attachment and reflection matrix.

Specified by:
getDerivedRight in interface ICamera

getRealOrientation

public IQuaternion getRealOrientation()
Gets the real world orientation of the camera, including any rotation inherited from a node attachment

Specified by:
getRealOrientation in interface ICamera

getRealPosition

public IVector3 getRealPosition()
Gets the real world position of the camera, including any translation inherited from a node attachment.

Specified by:
getRealPosition in interface ICamera

getRealDirection

public void getRealDirection(IVector3 returnValue)
Gets the real world direction vector of the camera, including any rotation inherited from a node attachment.

Specified by:
getRealDirection in interface ICamera

getRealUp

public void getRealUp(IVector3 returnValue)
Gets the real world up vector of the camera, including any rotation inherited from a node attachment.

Specified by:
getRealUp in interface ICamera

getRealRight

public void getRealRight(IVector3 returnValue)
Gets the real world right vector of the camera, including any rotation inherited from a node attachment.

Specified by:
getRealRight in interface ICamera

getMovableType

public java.lang.String getMovableType()
Overridden from

Specified by:
getMovableType in interface ICamera
Specified by:
getMovableType in interface IFrustum
Specified by:
getMovableType in interface IMovableObject

setAutoTracking

public void setAutoTracking(boolean enabled,
                            ISceneNode target,
                            IVector3 offset)
Enables / disables automatic tracking of a .

Specified by:
setAutoTracking in interface ICamera

setLodBias

public void setLodBias(float factor)
Sets the level-of-detail factor for this .

Specified by:
setLodBias in interface ICamera

getLodBias

public float getLodBias()
Returns the level-of-detail bias factor currently applied to this camera.

Specified by:
getLodBias in interface ICamera

setLodCamera

public void setLodCamera(ICamera lodCam)
Get a pointer to the camera which should be used to determine LOD settings.

Specified by:
setLodCamera in interface ICamera

getLodCamera

public ICamera getLodCamera()
Get a pointer to the camera which should be used to determine LOD settings.

Specified by:
getLodCamera in interface ICamera

getCameraToViewportRay

public void getCameraToViewportRay(IRay returnValue,
                                   float screenx,
                                   float screeny)
Gets a world space ray as cast from the camera through a viewport position.

Specified by:
getCameraToViewportRay in interface ICamera

getCameraToViewportRay

public void getCameraToViewportRay(float screenx,
                                   float screeny,
                                   IRay outRay)
Gets a world space ray as cast from the camera through a viewport position.

Specified by:
getCameraToViewportRay in interface ICamera

getCameraToViewportBoxVolume

public 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.

Specified by:
getCameraToViewportBoxVolume in interface ICamera

getCameraToViewportBoxVolume

public 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.

Specified by:
getCameraToViewportBoxVolume in interface ICamera

_getLodBiasInverse

public float _getLodBiasInverse()
Internal method for OGRE to use for LOD calculations.

Specified by:
_getLodBiasInverse in interface ICamera

_autoTrack

public void _autoTrack()
Internal method used by OGRE to update auto-tracking cameras.

Specified by:
_autoTrack in interface ICamera

setWindow

public void setWindow(float Left,
                      float Top,
                      float Right,
                      float Bottom)
Sets the viewing window inside of viewport.

Specified by:
setWindow in interface ICamera

resetWindow

public void resetWindow()
Specified by:
resetWindow in interface ICamera

isWindowSet

public boolean isWindowSet()
Specified by:
isWindowSet in interface ICamera

getWindowPlanes

public void getWindowPlanes(Ivector<IPlane> returnValue)
Specified by:
getWindowPlanes in interface ICamera

getBoundingRadius

public float getBoundingRadius()
Overridden from

Specified by:
getBoundingRadius in interface ICamera
Specified by:
getBoundingRadius in interface IFrustum
Specified by:
getBoundingRadius in interface IMovableObject

getAutoTrackTarget

public ISceneNode getAutoTrackTarget()
Get the auto tracking target for this camera, if any.

Specified by:
getAutoTrackTarget in interface ICamera

getAutoTrackOffset

public IVector3 getAutoTrackOffset()
Get the auto tracking offset for this camera, if it is auto tracking.

Specified by:
getAutoTrackOffset in interface ICamera

getViewport

public IViewport getViewport()
Get the last viewport which was attached to this camera.

Specified by:
getViewport in interface ICamera

_notifyViewport

public void _notifyViewport(IViewport viewport)
Notifies this camera that a viewport is using it.

Specified by:
_notifyViewport in interface ICamera

setAutoAspectRatio

public 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.

Specified by:
setAutoAspectRatio in interface ICamera

getAutoAspectRatio

public boolean getAutoAspectRatio()
Retrieves if AutoAspectRatio is currently set or not

Specified by:
getAutoAspectRatio in interface ICamera

setCullingFrustum

public void setCullingFrustum(IFrustum frustum)
Tells the camera to use a separate instance to perform culling.

Specified by:
setCullingFrustum in interface ICamera

getCullingFrustum

public IFrustum getCullingFrustum()
Returns the custom culling frustum in use.

Specified by:
getCullingFrustum in interface ICamera

forwardIntersect

public void forwardIntersect(IPlane worldPlane,
                             Ivector<IVector4> intersect3d)
Forward projects frustum rays to find forward intersection with plane.

Specified by:
forwardIntersect in interface ICamera

isVisible

public boolean isVisible(IAxisAlignedBox bound,
                         EnumPointer<FrustumPlane> culledBy)
Description copied from interface: IFrustum
Tests whether the given container is visible in the .

Specified by:
isVisible in interface ICamera
Specified by:
isVisible in interface IFrustum

isVisible

public boolean isVisible(ISphere bound,
                         EnumPointer<FrustumPlane> culledBy)
Description copied from interface: IFrustum
Tests whether the given container is visible in the .

Specified by:
isVisible in interface ICamera
Specified by:
isVisible in interface IFrustum

isVisible

public boolean isVisible(IVector3 vert,
                         EnumPointer<FrustumPlane> culledBy)
Description copied from interface: IFrustum
Tests whether the given vertex is visible in the .

Specified by:
isVisible in interface ICamera
Specified by:
isVisible in interface IFrustum

getWorldSpaceCorners

public IVector3 getWorldSpaceCorners()
Description copied from interface: IFrustum
Gets the world space corners of the frustum.

Specified by:
getWorldSpaceCorners in interface ICamera
Specified by:
getWorldSpaceCorners in interface IFrustum

getFrustumPlane

public IPlane getFrustumPlane(int plane)
Description copied from interface: IFrustum
Retrieves a specified plane of the frustum (world space).

Specified by:
getFrustumPlane in interface ICamera
Specified by:
getFrustumPlane in interface IFrustum

projectSphere

public boolean projectSphere(ISphere sphere,
                             FloatPointer left,
                             FloatPointer top,
                             FloatPointer right,
                             FloatPointer bottom)
Description copied from interface: IFrustum
Project a sphere onto the near plane and get the bounding rectangle.

Specified by:
projectSphere in interface ICamera
Specified by:
projectSphere in interface IFrustum

getNearClipDistance

public float getNearClipDistance()
Description copied from interface: IFrustum
Sets the position of the near clipping plane.

Specified by:
getNearClipDistance in interface ICamera
Specified by:
getNearClipDistance in interface IFrustum

getFarClipDistance

public float getFarClipDistance()
Description copied from interface: IFrustum
Retrieves the distance from the frustum to the far clipping plane.

Specified by:
getFarClipDistance in interface ICamera
Specified by:
getFarClipDistance in interface IFrustum

getViewMatrix

public IMatrix4 getViewMatrix()
Description copied from interface: IFrustum
Gets the view matrix for this frustum. Mainly for use by OGRE internally.

Specified by:
getViewMatrix in interface ICamera
Specified by:
getViewMatrix in interface IFrustum

getViewMatrix

public IMatrix4 getViewMatrix(boolean ownFrustumOnly)
Specialised version of getViewMatrix allowing caller to differentiate whether the custom culling frustum should be allowed or not.

Specified by:
getViewMatrix in interface ICamera

setUseRenderingDistance

public void setUseRenderingDistance(boolean use)
Set whether this camera should use the 'rendering distance' on objects to exclude distant objects from the final image. The default behaviour is to use it.

Specified by:
setUseRenderingDistance in interface ICamera

getUseRenderingDistance

public boolean getUseRenderingDistance()
Get whether this camera should use the 'rendering distance' on objects to exclude distant objects from the final image.

Specified by:
getUseRenderingDistance in interface ICamera

synchroniseBaseSettingsWith

public void synchroniseBaseSettingsWith(ICamera cam)
Synchronise core camera settings with another.

Specified by:
synchroniseBaseSettingsWith in interface ICamera

getPositionForViewUpdate

public IVector3 getPositionForViewUpdate()
Get the derived position of this frustum.

Specified by:
getPositionForViewUpdate in interface ICamera
Specified by:
getPositionForViewUpdate in interface IFrustum

getOrientationForViewUpdate

public IQuaternion getOrientationForViewUpdate()
Get the derived orientation of this frustum.

Specified by:
getOrientationForViewUpdate in interface ICamera
Specified by:
getOrientationForViewUpdate in interface IFrustum

setFOVy

public void setFOVy(IRadian fovy)
Sets the Y-dimension Field Of View (FOV) of the frustum.

Specified by:
setFOVy in interface IFrustum

getFOVy

public IRadian getFOVy()
Retrieves the frustums Y-dimension Field Of View (FOV).

Specified by:
getFOVy in interface IFrustum

setNearClipDistance

public void setNearClipDistance(float nearDist)
Sets the position of the near clipping plane.

Specified by:
setNearClipDistance in interface IFrustum

setFarClipDistance

public void setFarClipDistance(float farDist)
Sets the distance to the far clipping plane.

Specified by:
setFarClipDistance in interface IFrustum

setAspectRatio

public void setAspectRatio(float ratio)
Sets the aspect ratio for the frustum viewport.

Specified by:
setAspectRatio in interface IFrustum

getAspectRatio

public float getAspectRatio()
Retreives the current aspect ratio.

Specified by:
getAspectRatio in interface IFrustum

setFrustumOffset

public void setFrustumOffset(IVector2 offset)
Sets frustum offsets, used in stereo rendering.

Specified by:
setFrustumOffset in interface IFrustum

setFrustumOffset

public void setFrustumOffset(float horizontal,
                             float vertical)
Sets frustum offsets, used in stereo rendering.

Specified by:
setFrustumOffset in interface IFrustum

getFrustumOffset

public IVector2 getFrustumOffset()
Retrieves the frustum offsets.

Specified by:
getFrustumOffset in interface IFrustum

setFocalLength

public void setFocalLength(float focalLength)
Sets frustum focal length (used in stereo rendering).

Specified by:
setFocalLength in interface IFrustum

getFocalLength

public float getFocalLength()
Returns focal length of frustum.

Specified by:
getFocalLength in interface IFrustum

setFrustumExtents

public void setFrustumExtents(float left,
                              float right,
                              float top,
                              float bottom)
Manually set the extents of the frustum.

Specified by:
setFrustumExtents in interface IFrustum

resetFrustumExtents

public void resetFrustumExtents()
Reset the frustum extents to be automatically derived from other params.

Specified by:
resetFrustumExtents in interface IFrustum

getFrustumExtents

public void getFrustumExtents(FloatPointer outleft,
                              FloatPointer outright,
                              FloatPointer outtop,
                              FloatPointer outbottom)
Get the extents of the frustum in view space.

Specified by:
getFrustumExtents in interface IFrustum

getProjectionMatrixRS

public 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).

Specified by:
getProjectionMatrixRS in interface IFrustum

getProjectionMatrixWithRSDepth

public IMatrix4 getProjectionMatrixWithRSDepth()
Gets the depth-adjusted projection matrix for the current rendersystem, but one which still conforms to right-hand rules.

Specified by:
getProjectionMatrixWithRSDepth in interface IFrustum

getProjectionMatrix

public 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].

Specified by:
getProjectionMatrix in interface IFrustum

calcViewMatrixRelative

public void calcViewMatrixRelative(IVector3 relPos,
                                   IMatrix4 matToUpdate)
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)

Specified by:
calcViewMatrixRelative in interface IFrustum

setCustomViewMatrix

public void setCustomViewMatrix(boolean enable,
                                IMatrix4 viewMatrix)
Set whether to use a custom view matrix on this frustum.

Specified by:
setCustomViewMatrix in interface IFrustum

isCustomViewMatrixEnabled

public boolean isCustomViewMatrixEnabled()
Specified by:
isCustomViewMatrixEnabled in interface IFrustum

setCustomProjectionMatrix

public void setCustomProjectionMatrix(boolean enable,
                                      IMatrix4 projectionMatrix)
Set whether to use a custom projection matrix on this frustum.

Specified by:
setCustomProjectionMatrix in interface IFrustum

isCustomProjectionMatrixEnabled

public boolean isCustomProjectionMatrixEnabled()
Specified by:
isCustomProjectionMatrixEnabled in interface IFrustum

getFrustumPlanes

public IPlane getFrustumPlanes()
Retrieves the clipping planes of the frustum (world space).

Specified by:
getFrustumPlanes in interface IFrustum

getTypeFlags

public long getTypeFlags()
Description copied from interface: IMovableObject
Get the 'type flags' for this .

Specified by:
getTypeFlags in interface IFrustum
Specified by:
getTypeFlags in interface IMovableObject

getBoundingBox

public IAxisAlignedBox getBoundingBox()
Overridden from

Specified by:
getBoundingBox in interface IFrustum
Specified by:
getBoundingBox in interface IMovableObject

_updateRenderQueue

public void _updateRenderQueue(IRenderQueue queue)
Overridden from

Specified by:
_updateRenderQueue in interface IFrustum
Specified by:
_updateRenderQueue in interface IMovableObject

_notifyCurrentCamera

public void _notifyCurrentCamera(ICamera cam)
Overridden from

Specified by:
_notifyCurrentCamera in interface IFrustum
Specified by:
_notifyCurrentCamera in interface IMovableObject

getMaterial

public IMaterialPtr getMaterial()
Overridden from

Specified by:
getMaterial in interface IFrustum
Specified by:
getMaterial in interface IRenderable

getRenderOperation

public void getRenderOperation(IRenderOperation op)
Overridden from

Specified by:
getRenderOperation in interface IFrustum
Specified by:
getRenderOperation in interface IRenderable

getWorldTransforms

public void getWorldTransforms(IMatrix4 xform)
Overridden from

Specified by:
getWorldTransforms in interface IFrustum
Specified by:
getWorldTransforms in interface IRenderable

getSquaredViewDepth

public float getSquaredViewDepth(ICamera cam)
Overridden from

Specified by:
getSquaredViewDepth in interface IFrustum
Specified by:
getSquaredViewDepth in interface IRenderable

getLights

public ILightList getLights()
Overridden from

Specified by:
getLights in interface IFrustum
Specified by:
getLights in interface IRenderable

setProjectionType

public void setProjectionType(ProjectionType pt)
Sets the type of projection to use (orthographic or perspective). Default is perspective.

Specified by:
setProjectionType in interface IFrustum

getProjectionType

public ProjectionType getProjectionType()
Retrieves info on the type of projection used (orthographic or perspective).

Specified by:
getProjectionType in interface IFrustum

setOrthoWindow

public void setOrthoWindow(float w,
                           float h)
Sets the orthographic window settings, for use with orthographic rendering only.

Specified by:
setOrthoWindow in interface IFrustum

setOrthoWindowHeight

public void setOrthoWindowHeight(float h)
Sets the orthographic window height, for use with orthographic rendering only.

Specified by:
setOrthoWindowHeight in interface IFrustum

setOrthoWindowWidth

public void setOrthoWindowWidth(float w)
Sets the orthographic window width, for use with orthographic rendering only.

Specified by:
setOrthoWindowWidth in interface IFrustum

getOrthoWindowHeight

public float getOrthoWindowHeight()
Gets the orthographic window height, for use with orthographic rendering only.

Specified by:
getOrthoWindowHeight in interface IFrustum

getOrthoWindowWidth

public float getOrthoWindowWidth()
Gets the orthographic window width, for use with orthographic rendering only.

Specified by:
getOrthoWindowWidth in interface IFrustum

enableReflection

public void enableReflection(IPlane p)
Modifies this frustum so it always renders from the reflection of itself through the plane specified.

Specified by:
enableReflection in interface IFrustum

enableReflection

public void enableReflection(IMovablePlane 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.

Specified by:
enableReflection in interface IFrustum

disableReflection

public void disableReflection()
Disables reflection modification previously turned on with enableReflection

Specified by:
disableReflection in interface IFrustum

isReflected

public boolean isReflected()
Specified by:
isReflected in interface IFrustum

getReflectionMatrix

public IMatrix4 getReflectionMatrix()
Specified by:
getReflectionMatrix in interface IFrustum

getReflectionPlane

public IPlane getReflectionPlane()
Specified by:
getReflectionPlane in interface IFrustum

enableCustomNearClipPlane

public 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.

Specified by:
enableCustomNearClipPlane in interface IFrustum

enableCustomNearClipPlane

public 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.

Specified by:
enableCustomNearClipPlane in interface IFrustum

disableCustomNearClipPlane

public void disableCustomNearClipPlane()
Disables any custom near clip plane.

Specified by:
disableCustomNearClipPlane in interface IFrustum

isCustomNearClipPlaneEnabled

public boolean isCustomNearClipPlaneEnabled()
Is a custom near clip plane in use?

Specified by:
isCustomNearClipPlaneEnabled in interface IFrustum

visitRenderables

public void visitRenderables(IRenderable.IVisitor visitor,
                             boolean debugRenderables)
Description copied from interface: IMovableObject
Method to allow a caller to abstractly iterate over the instances that this will add to the render queue when asked, if any.

Specified by:
visitRenderables in interface IFrustum
Specified by:
visitRenderables in interface IMovableObject

_notifyCreator

public void _notifyCreator(IMovableObjectFactory fact)
Notify the object of it's creator (internal use only)

Specified by:
_notifyCreator in interface IMovableObject

_getCreator

public IMovableObjectFactory _getCreator()
Get the creator of this object, if any (internal use only)

Specified by:
_getCreator in interface IMovableObject

_notifyManager

public void _notifyManager(ISceneManager man)
Notify the object of it's manager (internal use only)

Specified by:
_notifyManager in interface IMovableObject

_getManager

public ISceneManager _getManager()
Get the manager of this object, if any (internal use only)

Specified by:
_getManager in interface IMovableObject

getParentNode

public INode getParentNode()
Returns the node to which this object is attached.

Specified by:
getParentNode in interface IMovableObject

getParentSceneNode

public ISceneNode getParentSceneNode()
Returns the scene node to which this object is attached.

Specified by:
getParentSceneNode in interface IMovableObject

_notifyAttached

public void _notifyAttached(INode parent,
                            boolean isTagPoint)
Internal method called to notify the object that it has been attached to a node.

Specified by:
_notifyAttached in interface IMovableObject

isAttached

public boolean isAttached()
Returns true if this object is attached to a or .

Specified by:
isAttached in interface IMovableObject

detatchFromParent

public void detatchFromParent()
Detaches an object from a parent or , if attached.

Specified by:
detatchFromParent in interface IMovableObject

isInScene

public boolean isInScene()
Returns true if this object is attached to a or , and this / is currently in an active part of the scene graph.

Specified by:
isInScene in interface IMovableObject

_notifyMoved

public void _notifyMoved()
Internal method called to notify the object that it has been moved.

Specified by:
_notifyMoved in interface IMovableObject

getWorldBoundingBox

public IAxisAlignedBox getWorldBoundingBox(boolean derive)
Retrieves the axis-aligned bounding box for this object in world coordinates.

Specified by:
getWorldBoundingBox in interface IMovableObject
Specified by:
getWorldBoundingBox in interface IShadowCaster

getWorldBoundingSphere

public ISphere getWorldBoundingSphere(boolean derive)
Retrieves the worldspace bounding sphere for this object.

Specified by:
getWorldBoundingSphere in interface IMovableObject

setVisible

public void setVisible(boolean visible)
Tells this object whether to be visible or not, if it has a renderable component.

Specified by:
setVisible in interface IMovableObject

getVisible

public boolean getVisible()
Gets this object whether to be visible or not, if it has a renderable component.

Specified by:
getVisible in interface IMovableObject

isVisible

public boolean isVisible()
Returns whether or not this object is supposed to be visible or not.

Specified by:
isVisible in interface IMovableObject

setRenderingDistance

public void setRenderingDistance(float dist)
Sets the distance at which the object is no longer rendered.

Specified by:
setRenderingDistance in interface IMovableObject

getRenderingDistance

public float getRenderingDistance()
Gets the distance at which batches are no longer rendered.

Specified by:
getRenderingDistance in interface IMovableObject

setUserObject

public void setUserObject(IUserDefinedObject obj)
Call this to associate your own custom user object instance with this .

Specified by:
setUserObject in interface IMovableObject

getUserObject

public IUserDefinedObject getUserObject()
Retrieves a pointer to a custom application object associated with this movable by an earlier call to setUserObject.

Specified by:
getUserObject in interface IMovableObject

setUserAny

public void setUserAny(IAny anything)
Sets any kind of user value on this object.

Specified by:
setUserAny in interface IMovableObject
Specified by:
setUserAny in interface IRenderable

getUserAny

public IAny getUserAny()
Retrieves the custom user value associated with this object.

Specified by:
getUserAny in interface IMovableObject
Specified by:
getUserAny in interface IRenderable

setRenderQueueGroup

public void setRenderQueueGroup(short queueID)
Sets the render queue group this entity will be rendered through.

Specified by:
setRenderQueueGroup in interface IMovableObject

getRenderQueueGroup

public short getRenderQueueGroup()
Gets the queue group for this entity, see setRenderQueueGroup for full details.

Specified by:
getRenderQueueGroup in interface IMovableObject

_getParentNodeFullTransform

public IMatrix4 _getParentNodeFullTransform()
Specified by:
_getParentNodeFullTransform in interface IMovableObject

setQueryFlags

public void setQueryFlags(long flags)
Sets the query flags for this object.

Specified by:
setQueryFlags in interface IMovableObject

addQueryFlags

public void addQueryFlags(long flags)
As setQueryFlags, except the flags passed as parameters are appended to the existing flags on this object.

Specified by:
addQueryFlags in interface IMovableObject

removeQueryFlags

public void removeQueryFlags(long flags)
As setQueryFlags, except the flags passed as parameters are removed from the existing flags on this object.

Specified by:
removeQueryFlags in interface IMovableObject

getQueryFlags

public long getQueryFlags()
Specified by:
getQueryFlags in interface IMovableObject

setVisibilityFlags

public void setVisibilityFlags(long flags)
Sets the visiblity flags for this object.

Specified by:
setVisibilityFlags in interface IMovableObject

addVisibilityFlags

public void addVisibilityFlags(long flags)
As setVisibilityFlags, except the flags passed as parameters are appended to the existing flags on this object.

Specified by:
addVisibilityFlags in interface IMovableObject

removeVisibilityFlags

public void removeVisibilityFlags(long flags)
As setVisibilityFlags, except the flags passed as parameters are removed from the existing flags on this object.

Specified by:
removeVisibilityFlags in interface IMovableObject

getVisibilityFlags

public long getVisibilityFlags()
Specified by:
getVisibilityFlags in interface IMovableObject

setListener

public void setListener(IMovableObject.IListener listener)
Sets a listener for this object.

Specified by:
setListener in interface IMovableObject

getListener

public IMovableObject.IListener getListener()
Gets the current listener for this object.

Specified by:
getListener in interface IMovableObject

queryLights

public ILightList queryLights()
Gets a list of lights, ordered relative to how close they are to this movable object.

Specified by:
queryLights in interface IMovableObject

_getLightList

public ILightList _getLightList()
Returns a pointer to the current list of lights for this object.

Specified by:
_getLightList in interface IMovableObject

getEdgeList

public IEdgeData getEdgeList()
Description copied from interface: IShadowCaster
Returns details of the edges which might be used to determine a silhouette.

Specified by:
getEdgeList in interface IMovableObject
Specified by:
getEdgeList in interface IShadowCaster

hasEdgeList

public boolean hasEdgeList()
Description copied from interface: IShadowCaster
Returns whether the object has a valid edge list.

Specified by:
hasEdgeList in interface IMovableObject
Specified by:
hasEdgeList in interface IShadowCaster

getShadowVolumeRenderableIterator

public void getShadowVolumeRenderableIterator(IShadowCaster.IShadowRenderableListIterator returnValue,
                                              ShadowTechnique shadowTechnique,
                                              ILight light,
                                              IHardwareIndexBufferSharedPtr indexBuffer,
                                              boolean extrudeVertices,
                                              float extrusionDist,
                                              long flags)
Description copied from interface: IShadowCaster
Gets an iterator over the renderables required to render the shadow volume.

Specified by:
getShadowVolumeRenderableIterator in interface IMovableObject
Specified by:
getShadowVolumeRenderableIterator in interface IShadowCaster

getLightCapBounds

public IAxisAlignedBox getLightCapBounds()
Overridden member from .

Specified by:
getLightCapBounds in interface IMovableObject
Specified by:
getLightCapBounds in interface IShadowCaster

getDarkCapBounds

public IAxisAlignedBox getDarkCapBounds(ILight light,
                                        float dirLightExtrusionDist)
Overridden member from .

Specified by:
getDarkCapBounds in interface IMovableObject
Specified by:
getDarkCapBounds in interface IShadowCaster

setCastShadows

public void setCastShadows(boolean enabled)
Sets whether or not this object will cast shadows.

Specified by:
setCastShadows in interface IMovableObject

getCastShadows

public boolean getCastShadows()
Returns whether shadow casting is enabled for this object.

Specified by:
getCastShadows in interface IMovableObject
Specified by:
getCastShadows in interface IShadowCaster

getPointExtrusionDistance

public float getPointExtrusionDistance(ILight l)
Get the distance to extrude for a point/spot light

Specified by:
getPointExtrusionDistance in interface IMovableObject
Specified by:
getPointExtrusionDistance in interface IShadowCaster

setDebugDisplayEnabled

public void setDebugDisplayEnabled(boolean enabled)
Sets whether or not the debug display of this object is enabled.

Specified by:
setDebugDisplayEnabled in interface IMovableObject

isDebugDisplayEnabled

public boolean isDebugDisplayEnabled()
Specified by:
isDebugDisplayEnabled in interface IMovableObject

setDefaultQueryFlags

public static void setDefaultQueryFlags(long flags)
Set the default query flags for all future instances.


getDefaultQueryFlags

public static long getDefaultQueryFlags()
Get the default query flags for all future instances.


setDefaultVisibilityFlags

public static void setDefaultVisibilityFlags(long flags)
Set the default visibility flags for all future instances.


getDefaultVisibilityFlags

public static long getDefaultVisibilityFlags()
Get the default visibility flags for all future instances.


extrudeVertices

public static void extrudeVertices(IHardwareVertexBufferSharedPtr vertexBuffer,
                                   int originalVertexCount,
                                   IVector4 lightPos,
                                   float extrudeDist)
Utility method for extruding vertices based on a light.


getAnimableValueNames

public IStringVector getAnimableValueNames()
Gets a list of animable value names for this object.

Specified by:
getAnimableValueNames in interface IAnimableObject

createAnimableValue

public void createAnimableValue(IAnimableValuePtr returnValue,
                                java.lang.String valueName)
Create a reference-counted AnimableValuePtr for the named value.

Specified by:
createAnimableValue in interface IAnimableObject

getTechnique

public ITechnique getTechnique()
Retrieves a pointer to the this renderable object uses.

Specified by:
getTechnique in interface IRenderable

preRender

public boolean preRender(ISceneManager sm,
                         IRenderSystem rsys)
Called just prior to the being rendered.

Specified by:
preRender in interface IRenderable

postRender

public void postRender(ISceneManager sm,
                       IRenderSystem rsys)
Called immediately after the has been rendered.

Specified by:
postRender in interface IRenderable

getNumWorldTransforms

public int getNumWorldTransforms()
Returns the number of world transform matrices this renderable requires.

Specified by:
getNumWorldTransforms in interface IRenderable

setUseIdentityProjection

public void setUseIdentityProjection(boolean useIdentityProjection)
Sets whether or not to use an 'identity' projection.

Specified by:
setUseIdentityProjection in interface IRenderable

getUseIdentityProjection

public boolean getUseIdentityProjection()
Returns whether or not to use an 'identity' projection.

Specified by:
getUseIdentityProjection in interface IRenderable

setUseIdentityView

public void setUseIdentityView(boolean useIdentityView)
Sets whether or not to use an 'identity' view.

Specified by:
setUseIdentityView in interface IRenderable

getUseIdentityView

public boolean getUseIdentityView()
Returns whether or not to use an 'identity' view.

Specified by:
getUseIdentityView in interface IRenderable

getCastsShadows

public boolean getCastsShadows()
Method which reports whether this renderable would normally cast a shadow.

Specified by:
getCastsShadows in interface IRenderable

setCustomParameter

public void setCustomParameter(int index,
                               IVector4 value)
Sets a custom parameter for this , which may be used to drive calculations for this specific , like GPU program parameters.

Specified by:
setCustomParameter in interface IRenderable

getCustomParameter

public IVector4 getCustomParameter(int index)
Gets the custom value associated with this at the given index.

Specified by:
getCustomParameter in interface IRenderable

_updateCustomGpuParameter

public void _updateCustomGpuParameter(IGpuProgramParameters.IAutoConstantEntry constantEntry,
                                      IGpuProgramParameters params)
Update a custom constant which is derived from information only this knows.

Specified by:
_updateCustomGpuParameter in interface IRenderable

setPolygonModeOverrideable

public void setPolygonModeOverrideable(boolean override)
Sets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting.

Specified by:
setPolygonModeOverrideable in interface IRenderable

getPolygonModeOverrideable

public boolean getPolygonModeOverrideable()
Gets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting.

Specified by:
getPolygonModeOverrideable in interface IRenderable

getRenderSystemData

public IRenderable.IRenderSystemData getRenderSystemData()
Sets render system private data

Specified by:
getRenderSystemData in interface IRenderable

setRenderSystemData

public void setRenderSystemData(IRenderable.IRenderSystemData val)
gets render system private data

Specified by:
setRenderSystemData in interface IRenderable

getINFINITE_FAR_PLANE_ADJUST

public static float getINFINITE_FAR_PLANE_ADJUST()


Copyright © 2007 netAllied GmbH. All Rights Reserved.