org.ogre4j
Class StaticGeometry.LODBucket

java.lang.Object
  extended by org.xbig.base.NativeObject
      extended by org.ogre4j.StaticGeometry.LODBucket
All Implemented Interfaces:
IAllocatedObject<IGeometryAllocPolicy>, IGeometryAllocatedObject, IStaticGeometry.ILODBucket, INativeObject
Enclosing class:
StaticGeometry

public static class StaticGeometry.LODBucket
extends NativeObject
implements IStaticGeometry.ILODBucket


Nested Class Summary
static class StaticGeometry.LODBucket.MaterialBucketMap
           
static class StaticGeometry.LODBucket.MaterialIterator
           
 
Nested classes/interfaces inherited from interface org.ogre4j.IStaticGeometry.ILODBucket
IStaticGeometry.ILODBucket.IMaterialBucketMap, IStaticGeometry.ILODBucket.IMaterialIterator
 
Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  StaticGeometry.LODBucket(InstancePointer p)
          This constructor is public for internal useage only!
protected StaticGeometry.LODBucket(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  StaticGeometry.LODBucket(IStaticGeometry.IRegion parent, int lod, float lodDist)
           
  StaticGeometry.LODBucket(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 void addRenderables(IRenderQueue queue, short group, float camSquaredDistance)
           
 void assign(IStaticGeometry.IQueuedSubMesh qsm, int atLod)
           
 void build(boolean stencilShadows)
           
 void delete()
          Deletes the corresponding C++ object.
 void dump(Iofstream of)
           
 void finalize()
           
 int getLod()
           
 void getMaterialIterator(IStaticGeometry.ILODBucket.IMaterialIterator returnValue)
           
 IStaticGeometry.IRegion getParent()
           
 float getSquaredDistance()
           
 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

StaticGeometry.LODBucket

public StaticGeometry.LODBucket(InstancePointer p)
This constructor is public for internal useage only! Do not use it!


StaticGeometry.LODBucket

protected StaticGeometry.LODBucket(InstancePointer p,
                                   boolean remote)
Creates a Java wrapper object for an existing C++ object. If remote is set to 'true' this object cannot be deleted in Java.


StaticGeometry.LODBucket

public StaticGeometry.LODBucket(WithoutNativeObject val)
Allows creation of Java objects without C++ objects.

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()

StaticGeometry.LODBucket

public StaticGeometry.LODBucket(IStaticGeometry.IRegion parent,
                                int lod,
                                float lodDist)
Method Detail

delete

public void delete()
Description copied from interface: INativeObject
Deletes the corresponding C++ object.

Subclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!

Specified by:
delete in interface INativeObject
Specified by:
delete in class NativeObject
See Also:
#remote

finalize

public void finalize()
Overrides:
finalize in class NativeObject

getParent

public IStaticGeometry.IRegion getParent()
Specified by:
getParent in interface IStaticGeometry.ILODBucket

getLod

public int getLod()
Specified by:
getLod in interface IStaticGeometry.ILODBucket

getSquaredDistance

public float getSquaredDistance()
Specified by:
getSquaredDistance in interface IStaticGeometry.ILODBucket

assign

public void assign(IStaticGeometry.IQueuedSubMesh qsm,
                   int atLod)
Specified by:
assign in interface IStaticGeometry.ILODBucket

build

public void build(boolean stencilShadows)
Specified by:
build in interface IStaticGeometry.ILODBucket

addRenderables

public void addRenderables(IRenderQueue queue,
                           short group,
                           float camSquaredDistance)
Specified by:
addRenderables in interface IStaticGeometry.ILODBucket

getMaterialIterator

public void getMaterialIterator(IStaticGeometry.ILODBucket.IMaterialIterator returnValue)
Specified by:
getMaterialIterator in interface IStaticGeometry.ILODBucket

dump

public void dump(Iofstream of)
Specified by:
dump in interface IStaticGeometry.ILODBucket

visitRenderables

public void visitRenderables(IRenderable.IVisitor visitor,
                             boolean debugRenderables)
Specified by:
visitRenderables in interface IStaticGeometry.ILODBucket


Copyright © 2007 netAllied GmbH. All Rights Reserved.