org.ogre4j
Class Entity

java.lang.Object
  extended by org.xbig.base.NativeObject
      extended by org.ogre4j.Entity
All Implemented Interfaces:
IAllocatedObject<ISceneObjAllocPolicy>, IAnimableObject, IEntity, IMovableObject, IMovableObject.IListener, ISceneObjAllocatedObject, IShadowCaster, INativeObject

public class Entity
extends NativeObject
implements IEntity


Nested Class Summary
static class Entity.ChildObjectList
           
static class Entity.ChildObjectListIterator
           
static class Entity.EntitySet
           
protected static class Entity.EntityShadowRenderable
           
protected static class Entity.LODEntityList
           
protected static class Entity.SubEntityList
           
static class Entity.VertexDataBindChoice
           
 
Nested classes/interfaces inherited from interface org.ogre4j.IEntity
IEntity.IChildObjectList, IEntity.IChildObjectListIterator, IEntity.IEntitySet, IEntity.IEntityShadowRenderable, IEntity.ILODEntityList, IEntity.ISubEntityList
 
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
 
Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  Entity(InstancePointer p)
          This constructor is public for internal useage only!
protected Entity(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  Entity(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 void _deinitialise()
          Tear down the internal structures of this , rendering it uninitialised.
 IMatrix4 _getBoneMatrices()
          Internal method for retrieving bone matrix information.
 boolean _getBuffersMarkedForAnimation()
          Are buffers already marked as vertex animated?
 IMovableObjectFactory _getCreator()
          Get the creator of this object, if any (internal use only)
 IVertexData _getHardwareVertexAnimVertexData()
          Advanced method to get the hardware morph vertex information
 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)
 int _getNumBoneMatrices()
          Internal method for retrieving bone matrix information.
 IMatrix4 _getParentNodeFullTransform()
           
 ITempBlendedBufferInfo _getSkelAnimTempBufferInfo()
          Advanced method to get the temp buffer information for software skeletal animation.
 IVertexData _getSkelAnimVertexData()
          Advanced method to get the temporarily blended skeletal vertex information for entities which are software skinned.
 IVertexData _getSoftwareVertexAnimVertexData()
          Advanced method to get the temporarily blended software vertex animation information
 ITempBlendedBufferInfo _getVertexAnimTempBufferInfo()
          Advanced method to get the temp buffer information for software morph animation.
 void _initialise(boolean forceReinitialise)
          Try to initialise the from the underlying resources.
 boolean _isAnimated()
          Tests if any animation applied to this entity.
 boolean _isSkeletonAnimated()
          Tests if skeleton was animated.
 void _markBuffersUsedForAnimation()
          Mark just this vertex data as animated.
 void _notifyAttached(INode parent, boolean isTagPoint)
          Overridden from
 void _notifyCreator(IMovableObjectFactory fact)
          Notify the object of it's creator (internal use only)
 void _notifyCurrentCamera(ICamera cam)
          Overridden - see .
 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 _updateAnimation()
          Advanced method to perform all the updates required for an animated entity.
 void _updateRenderQueue(IRenderQueue queue)
          Overridden - see .
 void addQueryFlags(long flags)
          As setQueryFlags, except the flags passed as parameters are appended to the existing flags on this object.
 void addSoftwareAnimationRequest(boolean normalsAlso)
          Add a request for software animation
 void addVisibilityFlags(long flags)
          As setVisibilityFlags, except the flags passed as parameters are appended to the existing flags on this object.
 ITagPoint attachObjectToBone(java.lang.String boneName, IMovableObject pMovable, IQuaternion offsetOrientation, IVector3 offsetPosition)
          Attaches another object to a certain bone of the skeleton which this entity uses.
 void backgroundLoadingComplete(IResource res)
          hook to notify that a delay-loaded is complete.
 Entity.VertexDataBindChoice chooseVertexDataForBinding(boolean hasVertexAnim)
           
 IEntity clone(java.lang.String newName)
          Clones this entity and returns a pointer to the clone.
 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 detachAllObjectsFromBone()
           
 void detachObjectFromBone(IMovableObject obj)
          Detaches an object by pointer.
 IMovableObject detachObjectFromBone(java.lang.String movableName)
          Detach a previously attached using attachObjectToBone.
 void detatchFromParent()
          Detaches an object from a parent or , if attached.
static void extrudeVertices(IHardwareVertexBufferSharedPtr vertexBuffer, int originalVertexCount, IVector4 lightPos, float extrudeDist)
          Utility method for extruding vertices based on a light.
 void finalize()
           
 IAnimationStateSet getAllAnimationStates()
          For entities based on animated meshes, gets the objects for all animations.
 IStringVector getAnimableValueNames()
          Gets a list of animable value names for this object.
 IAnimationState getAnimationState(java.lang.String name)
          For entities based on animated meshes, gets the object for a single animation.
 void getAttachedObjectIterator(IEntity.IChildObjectListIterator returnValue)
          Gets an iterator to the list of objects attached to bones on this entity.
 IAxisAlignedBox getBoundingBox()
          Overridden - see .
 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.
 void getChildObjectsBoundingBox(IAxisAlignedBox returnValue)
           
 int getCurrentLodIndex()
          Returns the current LOD used to render
 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.
 boolean getDisplaySkeleton()
          Returns whether or not the entity is currently displaying its skeleton.
 IEdgeData getEdgeList()
          Overridden member from .
 IAxisAlignedBox getLightCapBounds()
          Overridden member from .
 IMovableObject.IListener getListener()
          Gets the current listener for this object.
 IEntity getManualLodLevel(int index)
          Gets a pointer to the entity representing the numbered manual level of detail.
 IMeshPtr getMesh()
          Gets the that this is based on.
 java.lang.String getMovableType()
          Overridden from
 java.lang.String getName()
          Returns the name of this object.
 int getNumManualLodLevels()
          Returns the number of manual levels of detail that this entity supports.
 long getNumSubEntities()
          Retrieves the number of objects making up this entity.
 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 extrusionDistance, long flags)
          Overridden member from .
 ISkeletonInstance getSkeleton()
          Get this Entity's personal skeleton instance.
 IEntity.IEntitySet getSkeletonInstanceSharingSet()
          Returns a pointer to the set of entities which share a .
 int getSoftwareAnimationNormalsRequests()
          Returns the number of requests that have been made for software animation of normals
 int getSoftwareAnimationRequests()
          Returns the number of requests that have been made for software animation
 ISubEntity getSubEntity(long index)
          Gets a pointer to a , ie a part of an .
 ISubEntity getSubEntity(java.lang.String name)
          Gets a pointer to a by name
 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.
 IVertexData getVertexDataForBinding()
           
 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()
          Overridden member from .
 boolean hasSkeleton()
          Returns whether or not this entity is skeletally animated.
 boolean hasVertexAnimation()
          Returns whether or not this entity is either morph or pose animated.
 boolean isAttached()
          Returns true if this object is attached to a or .
 boolean isDebugDisplayEnabled()
           
 boolean isHardwareAnimationEnabled()
          Returns whether or not hardware animation is enabled.
 boolean isInitialised()
          Has this been initialised yet?
 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.
 void objectAttached(IMovableObject a1)
          has been attached to a node
 void objectDestroyed(IMovableObject a1)
          is being destroyed
 void objectDetached(IMovableObject a1)
          has been detached from a node
 void objectMoved(IMovableObject a1)
          has been moved
 ILightList objectQueryLights(IMovableObject a1)
          Called when the movable object needs to query a light list.
 boolean objectRendering(IMovableObject a1, ICamera a2)
          Called when the movable object of the camera to be used for rendering.
 ILightList queryLights()
          Gets a list of lights, ordered relative to how close they are to this movable object.
 void refreshAvailableAnimationState()
          Updates the internal animation state set to include the latest available animations from the attached skeleton.
 void removeQueryFlags(long flags)
          As setQueryFlags, except the flags passed as parameters are removed from the existing flags on this object.
 void removeSoftwareAnimationRequest(boolean normalsAlso)
          Removes a request for software animation
 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.
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 setDisplaySkeleton(boolean display)
          Tells the whether or not it should display it's skeleton, if it has one.
 void setListener(IMovableObject.IListener listener)
          Sets a listener for this object.
 void setMaterialLodBias(float factor, int maxDetailIndex, int minDetailIndex)
          Sets a level-of-detail bias for the material detail of this entity.
 void setMaterialName(java.lang.String name)
          Sets the material to use for the whole of this entity.
 void setMeshLodBias(float factor, int maxDetailIndex, int minDetailIndex)
          Sets a level-of-detail bias for the mesh detail of this entity.
 void setPolygonModeOverrideable(boolean PolygonModeOverrideable)
          Sets whether the polygon mode of this entire entity may be overridden by the camera detail settings.
 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 shareSkeletonInstanceWith(IEntity entity)
          Shares the with the supplied entity.
 boolean sharesSkeletonInstance()
          Returns whether this entity shares it's SkeltonInstance with other entity instances.
 void stopSharingSkeletonInstance()
          Stops sharing the with other entities.
 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 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

