|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.InstancedGeometry
public class InstancedGeometry
| Nested Class Summary | |
|---|---|
static class |
InstancedGeometry.BatchInstance
|
static class |
InstancedGeometry.BatchInstanceIterator
|
static class |
InstancedGeometry.BatchInstanceMap
|
static class |
InstancedGeometry.GeometryBucket
|
protected static class |
InstancedGeometry.IndexRemap
|
static class |
InstancedGeometry.InstancedObject
|
static class |
InstancedGeometry.LODBucket
|
static class |
InstancedGeometry.MaterialBucket
|
static class |
InstancedGeometry.OptimisedSubMeshGeometry
|
static class |
InstancedGeometry.OptimisedSubMeshGeometryList
|
static class |
InstancedGeometry.QueuedGeometry
|
static class |
InstancedGeometry.QueuedGeometryList
|
static class |
InstancedGeometry.QueuedSubMesh
|
static class |
InstancedGeometry.QueuedSubMeshList
|
static class |
InstancedGeometry.QueuedSubMeshOriginList
|
static class |
InstancedGeometry.RenderOperationVector
|
static class |
InstancedGeometry.SubMeshGeometryLookup
|
static class |
InstancedGeometry.SubMeshLodGeometryLink
|
static class |
InstancedGeometry.SubMeshLodGeometryLinkList
|
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
InstancedGeometry(InstancePointer p)
This constructor is public for internal useage only! |
protected |
InstancedGeometry(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
InstancedGeometry(ISceneManager owner,
java.lang.String name)
|
|
InstancedGeometry(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| 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 |
delete()
Deletes the corresponding C++ object. |
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. |
void |
finalize()
|
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 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 |
|---|
public InstancedGeometry(InstancePointer p)
protected InstancedGeometry(InstancePointer p,
boolean remote)
public InstancedGeometry(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()
public InstancedGeometry(ISceneManager owner,
java.lang.String name)
| Method Detail |
|---|
public void delete()
INativeObjectSubclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!
delete in interface INativeObjectdelete in class NativeObject#remotepublic void finalize()
finalize in class NativeObjectpublic java.lang.String getName()
getName in interface IInstancedGeometry
public void addEntity(IEntity ent,
IVector3 position,
IQuaternion orientation,
IVector3 scale)
addEntity in interface IInstancedGeometrypublic void addSceneNode(ISceneNode node)
addSceneNode in interface IInstancedGeometrypublic void build()
build in interface IInstancedGeometrypublic void addBatchInstance()
addBatchInstance in interface IInstancedGeometrypublic void destroy()
destroy in interface IInstancedGeometrypublic void reset()
reset in interface IInstancedGeometrypublic void setRenderingDistance(float dist)
setRenderingDistance in interface IInstancedGeometrypublic float getRenderingDistance()
getRenderingDistance in interface IInstancedGeometrypublic float getSquaredRenderingDistance()
getSquaredRenderingDistance in interface IInstancedGeometrypublic void setVisible(boolean visible)
setVisible in interface IInstancedGeometrypublic boolean isVisible()
isVisible in interface IInstancedGeometrypublic void setCastShadows(boolean castShadows)
setCastShadows in interface IInstancedGeometrypublic boolean getCastShadows()
getCastShadows in interface IInstancedGeometrypublic void setBatchInstanceDimensions(IVector3 size)
setBatchInstanceDimensions in interface IInstancedGeometrypublic IVector3 getBatchInstanceDimensions()
getBatchInstanceDimensions in interface IInstancedGeometrypublic void setOrigin(IVector3 origin)
setOrigin in interface IInstancedGeometrypublic IVector3 getOrigin()
getOrigin in interface IInstancedGeometrypublic void setRenderQueueGroup(short queueID)
setRenderQueueGroup in interface IInstancedGeometrypublic short getRenderQueueGroup()
getRenderQueueGroup in interface IInstancedGeometrypublic void getBatchInstanceIterator(IInstancedGeometry.IBatchInstanceIterator returnValue)
getBatchInstanceIterator in interface IInstancedGeometrypublic IInstancedGeometry.IRenderOperationVector getRenderOperationVector()
getRenderOperationVector in interface IInstancedGeometry
public void visitRenderables(IRenderable.IVisitor visitor,
boolean debugRenderables)
visitRenderables in interface IInstancedGeometrypublic void dump(java.lang.String filename)
dump in interface IInstancedGeometrypublic ISkeletonInstance getBaseSkeletonInstance()
getBaseSkeletonInstance in interface IInstancedGeometrypublic void getBaseSkeleton(ISkeletonPtr returnValue)
getBaseSkeleton in interface IInstancedGeometrypublic IAnimationStateSet getBaseAnimationState()
getBaseAnimationState in interface IInstancedGeometrypublic long getObjectCount()
getObjectCount in interface IInstancedGeometry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||