org.ogre4j
Interface IInstancedGeometry

All Superinterfaces:
IAllocatedObject<IGeometryAllocPolicy>, IGeometryAllocatedObject, INativeObject
All Known Implementing Classes:
InstancedGeometry

public interface IInstancedGeometry
extends INativeObject, IGeometryAllocatedObject


Nested Class Summary
static interface IInstancedGeometry.IBatchInstance
           
static interface IInstancedGeometry.IBatchInstanceIterator
           
static interface IInstancedGeometry.IBatchInstanceMap
           
static interface IInstancedGeometry.IGeometryBucket
           
static interface IInstancedGeometry.IIndexRemap
           
static interface IInstancedGeometry.IInstancedObject
           
static interface IInstancedGeometry.ILODBucket
           
static interface IInstancedGeometry.IMaterialBucket
           
static interface IInstancedGeometry.IOptimisedSubMeshGeometry
           
static interface IInstancedGeometry.IOptimisedSubMeshGeometryList
           
static interface IInstancedGeometry.IQueuedGeometry
           
static interface IInstancedGeometry.IQueuedGeometryList
           
static interface IInstancedGeometry.IQueuedSubMesh
           
static interface IInstancedGeometry.IQueuedSubMeshList
           
static interface IInstancedGeometry.IQueuedSubMeshOriginList
           
static interface IInstancedGeometry.IRenderOperationVector
           
static interface IInstancedGeometry.ISubMeshGeometryLookup
           
static interface IInstancedGeometry.ISubMeshLodGeometryLink
           
static interface IInstancedGeometry.ISubMeshLodGeometryLinkList
           
 
Method Summary
 void addBatchInstance()
          Add a new batch instance
 void addEntity(IEntity ent, IVector3 position, IQuaternion orientation, IVector3 scale)
          Adds an to the static geometry.
 void addSceneNode(ISceneNode node)
          Adds all the objects attached to a and all it's children to the static geometry.
 void build()
          Build the geometry.
 void destroy()
          Destroys all the built geometry state (reverse of build).
 void dump(java.lang.String filename)
          Dump the contents of this to a file for diagnostic purposes.
 IAnimationStateSet getBaseAnimationState()
           
 void getBaseSkeleton(ISkeletonPtr returnValue)
           
 ISkeletonInstance getBaseSkeletonInstance()
           
 IVector3 getBatchInstanceDimensions()
          Gets the size of a single batch of geometry.
 void getBatchInstanceIterator(IInstancedGeometry.IBatchInstanceIterator returnValue)
           
 boolean getCastShadows()
           
 java.lang.String getName()
           
 long getObjectCount()
           
 IVector3 getOrigin()
          Gets the origin of this geometry.
 float getRenderingDistance()
          Gets the distance at which batches are no longer rendered.
 IInstancedGeometry.IRenderOperationVector getRenderOperationVector()
           
 short getRenderQueueGroup()
          Gets the queue group for this entity, see setRenderQueueGroup for full details.
 float getSquaredRenderingDistance()
          Gets the squared distance at which batches are no longer rendered.
 boolean isVisible()
          Are the batches visible?
 void reset()
          Clears any of the entities / nodes added to this geometry and destroys anything which has already been built.
 void setBatchInstanceDimensions(IVector3 size)
          Sets the size of a single of geometry.
 void setCastShadows(boolean castShadows)
          Sets whether this geometry should cast shadows.
 void setOrigin(IVector3 origin)
          Sets the origin of the geometry.
 void setRenderingDistance(float dist)
          Sets the distance at which batches are no longer rendered.
 void setRenderQueueGroup(short queueID)
          Sets the render queue group this object will be rendered through.
 void setVisible(boolean visible)
          Hides or shows all the batches.
 void visitRenderables(IRenderable.IVisitor visitor, boolean debugRenderables)
           
 
Methods inherited from interface org.xbig.base.INativeObject
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Method Detail

getName

java.lang.String getName()

addEntity

void addEntity(IEntity ent,
               IVector3 position,
               IQuaternion orientation,
               IVector3 scale)
Adds an to the static geometry.


addSceneNode

void addSceneNode(ISceneNode node)
Adds all the objects attached to a and all it's children to the static geometry.


build

void build()
Build the geometry.


addBatchInstance

void addBatchInstance()
Add a new batch instance


destroy

void destroy()
Destroys all the built geometry state (reverse of build).


reset

void reset()
Clears any of the entities / nodes added to this geometry and destroys anything which has already been built.


setRenderingDistance

void setRenderingDistance(float dist)
Sets the distance at which batches are no longer rendered.


getRenderingDistance

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


getSquaredRenderingDistance

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


setVisible

void setVisible(boolean visible)
Hides or shows all the batches.


isVisible

boolean isVisible()
Are the batches visible?


setCastShadows

void setCastShadows(boolean castShadows)
Sets whether this geometry should cast shadows.


getCastShadows

boolean getCastShadows()

setBatchInstanceDimensions

void setBatchInstanceDimensions(IVector3 size)
Sets the size of a single of geometry.


getBatchInstanceDimensions

IVector3 getBatchInstanceDimensions()
Gets the size of a single batch of geometry.


setOrigin

void setOrigin(IVector3 origin)
Sets the origin of the geometry.


getOrigin

IVector3 getOrigin()
Gets the origin of this geometry.


setRenderQueueGroup

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


getRenderQueueGroup

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


getBatchInstanceIterator

void getBatchInstanceIterator(IInstancedGeometry.IBatchInstanceIterator returnValue)

getRenderOperationVector

IInstancedGeometry.IRenderOperationVector getRenderOperationVector()

visitRenderables

void visitRenderables(IRenderable.IVisitor visitor,
                      boolean debugRenderables)

dump

void dump(java.lang.String filename)
Dump the contents of this to a file for diagnostic purposes.


getBaseSkeletonInstance

ISkeletonInstance getBaseSkeletonInstance()

getBaseSkeleton

void getBaseSkeleton(ISkeletonPtr returnValue)

getBaseAnimationState

IAnimationStateSet getBaseAnimationState()

getObjectCount

long getObjectCount()


Copyright © 2007 netAllied GmbH. All Rights Reserved.