Entity

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


Entity

protected Entity(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.


Entity

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

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()
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

getMesh

public IMeshPtr getMesh()
Gets the that this is based on.

Specified by:
getMesh in interface IEntity

getSubEntity

public ISubEntity getSubEntity(long index)
Gets a pointer to a , ie a part of an .

Specified by:
getSubEntity in interface IEntity

getSubEntity

public ISubEntity getSubEntity(java.lang.String name)
Gets a pointer to a by name

Specified by:
getSubEntity in interface IEntity

getNumSubEntities

public long getNumSubEntities()
Retrieves the number of objects making up this entity.

Specified by:
getNumSubEntities in interface IEntity

clone

public IEntity clone(java.lang.String newName)
Clones this entity and returns a pointer to the clone.

Specified by:
clone in interface IEntity

setMaterialName

public void setMaterialName(java.lang.String name)
Sets the material to use for the whole of this entity.

Specified by:
setMaterialName in interface IEntity

_notifyCurrentCamera

public void _notifyCurrentCamera(ICamera cam)
Overridden - see .

Specified by:
_notifyCurrentCamera in interface IEntity
Specified by:
_notifyCurrentCamera in interface IMovableObject

setRenderQueueGroup

public void setRenderQueueGroup(short queueID)
Description copied from interface: IMovableObject
Sets the render queue group this entity will be rendered through.

Specified by:
setRenderQueueGroup in interface IEntity
Specified by:
setRenderQueueGroup in interface IMovableObject

getBoundingBox

public IAxisAlignedBox getBoundingBox()
Overridden - see .

Specified by:
getBoundingBox in interface IEntity
Specified by:
getBoundingBox in interface IMovableObject

getChildObjectsBoundingBox

public void getChildObjectsBoundingBox(IAxisAlignedBox returnValue)
Specified by:
getChildObjectsBoundingBox in interface IEntity

_updateRenderQueue

public void _updateRenderQueue(IRenderQueue queue)
Overridden - see .

Specified by:
_updateRenderQueue in interface IEntity
Specified by:
_updateRenderQueue in interface IMovableObject

getMovableType

public java.lang.String getMovableType()
Overridden from

Specified by:
getMovableType in interface IEntity
Specified by:
getMovableType in interface IMovableObject

getAnimationState

public IAnimationState getAnimationState(java.lang.String name)
For entities based on animated meshes, gets the object for a single animation.

Specified by:
getAnimationState in interface IEntity

getAllAnimationStates

public IAnimationStateSet getAllAnimationStates()
For entities based on animated meshes, gets the objects for all animations.

Specified by:
getAllAnimationStates in interface IEntity

setDisplaySkeleton

public void setDisplaySkeleton(boolean display)
Tells the whether or not it should display it's skeleton, if it has one.

Specified by:
setDisplaySkeleton in interface IEntity

getDisplaySkeleton

public boolean getDisplaySkeleton()
Returns whether or not the entity is currently displaying its skeleton.

Specified by:
getDisplaySkeleton in interface IEntity

getManualLodLevel

public IEntity getManualLodLevel(int index)
Gets a pointer to the entity representing the numbered manual level of detail.

Specified by:
getManualLodLevel in interface IEntity

getNumManualLodLevels

public int getNumManualLodLevels()
Returns the number of manual levels of detail that this entity supports.

Specified by:
getNumManualLodLevels in interface IEntity

getCurrentLodIndex

public int getCurrentLodIndex()
Returns the current LOD used to render

Specified by:
getCurrentLodIndex in interface IEntity

setMeshLodBias

public void setMeshLodBias(float factor,
                           int maxDetailIndex,
                           int minDetailIndex)
Sets a level-of-detail bias for the mesh detail of this entity.

Specified by:
setMeshLodBias in interface IEntity

setMaterialLodBias

public void setMaterialLodBias(float factor,
                               int maxDetailIndex,
                               int minDetailIndex)
Sets a level-of-detail bias for the material detail of this entity.

Specified by:
setMaterialLodBias in interface IEntity

setPolygonModeOverrideable

public void setPolygonModeOverrideable(boolean PolygonModeOverrideable)
Sets whether the polygon mode of this entire entity may be overridden by the camera detail settings.

Specified by:
setPolygonModeOverrideable in interface IEntity

attachObjectToBone

public ITagPoint attachObjectToBone(java.lang.String boneName,
                                    IMovableObject pMovable,
                                    IQuaternion offsetOrientation,
                                    IVector3 offsetPosition)
Attaches another object to a certain bone of the skeleton which this entity uses.

Specified by:
attachObjectToBone in interface IEntity

detachObjectFromBone

public IMovableObject detachObjectFromBone(java.lang.String movableName)
Detach a previously attached using attachObjectToBone. If the movable object name is not found then an exception is raised.

Specified by:
detachObjectFromBone in interface IEntity

detachObjectFromBone

public void detachObjectFromBone(IMovableObject obj)
Detaches an object by pointer.

Specified by:
detachObjectFromBone in interface IEntity

detachAllObjectsFromBone

public void detachAllObjectsFromBone()
Specified by:
detachAllObjectsFromBone in interface IEntity

getAttachedObjectIterator

public void getAttachedObjectIterator(IEntity.IChildObjectListIterator returnValue)
Gets an iterator to the list of objects attached to bones on this entity.

Specified by:
getAttachedObjectIterator in interface IEntity

getBoundingRadius

public float getBoundingRadius()
Description copied from interface: IMovableObject
Retrieves the radius of the origin-centered bounding sphere for this object.

Specified by:
getBoundingRadius in interface IEntity
Specified by:
getBoundingRadius in interface IMovableObject

getWorldBoundingBox

public IAxisAlignedBox getWorldBoundingBox(boolean derive)
Description copied from interface: IMovableObject
Retrieves the axis-aligned bounding box for this object in world coordinates.

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

getWorldBoundingSphere

public ISphere getWorldBoundingSphere(boolean derive)
Description copied from interface: IMovableObject
Retrieves the worldspace bounding sphere for this object.

Specified by:
getWorldBoundingSphere in interface IEntity
Specified by:
getWorldBoundingSphere in interface IMovableObject

getEdgeList

public IEdgeData getEdgeList()
Overridden member from .

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

hasEdgeList

public boolean hasEdgeList()
Overridden member from .

Specified by:
hasEdgeList in interface IEntity
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 extrusionDistance,
                                              long flags)
