org.ogre4j
Interface IStaticGeometry

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

public interface IStaticGeometry
extends INativeObject, IGeometryAllocatedObject


Nested Class Summary
static interface IStaticGeometry.IGeometryBucket
           
static interface IStaticGeometry.IIndexRemap
           
static interface IStaticGeometry.ILODBucket
           
static interface IStaticGeometry.IMaterialBucket
           
static interface IStaticGeometry.IOptimisedSubMeshGeometry
           
static interface IStaticGeometry.IOptimisedSubMeshGeometryList
           
static interface IStaticGeometry.IQueuedGeometry
           
static interface IStaticGeometry.IQueuedGeometryList
           
static interface IStaticGeometry.IQueuedSubMesh
           
static interface IStaticGeometry.IQueuedSubMeshList
           
static interface IStaticGeometry.IRegion
           
static interface IStaticGeometry.IRegionIterator
           
static interface IStaticGeometry.IRegionMap
           
static interface IStaticGeometry.ISubMeshGeometryLookup
           
static interface IStaticGeometry.ISubMeshLodGeometryLink
           
static interface IStaticGeometry.ISubMeshLodGeometryLinkList
           
 
Method Summary
 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.
 boolean getCastShadows()
           
 java.lang.String getName()
           
 IVector3 getOrigin()
          Gets the origin of this geometry.
 IVector3 getRegionDimensions()
          Gets the size of a single batch of geometry.
 void getRegionIterator(IStaticGeometry.IRegionIterator returnValue)
           
 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.
 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 setCastShadows(boolean castShadows)
          Sets whether this geometry should cast shadows.
 void setOrigin(IVector3 origin)
          Sets the origin of the geometry.
 void setRegionDimensions(IVector3 size)
          Sets the size of a single region of 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.


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()

setRegionDimensions

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


getRegionDimensions

IVector3 getRegionDimensions()
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.


visitRenderables

void visitRenderables(IRenderable.IVisitor visitor,
                      boolean debugRenderables)

getRegionIterator

void getRegionIterator(IStaticGeometry.IRegionIterator returnValue)

dump

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



Copyright © 2007 netAllied GmbH. All Rights Reserved.