|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.StaticGeometry
public class StaticGeometry
| Nested Class Summary | |
|---|---|
static class |
StaticGeometry.GeometryBucket
|
protected static class |
StaticGeometry.IndexRemap
|
static class |
StaticGeometry.LODBucket
|
static class |
StaticGeometry.MaterialBucket
|
static class |
StaticGeometry.OptimisedSubMeshGeometry
|
static class |
StaticGeometry.OptimisedSubMeshGeometryList
|
static class |
StaticGeometry.QueuedGeometry
|
static class |
StaticGeometry.QueuedGeometryList
|
static class |
StaticGeometry.QueuedSubMesh
|
static class |
StaticGeometry.QueuedSubMeshList
|
static class |
StaticGeometry.Region
|
static class |
StaticGeometry.RegionIterator
|
static class |
StaticGeometry.RegionMap
|
static class |
StaticGeometry.SubMeshGeometryLookup
|
static class |
StaticGeometry.SubMeshLodGeometryLink
|
static class |
StaticGeometry.SubMeshLodGeometryLinkList
|
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
StaticGeometry(InstancePointer p)
This constructor is public for internal useage only! |
protected |
StaticGeometry(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
StaticGeometry(ISceneManager owner,
java.lang.String name)
|
|
StaticGeometry(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| 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 |
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()
|
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 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 StaticGeometry(InstancePointer p)
protected StaticGeometry(InstancePointer p,
boolean remote)
public StaticGeometry(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()
public StaticGeometry(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 IStaticGeometry
public void addEntity(IEntity ent,
IVector3 position,
IQuaternion orientation,
IVector3 scale)
addEntity in interface IStaticGeometrypublic void addSceneNode(ISceneNode node)
addSceneNode in interface IStaticGeometrypublic void build()
build in interface IStaticGeometrypublic void destroy()
destroy in interface IStaticGeometrypublic void reset()
reset in interface IStaticGeometrypublic void setRenderingDistance(float dist)
setRenderingDistance in interface IStaticGeometrypublic float getRenderingDistance()
getRenderingDistance in interface IStaticGeometrypublic float getSquaredRenderingDistance()
getSquaredRenderingDistance in interface IStaticGeometrypublic void setVisible(boolean visible)
setVisible in interface IStaticGeometrypublic boolean isVisible()
isVisible in interface IStaticGeometrypublic void setCastShadows(boolean castShadows)
setCastShadows in interface IStaticGeometrypublic boolean getCastShadows()
getCastShadows in interface IStaticGeometrypublic void setRegionDimensions(IVector3 size)
setRegionDimensions in interface IStaticGeometrypublic IVector3 getRegionDimensions()
getRegionDimensions in interface IStaticGeometrypublic void setOrigin(IVector3 origin)
setOrigin in interface IStaticGeometrypublic IVector3 getOrigin()
getOrigin in interface IStaticGeometrypublic void setRenderQueueGroup(short queueID)
setRenderQueueGroup in interface IStaticGeometrypublic short getRenderQueueGroup()
getRenderQueueGroup in interface IStaticGeometry
public void visitRenderables(IRenderable.IVisitor visitor,
boolean debugRenderables)
visitRenderables in interface IStaticGeometrypublic void getRegionIterator(IStaticGeometry.IRegionIterator returnValue)
getRegionIterator in interface IStaticGeometrypublic void dump(java.lang.String filename)
dump in interface IStaticGeometry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||