Overridden member from .

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

_getBoneMatrices

public IMatrix4 _getBoneMatrices()
Internal method for retrieving bone matrix information.

Specified by:
_getBoneMatrices in interface IEntity

_getNumBoneMatrices

public int _getNumBoneMatrices()
Internal method for retrieving bone matrix information.

Specified by:
_getNumBoneMatrices in interface IEntity

hasSkeleton

public boolean hasSkeleton()
Returns whether or not this entity is skeletally animated.

Specified by:
hasSkeleton in interface IEntity

getSkeleton

public ISkeletonInstance getSkeleton()
Get this Entity's personal skeleton instance.

Specified by:
getSkeleton in interface IEntity

isHardwareAnimationEnabled

public boolean isHardwareAnimationEnabled()
Returns whether or not hardware animation is enabled.

Specified by:
isHardwareAnimationEnabled in interface IEntity

_notifyAttached

public void _notifyAttached(INode parent,
                            boolean isTagPoint)
Overridden from

Specified by:
_notifyAttached in interface IEntity
Specified by:
_notifyAttached in interface IMovableObject

getSoftwareAnimationRequests

public int getSoftwareAnimationRequests()
Returns the number of requests that have been made for software animation

Specified by:
getSoftwareAnimationRequests in interface IEntity

getSoftwareAnimationNormalsRequests

