org.ogre4j
Interface IEntity

All Superinterfaces:
IAllocatedObject<ISceneObjAllocPolicy>, IAnimableObject, IMovableObject, IMovableObject.IListener, INativeObject, ISceneObjAllocatedObject, IShadowCaster
All Known Implementing Classes:
Entity

public interface IEntity
extends INativeObject, IMovableObject, IMovableObject.IListener


Nested Class Summary
static interface IEntity.IChildObjectList
           
static interface IEntity.IChildObjectListIterator
           
static interface IEntity.IEntitySet
           
static interface IEntity.IEntityShadowRenderable
           
static interface IEntity.ILODEntityList
           
static interface 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
 
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?
 IVertexData _getHardwareVertexAnimVertexData()
          Advanced method to get the hardware morph vertex information
 int _getNumBoneMatrices()
          Internal method for retrieving bone matrix information.
 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 _notifyCurrentCamera(ICamera cam)
          Overridden - see .
 void _updateAnimation()
          Advanced method to perform all the updates required for an animated entity.
 void _updateRenderQueue(IRenderQueue queue)
          Overridden - see .
 void addSoftwareAnimationRequest(boolean normalsAlso)
          Add a request for software animation
 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 detachAllObjectsFromBone()
           
 void detachObjectFromBone(IMovableObject obj)
          Detaches an object by pointer.
 IMovableObject detachObjectFromBone(java.lang.String movableName)
          Detach a previously attached using attachObjectToBone.
 IAnimationStateSet getAllAnimationStates()
          For entities based on animated meshes, gets the objects for all animations.
 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.
 void getChildObjectsBoundingBox(IAxisAlignedBox returnValue)
           
 int getCurrentLodIndex()
          Returns the current LOD used to render
 boolean getDisplaySkeleton()
          Returns whether or not the entity is currently displaying its skeleton.
 IEdgeData getEdgeList()
          Overridden member from .
 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
 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.
 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 .
 IVertexData getVertexDataForBinding()
           
 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 isHardwareAnimationEnabled()
          Returns whether or not hardware animation is enabled.
 boolean isInitialised()
          Has this been initialised yet?
 void refreshAvailableAnimationState()
          Updates the internal animation state set to include the latest available animations from the attached skeleton.
 void removeSoftwareAnimationRequest(boolean normalsAlso)
          Removes a request for software animation
 void setDisplaySkeleton(boolean display)
          Tells the whether or not it should display it's skeleton, if it has one.
 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 setRenderQueueGroup(short queueID)
          Sets the render queue group this entity will be rendered through.
 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 interface org.ogre4j.IMovableObject
_getCreator, _getLightList, _getManager, _getParentNodeFullTransform, _notifyCreator, _notifyManager, _notifyMoved, addQueryFlags, addVisibilityFlags, detatchFromParent, getCastShadows, getDarkCapBounds, getLightCapBounds, getListener, getName, getParentNode, getParentSceneNode, getPointExtrusionDistance, getQueryFlags, getRenderingDistance, getRenderQueueGroup, getUserAny, getUserObject, getVisibilityFlags, getVisible, isAttached, isDebugDisplayEnabled, isInScene, isVisible, queryLights, removeQueryFlags, removeVisibilityFlags, setCastShadows, setDebugDisplayEnabled, setListener, setQueryFlags, setRenderingDistance, setUserAny, setUserObject, setVisibilityFlags, setVisible
 
Methods inherited from interface org.ogre4j.IAnimableObject
createAnimableValue, getAnimableValueNames
 
Methods inherited from interface org.xbig.base.INativeObject
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 
Methods inherited from interface org.ogre4j.IMovableObject.IListener
objectAttached, objectDestroyed, objectDetached, objectMoved, objectQueryLights, objectRendering
 

Method Detail

getMesh

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


getSubEntity

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


getSubEntity

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


getNumSubEntities

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


clone

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


setMaterialName

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


_notifyCurrentCamera

void _notifyCurrentCamera(ICamera cam)
Overridden - see .

Specified by:
_notifyCurrentCamera in interface IMovableObject

setRenderQueueGroup

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 IMovableObject

getBoundingBox

IAxisAlignedBox getBoundingBox()
Overridden - see .

Specified by:
getBoundingBox in interface IMovableObject

getChildObjectsBoundingBox

void getChildObjectsBoundingBox(IAxisAlignedBox returnValue)

_updateRenderQueue

void _updateRenderQueue(IRenderQueue queue)
Overridden - see .

Specified by:
_updateRenderQueue in interface IMovableObject

getMovableType

java.lang.String getMovableType()
Overridden from

Specified by:
getMovableType in interface IMovableObject

getAnimationState

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


getAllAnimationStates

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


setDisplaySkeleton

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


getDisplaySkeleton

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


getManualLodLevel

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


getNumManualLodLevels

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


getCurrentLodIndex

int getCurrentLodIndex()
Returns the current LOD used to render


setMeshLodBias

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


setMaterialLodBias

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


setPolygonModeOverrideable

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


attachObjectToBone

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.


detachObjectFromBone

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.


detachObjectFromBone

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


detachAllObjectsFromBone

void detachAllObjectsFromBone()

getAttachedObjectIterator

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


getBoundingRadius

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

Specified by:
getBoundingRadius in interface IMovableObject

getWorldBoundingBox

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 IMovableObject
Specified by:
getWorldBoundingBox in interface IShadowCaster

getWorldBoundingSphere

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

Specified by:
getWorldBoundingSphere in interface IMovableObject

getEdgeList

IEdgeData getEdgeList()
Overridden member from .

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

hasEdgeList

boolean hasEdgeList()
Overridden member from .

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

getShadowVolumeRenderableIterator

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 IMovableObject
Specified by:
getShadowVolumeRenderableIterator in interface IShadowCaster

_getBoneMatrices

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


_getNumBoneMatrices

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


hasSkeleton

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


getSkeleton

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


isHardwareAnimationEnabled

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


_notifyAttached

void _notifyAttached(INode parent,
                     boolean isTagPoint)
Overridden from

Specified by:
_notifyAttached in interface IMovableObject

getSoftwareAnimationRequests

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


getSoftwareAnimationNormalsRequests

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


addSoftwareAnimationRequest

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


removeSoftwareAnimationRequest

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


shareSkeletonInstanceWith

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


hasVertexAnimation

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


stopSharingSkeletonInstance

void stopSharingSkeletonInstance()
Stops sharing the with other entities.


sharesSkeletonInstance

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


getSkeletonInstanceSharingSet

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


refreshAvailableAnimationState

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


_updateAnimation

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


_isAnimated

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


_isSkeletonAnimated

boolean _isSkeletonAnimated()
Tests if skeleton was animated.


_getSkelAnimVertexData

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


_getSoftwareVertexAnimVertexData

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


_getHardwareVertexAnimVertexData

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


_getSkelAnimTempBufferInfo

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


_getVertexAnimTempBufferInfo

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


getTypeFlags

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

Specified by:
getTypeFlags in interface IMovableObject

getVertexDataForBinding

IVertexData getVertexDataForBinding()

chooseVertexDataForBinding

Entity.VertexDataBindChoice chooseVertexDataForBinding(boolean hasVertexAnim)

_getBuffersMarkedForAnimation

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


_markBuffersUsedForAnimation

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


isInitialised

boolean isInitialised()
Has this been initialised yet?


_initialise

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


_deinitialise

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


backgroundLoadingComplete

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


visitRenderables

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 IMovableObject


Copyright © 2007 netAllied GmbH. All Rights Reserved.