org.ogre4j
Interface IMovableObject

All Superinterfaces:
IAllocatedObject<ISceneObjAllocPolicy>, IAnimableObject, INativeObject, ISceneObjAllocatedObject, IShadowCaster
All Known Subinterfaces:
IBillboardChain, IBillboardSet, ICamera, IEntity, IFrustum, IInstancedGeometry.IBatchInstance, IInstancedGeometry.IGeometryBucket, ILight, IManualObject, IMovablePlane, IParticleSystem, IRectangle2D, IRibbonTrail, ISimpleRenderable, IStaticGeometry.IRegion, IWireBoundingBox
All Known Implementing Classes:
BillboardChain, BillboardSet, Camera, Entity, Frustum, InstancedGeometry.BatchInstance, InstancedGeometry.GeometryBucket, Light, ManualObject, MovableObject, MovablePlane, ParticleSystem, Rectangle2D, RibbonTrail, SimpleRenderable, StaticGeometry.Region, WireBoundingBox

public interface IMovableObject
extends INativeObject, IShadowCaster, IAnimableObject, ISceneObjAllocatedObject


Nested Class Summary
static interface 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
 
Method Summary
 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.
 ISceneManager _getManager()
          Get the manager of this object, if any (internal use only)
 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)
          Internal method to notify the object of the camera to be used for the next rendering operation.
 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 _updateRenderQueue(IRenderQueue queue)
          Internal method by which the movable object must add subclass instances to the rendering queue.
 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 detatchFromParent()
          Detaches an object from a parent or , if attached.
 IAxisAlignedBox getBoundingBox()
          Retrieves the local axis-aligned bounding box for this object.
 float getBoundingRadius()
          Retrieves the radius of the origin-centered bounding sphere for this object.
 boolean getCastShadows()
          Returns whether shadow casting is enabled for this object.
 IAxisAlignedBox getDarkCapBounds(ILight light, float dirLightExtrusionDist)
          Overridden member from .
 IEdgeData getEdgeList()
          Returns details of the edges which might be used to determine a silhouette.
 IAxisAlignedBox getLightCapBounds()
          Overridden member from .
 IMovableObject.IListener getListener()
          Gets the current listener for this object.
 java.lang.String getMovableType()
          Returns the type name of this object.
 java.lang.String getName()
          Returns the name of this object.
 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
 long getQueryFlags()
           
 float getRenderingDistance()
          Gets the distance at which batches are no longer rendered.
 short getRenderQueueGroup()
          Gets the queue group for this entity, see setRenderQueueGroup for full details.
 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.
 long getTypeFlags()
          Get the 'type flags' for this .
 IAny getUserAny()
          Retrieves the custom user value associated with this object.
 IUserDefinedObject getUserObject()
          Retrieves a pointer to a custom application object associated with this movable by an earlier call to setUserObject.
 long getVisibilityFlags()
           
 boolean getVisible()
          Gets this object whether to be visible or not, if it has a renderable component.
 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.
 boolean hasEdgeList()
          Returns whether the object has a valid edge list.
 boolean isAttached()
          Returns true if this object is attached to a or .
 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 isVisible()
          Returns whether or not this object is supposed to be visible or not.
 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 setCastShadows(boolean enabled)
          Sets whether or not this object will cast shadows.
 void setDebugDisplayEnabled(boolean enabled)
          Sets whether or not the debug display of this object is enabled.
 void setListener(IMovableObject.IListener listener)
          Sets a listener for this object.
 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 setUserAny(IAny anything)
          Sets any kind of user value on this object.
 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 visitRenderables(IRenderable.IVisitor visitor, boolean debugRenderables)
          Method to allow a caller to abstractly iterate over the instances that this will add to the render queue when asked, if any.
 
Methods inherited from interface org.ogre4j.IAnimableObject
createAnimableValue, getAnimableValueNames
 
Methods inherited from interface org.xbig.base.INativeObject
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Method Detail

_notifyCreator

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


_getCreator

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


_notifyManager

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


_getManager

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


getName

java.lang.String getName()
Returns the name of this object.


getMovableType

java.lang.String getMovableType()
Returns the type name of this object.


getParentNode

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


getParentSceneNode

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


_notifyAttached

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


isAttached

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


detatchFromParent

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


isInScene

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


_notifyMoved

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


_notifyCurrentCamera

void _notifyCurrentCamera(ICamera cam)
Internal method to notify the object of the camera to be used for the next rendering operation.


getBoundingBox

IAxisAlignedBox getBoundingBox()
Retrieves the local axis-aligned bounding box for this object.


getBoundingRadius

float getBoundingRadius()
Retrieves the radius of the origin-centered bounding sphere for this object.


getWorldBoundingBox

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

Specified by:
getWorldBoundingBox in interface IShadowCaster

getWorldBoundingSphere

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


_updateRenderQueue

void _updateRenderQueue(IRenderQueue queue)
Internal method by which the movable object must add subclass instances to the rendering queue.


setVisible

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


getVisible

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


isVisible

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


setRenderingDistance

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


getRenderingDistance

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


setUserObject

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


getUserObject

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


setUserAny

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


getUserAny

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


setRenderQueueGroup

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


getRenderQueueGroup

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


_getParentNodeFullTransform

IMatrix4 _getParentNodeFullTransform()

setQueryFlags

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


addQueryFlags

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


removeQueryFlags

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


getQueryFlags

long getQueryFlags()

setVisibilityFlags

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


addVisibilityFlags

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


removeVisibilityFlags

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


getVisibilityFlags

long getVisibilityFlags()

setListener

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


getListener

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


queryLights

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


_getLightList

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


getEdgeList

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 IShadowCaster

hasEdgeList

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

Specified by:
hasEdgeList in interface IShadowCaster

getShadowVolumeRenderableIterator

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 IShadowCaster

getLightCapBounds

IAxisAlignedBox getLightCapBounds()
Overridden member from .

Specified by:
getLightCapBounds in interface IShadowCaster

getDarkCapBounds

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

Specified by:
getDarkCapBounds in interface IShadowCaster

setCastShadows

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


getCastShadows

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

Specified by:
getCastShadows in interface IShadowCaster

getPointExtrusionDistance

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

Specified by:
getPointExtrusionDistance in interface IShadowCaster

getTypeFlags

long getTypeFlags()
Get the 'type flags' for this .


visitRenderables

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.


setDebugDisplayEnabled

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


isDebugDisplayEnabled

boolean isDebugDisplayEnabled()


Copyright © 2007 netAllied GmbH. All Rights Reserved.