public int getSoftwareAnimationNormalsRequests()
Returns the number of requests that have been made for software animation of normals

Specified by:
getSoftwareAnimationNormalsRequests in interface IEntity

addSoftwareAnimationRequest

public void addSoftwareAnimationRequest(boolean normalsAlso)
Add a request for software animation

Specified by:
addSoftwareAnimationRequest in interface IEntity

removeSoftwareAnimationRequest

public void removeSoftwareAnimationRequest(boolean normalsAlso)
Removes a request for software animation

Specified by:
removeSoftwareAnimationRequest in interface IEntity

shareSkeletonInstanceWith

public void shareSkeletonInstanceWith(IEntity entity)
Shares the with the supplied entity. Note that in order for this to work, both entities must have the same .

Specified by:
shareSkeletonInstanceWith in interface IEntity

hasVertexAnimation

public boolean hasVertexAnimation()
Returns whether or not this entity is either morph or pose animated.

Specified by:
hasVertexAnimation in interface IEntity

stopSharingSkeletonInstance

public void stopSharingSkeletonInstance()
Stops sharing the with other entities.

Specified by:
stopSharingSkeletonInstance in interface IEntity

sharesSkeletonInstance

public boolean sharesSkeletonInstance()
Returns whether this entity shares it's SkeltonInstance with other entity instances.

Specified by:
sharesSkeletonInstance in interface IEntity

getSkeletonInstanceSharingSet

public IEntity.IEntitySet getSkeletonInstanceSharingSet()
Returns a pointer to the set of entities which share a . If this instance does not share it's with other instances NULL will be returned

