|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.Camera
public class Camera
| 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 |
|---|
public Camera(InstancePointer p)
protected Camera(InstancePointer p,
boolean remote)
public Camera(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()
public Camera(java.lang.String name,
ISceneManager sm)
| Method Detail |
|---|
public void delete()
INativeObjectSubclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!
delete in interface INativeObjectdelete in class NativeObject#remotepublic void finalize()
finalize in class NativeObjectpublic ISceneManager getSceneManager()
getSceneManager in interface ICamerapublic java.lang.String getName()
getName in interface ICameragetName in interface IMovableObjectpublic void setPolygonMode(PolygonMode sd)
setPolygonMode in interface ICamerapublic PolygonMode getPolygonMode()
getPolygonMode in interface ICamera
public void setPosition(float x,
float y,
float z)
setPosition in interface ICamerapublic void setPosition(IVector3 vec)
setPosition in interface ICamerapublic IVector3 getPosition()
getPosition in interface ICamerapublic void move(IVector3 vec)
move in interface ICamerapublic void moveRelative(IVector3 vec)
moveRelative in interface ICamera
public void setDirection(float x,
float y,
float z)
setDirection in interface ICamerapublic void setDirection(IVector3 vec)
setDirection in interface ICamerapublic void getDirection(IVector3 returnValue)
getDirection in interface ICamerapublic void getUp(IVector3 returnValue)
getUp in interface ICamerapublic void getRight(IVector3 returnValue)
getRight in interface ICamerapublic void lookAt(IVector3 targetPoint)
lookAt in interface ICamera
public void lookAt(float x,
float y,
float z)
lookAt in interface ICamerapublic void roll(IRadian angle)
roll in interface ICamerapublic void yaw(IRadian angle)
yaw in interface ICamerapublic void pitch(IRadian angle)
pitch in interface ICamera
public void rotate(IVector3 axis,
IRadian angle)
rotate in interface ICamerapublic void rotate(IQuaternion q)
rotate in interface ICamera
public void setFixedYawAxis(boolean useFixed,
IVector3 fixedAxis)
setFixedYawAxis in interface ICamerapublic IQuaternion getOrientation()
getOrientation in interface ICamerapublic void setOrientation(IQuaternion q)
setOrientation in interface ICamera
public void _renderScene(IViewport vp,
boolean includeOverlays)
_renderScene in interface ICamerapublic void _notifyRenderedFaces(long numfaces)
_notifyRenderedFaces in interface ICamerapublic void _notifyRenderedBatches(long numbatches)
_notifyRenderedBatches in interface ICamerapublic long _getNumRenderedFaces()
_getNumRenderedFaces in interface ICamerapublic long _getNumRenderedBatches()
_getNumRenderedBatches in interface ICamerapublic IQuaternion getDerivedOrientation()
getDerivedOrientation in interface ICamerapublic IVector3 getDerivedPosition()
getDerivedPosition in interface ICamerapublic void getDerivedDirection(IVector3 returnValue)
getDerivedDirection in interface ICamerapublic void getDerivedUp(IVector3 returnValue)
getDerivedUp in interface ICamerapublic void getDerivedRight(IVector3 returnValue)
getDerivedRight in interface ICamerapublic IQuaternion getRealOrientation()
getRealOrientation in interface ICamerapublic IVector3 getRealPosition()
getRealPosition in interface ICamerapublic void getRealDirection(IVector3 returnValue)
getRealDirection in interface ICamerapublic void getRealUp(IVector3 returnValue)
getRealUp in interface ICamerapublic void getRealRight(IVector3 returnValue)
getRealRight in interface ICamerapublic java.lang.String getMovableType()
getMovableType in interface ICameragetMovableType in interface IFrustumgetMovableType in interface IMovableObject
public void setAutoTracking(boolean enabled,
ISceneNode target,
IVector3 offset)
setAutoTracking in interface ICamerapublic void setLodBias(float factor)
setLodBias in interface ICamerapublic float getLodBias()
getLodBias in interface ICamerapublic void setLodCamera(ICamera lodCam)
setLodCamera in interface ICamerapublic ICamera getLodCamera()
getLodCamera in interface ICamera
public void getCameraToViewportRay(IRay returnValue,
float screenx,
float screeny)
getCameraToViewportRay in interface ICamera
public void getCameraToViewportRay(float screenx,
float screeny,
IRay outRay)
getCameraToViewportRay in interface ICamera
public void getCameraToViewportBoxVolume(IPlaneBoundedVolume returnValue,
float screenLeft,
float screenTop,
float screenRight,
float screenBottom,
boolean includeFarPlane)
getCameraToViewportBoxVolume in interface ICamera
public void getCameraToViewportBoxVolume(float screenLeft,
float screenTop,
float screenRight,
float screenBottom,
IPlaneBoundedVolume outVolume,
boolean includeFarPlane)
getCameraToViewportBoxVolume in interface ICamerapublic float _getLodBiasInverse()
_getLodBiasInverse in interface ICamerapublic void _autoTrack()
_autoTrack in interface ICamera
public void setWindow(float Left,
float Top,
float Right,
float Bottom)
setWindow in interface ICamerapublic void resetWindow()
resetWindow in interface ICamerapublic boolean isWindowSet()
isWindowSet in interface ICamerapublic void getWindowPlanes(Ivector<IPlane> returnValue)
getWindowPlanes in interface ICamerapublic float getBoundingRadius()
getBoundingRadius in interface ICameragetBoundingRadius in interface IFrustumgetBoundingRadius in interface IMovableObjectpublic ISceneNode getAutoTrackTarget()
getAutoTrackTarget in interface ICamerapublic IVector3 getAutoTrackOffset()
getAutoTrackOffset in interface ICamerapublic IViewport getViewport()
getViewport in interface ICamerapublic void _notifyViewport(IViewport viewport)
_notifyViewport in interface ICamerapublic void setAutoAspectRatio(boolean autoratio)
setAutoAspectRatio in interface ICamerapublic boolean getAutoAspectRatio()
getAutoAspectRatio in interface ICamerapublic void setCullingFrustum(IFrustum frustum)
setCullingFrustum in interface ICamerapublic IFrustum getCullingFrustum()
getCullingFrustum in interface ICamera
public void forwardIntersect(IPlane worldPlane,
Ivector<IVector4> intersect3d)
forwardIntersect in interface ICamera
public boolean isVisible(IAxisAlignedBox bound,
EnumPointer<FrustumPlane> culledBy)
IFrustum
isVisible in interface ICameraisVisible in interface IFrustum
public boolean isVisible(ISphere bound,
EnumPointer<FrustumPlane> culledBy)
IFrustum
isVisible in interface ICameraisVisible in interface IFrustum
public boolean isVisible(IVector3 vert,
EnumPointer<FrustumPlane> culledBy)
IFrustum
isVisible in interface ICameraisVisible in interface IFrustumpublic IVector3 getWorldSpaceCorners()
IFrustum
getWorldSpaceCorners in interface ICameragetWorldSpaceCorners in interface IFrustumpublic IPlane getFrustumPlane(int plane)
IFrustum
getFrustumPlane in interface ICameragetFrustumPlane in interface IFrustum
public boolean projectSphere(ISphere sphere,
FloatPointer left,
FloatPointer top,
FloatPointer right,
FloatPointer bottom)
IFrustum
projectSphere in interface ICameraprojectSphere in interface IFrustumpublic float getNearClipDistance()
IFrustum
getNearClipDistance in interface ICameragetNearClipDistance in interface IFrustumpublic float getFarClipDistance()
IFrustum
getFarClipDistance in interface ICameragetFarClipDistance in interface IFrustumpublic IMatrix4 getViewMatrix()
IFrustum
getViewMatrix in interface ICameragetViewMatrix in interface IFrustumpublic IMatrix4 getViewMatrix(boolean ownFrustumOnly)
getViewMatrix in interface ICamerapublic void setUseRenderingDistance(boolean use)
setUseRenderingDistance in interface ICamerapublic boolean getUseRenderingDistance()
getUseRenderingDistance in interface ICamerapublic void synchroniseBaseSettingsWith(ICamera cam)
synchroniseBaseSettingsWith in interface ICamerapublic IVector3 getPositionForViewUpdate()
getPositionForViewUpdate in interface ICameragetPositionForViewUpdate in interface IFrustumpublic IQuaternion getOrientationForViewUpdate()
getOrientationForViewUpdate in interface ICameragetOrientationForViewUpdate in interface IFrustumpublic void setFOVy(IRadian fovy)
setFOVy in interface IFrustumpublic IRadian getFOVy()
getFOVy in interface IFrustumpublic void setNearClipDistance(float nearDist)
setNearClipDistance in interface IFrustumpublic void setFarClipDistance(float farDist)
setFarClipDistance in interface IFrustumpublic void setAspectRatio(float ratio)
setAspectRatio in interface IFrustumpublic float getAspectRatio()
getAspectRatio in interface IFrustumpublic void setFrustumOffset(IVector2 offset)
setFrustumOffset in interface IFrustum
public void setFrustumOffset(float horizontal,
float vertical)
setFrustumOffset in interface IFrustumpublic IVector2 getFrustumOffset()
getFrustumOffset in interface IFrustumpublic void setFocalLength(float focalLength)
setFocalLength in interface IFrustumpublic float getFocalLength()
getFocalLength in interface IFrustum
public void setFrustumExtents(float left,
float right,
float top,
float bottom)
setFrustumExtents in interface IFrustumpublic void resetFrustumExtents()
resetFrustumExtents in interface IFrustum
public void getFrustumExtents(FloatPointer outleft,
FloatPointer outright,
FloatPointer outtop,
FloatPointer outbottom)
getFrustumExtents in interface IFrustumpublic IMatrix4 getProjectionMatrixRS()
getProjectionMatrixRS in interface IFrustumpublic IMatrix4 getProjectionMatrixWithRSDepth()
getProjectionMatrixWithRSDepth in interface IFrustumpublic IMatrix4 getProjectionMatrix()
getProjectionMatrix in interface IFrustum
public void calcViewMatrixRelative(IVector3 relPos,
IMatrix4 matToUpdate)
calcViewMatrixRelative in interface IFrustum
public void setCustomViewMatrix(boolean enable,
IMatrix4 viewMatrix)
setCustomViewMatrix in interface IFrustumpublic boolean isCustomViewMatrixEnabled()
isCustomViewMatrixEnabled in interface IFrustum
public void setCustomProjectionMatrix(boolean enable,
IMatrix4 projectionMatrix)
setCustomProjectionMatrix in interface IFrustumpublic boolean isCustomProjectionMatrixEnabled()
isCustomProjectionMatrixEnabled in interface IFrustumpublic IPlane getFrustumPlanes()
getFrustumPlanes in interface IFrustumpublic long getTypeFlags()
IMovableObject
getTypeFlags in interface IFrustumgetTypeFlags in interface IMovableObjectpublic IAxisAlignedBox getBoundingBox()
getBoundingBox in interface IFrustumgetBoundingBox in interface IMovableObjectpublic void _updateRenderQueue(IRenderQueue queue)
_updateRenderQueue in interface IFrustum_updateRenderQueue in interface IMovableObjectpublic void _notifyCurrentCamera(ICamera cam)
_notifyCurrentCamera in interface IFrustum_notifyCurrentCamera in interface IMovableObjectpublic IMaterialPtr getMaterial()
getMaterial in interface IFrustumgetMaterial in interface IRenderablepublic void getRenderOperation(IRenderOperation op)
getRenderOperation in interface IFrustumgetRenderOperation in interface IRenderablepublic void getWorldTransforms(IMatrix4 xform)
getWorldTransforms in interface IFrustumgetWorldTransforms in interface IRenderablepublic float getSquaredViewDepth(ICamera cam)
getSquaredViewDepth in interface IFrustumgetSquaredViewDepth in interface IRenderablepublic ILightList getLights()
getLights in interface IFrustumgetLights in interface IRenderablepublic void setProjectionType(ProjectionType pt)
setProjectionType in interface IFrustumpublic ProjectionType getProjectionType()
getProjectionType in interface IFrustum
public void setOrthoWindow(float w,
float h)
setOrthoWindow in interface IFrustumpublic void setOrthoWindowHeight(float h)
setOrthoWindowHeight in interface IFrustumpublic void setOrthoWindowWidth(float w)
setOrthoWindowWidth in interface IFrustumpublic float getOrthoWindowHeight()
getOrthoWindowHeight in interface IFrustumpublic float getOrthoWindowWidth()
getOrthoWindowWidth in interface IFrustumpublic void enableReflection(IPlane p)
enableReflection in interface IFrustumpublic void enableReflection(IMovablePlane p)
enableReflection in interface IFrustumpublic void disableReflection()
disableReflection in interface IFrustumpublic boolean isReflected()
isReflected in interface IFrustumpublic IMatrix4 getReflectionMatrix()
getReflectionMatrix in interface IFrustumpublic IPlane getReflectionPlane()
getReflectionPlane in interface IFrustumpublic void enableCustomNearClipPlane(IMovablePlane plane)
enableCustomNearClipPlane in interface IFrustumpublic void enableCustomNearClipPlane(IPlane plane)
enableCustomNearClipPlane in interface IFrustumpublic void disableCustomNearClipPlane()
disableCustomNearClipPlane in interface IFrustumpublic boolean isCustomNearClipPlaneEnabled()
isCustomNearClipPlaneEnabled in interface IFrustum
public void visitRenderables(IRenderable.IVisitor visitor,
boolean debugRenderables)
IMovableObject
visitRenderables in interface IFrustumvisitRenderables in interface IMovableObjectpublic void _notifyCreator(IMovableObjectFactory fact)
_notifyCreator in interface IMovableObjectpublic IMovableObjectFactory _getCreator()
_getCreator in interface IMovableObjectpublic void _notifyManager(ISceneManager man)
_notifyManager in interface IMovableObjectpublic ISceneManager _getManager()
_getManager in interface IMovableObjectpublic INode getParentNode()
getParentNode in interface IMovableObjectpublic ISceneNode getParentSceneNode()
getParentSceneNode in interface IMovableObject
public void _notifyAttached(INode parent,
boolean isTagPoint)
_notifyAttached in interface IMovableObjectpublic boolean isAttached()
isAttached in interface IMovableObjectpublic void detatchFromParent()
detatchFromParent in interface IMovableObjectpublic boolean isInScene()
isInScene in interface IMovableObjectpublic void _notifyMoved()
_notifyMoved in interface IMovableObjectpublic IAxisAlignedBox getWorldBoundingBox(boolean derive)
getWorldBoundingBox in interface IMovableObjectgetWorldBoundingBox in interface IShadowCasterpublic ISphere getWorldBoundingSphere(boolean derive)
getWorldBoundingSphere in interface IMovableObjectpublic void setVisible(boolean visible)
setVisible in interface IMovableObjectpublic boolean getVisible()
getVisible in interface IMovableObjectpublic boolean isVisible()
isVisible in interface IMovableObjectpublic void setRenderingDistance(float dist)
setRenderingDistance in interface IMovableObjectpublic float getRenderingDistance()
getRenderingDistance in interface IMovableObjectpublic void setUserObject(IUserDefinedObject obj)
setUserObject in interface IMovableObjectpublic IUserDefinedObject getUserObject()
getUserObject in interface IMovableObjectpublic void setUserAny(IAny anything)
setUserAny in interface IMovableObjectsetUserAny in interface IRenderablepublic IAny getUserAny()
getUserAny in interface IMovableObjectgetUserAny in interface IRenderablepublic void setRenderQueueGroup(short queueID)
setRenderQueueGroup in interface IMovableObjectpublic short getRenderQueueGroup()
getRenderQueueGroup in interface IMovableObjectpublic IMatrix4 _getParentNodeFullTransform()
_getParentNodeFullTransform in interface IMovableObjectpublic void setQueryFlags(long flags)
setQueryFlags in interface IMovableObjectpublic void addQueryFlags(long flags)
addQueryFlags in interface IMovableObjectpublic void removeQueryFlags(long flags)
removeQueryFlags in interface IMovableObjectpublic long getQueryFlags()
getQueryFlags in interface IMovableObjectpublic void setVisibilityFlags(long flags)
setVisibilityFlags in interface IMovableObjectpublic void addVisibilityFlags(long flags)
addVisibilityFlags in interface IMovableObjectpublic void removeVisibilityFlags(long flags)
removeVisibilityFlags in interface IMovableObjectpublic long getVisibilityFlags()
getVisibilityFlags in interface IMovableObjectpublic void setListener(IMovableObject.IListener listener)
setListener in interface IMovableObjectpublic IMovableObject.IListener getListener()
getListener in interface IMovableObjectpublic ILightList queryLights()
queryLights in interface IMovableObjectpublic ILightList _getLightList()
_getLightList in interface IMovableObjectpublic IEdgeData getEdgeList()
IShadowCaster
getEdgeList in interface IMovableObjectgetEdgeList in interface IShadowCasterpublic boolean hasEdgeList()
IShadowCaster
hasEdgeList in interface IMovableObjecthasEdgeList in interface IShadowCaster
public void getShadowVolumeRenderableIterator(IShadowCaster.IShadowRenderableListIterator returnValue,
ShadowTechnique shadowTechnique,
ILight light,
IHardwareIndexBufferSharedPtr indexBuffer,
boolean extrudeVertices,
float extrusionDist,
long flags)
IShadowCaster
getShadowVolumeRenderableIterator in interface IMovableObjectgetShadowVolumeRenderableIterator in interface IShadowCasterpublic IAxisAlignedBox getLightCapBounds()
getLightCapBounds in interface IMovableObjectgetLightCapBounds in interface IShadowCaster
public IAxisAlignedBox getDarkCapBounds(ILight light,
float dirLightExtrusionDist)
getDarkCapBounds in interface IMovableObjectgetDarkCapBounds in interface IShadowCasterpublic void setCastShadows(boolean enabled)
setCastShadows in interface IMovableObjectpublic boolean getCastShadows()
getCastShadows in interface IMovableObjectgetCastShadows in interface IShadowCasterpublic float getPointExtrusionDistance(ILight l)
getPointExtrusionDistance in interface IMovableObjectgetPointExtrusionDistance in interface IShadowCasterpublic void setDebugDisplayEnabled(boolean enabled)
setDebugDisplayEnabled in interface IMovableObjectpublic boolean isDebugDisplayEnabled()
isDebugDisplayEnabled in interface IMovableObjectpublic static void setDefaultQueryFlags(long flags)
public static long getDefaultQueryFlags()
public static void setDefaultVisibilityFlags(long flags)
public static long getDefaultVisibilityFlags()
public static void extrudeVertices(IHardwareVertexBufferSharedPtr vertexBuffer,
int originalVertexCount,
IVector4 lightPos,
float extrudeDist)
public IStringVector getAnimableValueNames()
getAnimableValueNames in interface IAnimableObject
public void createAnimableValue(IAnimableValuePtr returnValue,
java.lang.String valueName)
createAnimableValue in interface IAnimableObjectpublic ITechnique getTechnique()
getTechnique in interface IRenderable
public boolean preRender(ISceneManager sm,
IRenderSystem rsys)
preRender in interface IRenderable
public void postRender(ISceneManager sm,
IRenderSystem rsys)
postRender in interface IRenderablepublic int getNumWorldTransforms()
getNumWorldTransforms in interface IRenderablepublic void setUseIdentityProjection(boolean useIdentityProjection)
setUseIdentityProjection in interface IRenderablepublic boolean getUseIdentityProjection()
getUseIdentityProjection in interface IRenderablepublic void setUseIdentityView(boolean useIdentityView)
setUseIdentityView in interface IRenderablepublic boolean getUseIdentityView()
getUseIdentityView in interface IRenderablepublic boolean getCastsShadows()
getCastsShadows in interface IRenderable
public void setCustomParameter(int index,
IVector4 value)
setCustomParameter in interface IRenderablepublic IVector4 getCustomParameter(int index)
getCustomParameter in interface IRenderable
public void _updateCustomGpuParameter(IGpuProgramParameters.IAutoConstantEntry constantEntry,
IGpuProgramParameters params)
_updateCustomGpuParameter in interface IRenderablepublic void setPolygonModeOverrideable(boolean override)
setPolygonModeOverrideable in interface IRenderablepublic boolean getPolygonModeOverrideable()
getPolygonModeOverrideable in interface IRenderablepublic IRenderable.IRenderSystemData getRenderSystemData()
getRenderSystemData in interface IRenderablepublic void setRenderSystemData(IRenderable.IRenderSystemData val)
setRenderSystemData in interface IRenderablepublic static float getINFINITE_FAR_PLANE_ADJUST()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||