Specified by:
getSkeletonInstanceSharingSet in interface IEntity

refreshAvailableAnimationState

public void refreshAvailableAnimationState()
Updates the internal animation state set to include the latest available animations from the attached skeleton.

Specified by:
refreshAvailableAnimationState in interface IEntity

_updateAnimation

public void _updateAnimation()
Advanced method to perform all the updates required for an animated entity.

Specified by:
_updateAnimation in interface IEntity

_isAnimated

public boolean _isAnimated()
Tests if any animation applied to this entity.

Specified by:
_isAnimated in interface IEntity

_isSkeletonAnimated

public boolean _isSkeletonAnimated()
Tests if skeleton was animated.

Specified by:
_isSkeletonAnimated in interface IEntity

_getSkelAnimVertexData

public IVertexData _getSkelAnimVertexData()
Advanced method to get the temporarily blended skeletal vertex information for entities which are software skinned.

Specified by:
_getSkelAnimVertexData in interface IEntity

_getSoftwareVertexAnimVertexData

public IVertexData _getSoftwareVertexAnimVertexData()
Advanced method to get the temporarily blended software vertex animation information

Specified by:
_getSoftwareVertexAnimVertexData in interface IEntity

_getHardwareVertexAnimVertexData

public IVertexData _getHardwareVertexAnimVertexData()
Advanced method to get the hardware morph vertex information

Specified by:
_getHardwareVertexAnimVertexData in interface IEntity

_getSkelAnimTempBufferInfo

public ITempBlendedBufferInfo _getSkelAnimTempBufferInfo()
Advanced method to get the temp buffer information for software skeletal animation.

Specified by:
_getSkelAnimTempBufferInfo in interface IEntity

_getVertexAnimTempBufferInfo

public ITempBlendedBufferInfo _getVertexAnimTempBufferInfo()
Advanced method to get the temp buffer information for software morph animation.

Specified by:
_getVertexAnimTempBufferInfo in interface IEntity

getTypeFlags

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

Specified by:
getTypeFlags in interface IEntity
Specified by:
getTypeFlags in interface IMovableObject

getVertexDataForBinding

public IVertexData getVertexDataForBinding()
Specified by:
getVertexDataForBinding in interface IEntity

chooseVertexDataForBinding

public Entity.VertexDataBindChoice chooseVertexDataForBinding(boolean hasVertexAnim)
Specified by:
chooseVertexDataForBinding in interface IEntity

_getBuffersMarkedForAnimation

public boolean _getBuffersMarkedForAnimation()
Are buffers already marked as vertex animated?

Specified by:
_getBuffersMarkedForAnimation in interface IEntity

_markBuffersUsedForAnimation

public void _markBuffersUsedForAnimation()
Mark just this vertex data as animated.

Specified by:
_markBuffersUsedForAnimation in interface IEntity

isInitialised

public boolean isInitialised()
Has this been initialised yet?

Specified by:
isInitialised in interface IEntity

_initialise

public void _initialise(boolean forceReinitialise)
Try to initialise the from the underlying resources.

Specified by:
_initialise in interface IEntity

_deinitialise

public void _deinitialise()
Tear down the internal structures of this , rendering it uninitialised.

Specified by:
_deinitialise in interface IEntity

backgroundLoadingComplete

public void backgroundLoadingComplete(IResource res)
hook to notify that a delay-loaded is complete.

Specified by:
backgroundLoadingComplete in interface IEntity

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 IEntity
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

getName

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

Specified by:
getName 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

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

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

getUserAny

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

Specified by:
getUserAny 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

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

objectDestroyed

public void objectDestroyed(IMovableObject a1)
is being destroyed

Specified by:
objectDestroyed in interface IMovableObject.IListener

objectAttached

public void objectAttached(IMovableObject a1)
has been attached to a node

Specified by:
objectAttached in interface IMovableObject.IListener

objectDetached

public void objectDetached(IMovableObject a1)
has been detached from a node

Specified by:
objectDetached in interface IMovableObject.IListener

objectMoved

public void objectMoved(IMovableObject a1)
has been moved

Specified by:
objectMoved in interface IMovableObject.IListener

objectRendering

public boolean objectRendering(IMovableObject a1,
                               ICamera a2)
Called when the movable object of the camera to be used for rendering.

Specified by:
objectRendering in interface IMovableObject.IListener

objectQueryLights

public ILightList objectQueryLights(IMovableObject a1)
Called when the movable object needs to query a light list.

Specified by:
objectQueryLights in interface IMovableObject.IListener


Copyright © 2007 netAllied GmbH. All Rights Reserved.