org.ogre4j
Class InstancedGeometry.LODBucket

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

public static class InstancedGeometry.LODBucket
extends NativeObject
implements IInstancedGeometry.ILODBucket


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

InstancedGeometry.LODBucket

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


InstancedGeometry.LODBucket

protected InstancedGeometry.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.


InstancedGeometry.LODBucket

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

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()

InstancedGeometry.LODBucket

public InstancedGeometry.LODBucket(IInstancedGeometry.IBatchInstance 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 IInstancedGeometry.IBatchInstance getParent()
Specified by:
getParent in interface IInstancedGeometry.ILODBucket

getLod

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

getSquaredDistance

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

assign

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

build

public void build()
Specified by:
build in interface IInstancedGeometry.ILODBucket

addRenderables

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

getMaterialIterator

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

dump

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

updateContainers

public void updateContainers(IInstancedGeometry.IMaterialBucket bucket,
                             StringPointer name)
Specified by:
updateContainers in interface IInstancedGeometry.ILODBucket

visitRenderables

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


Copyright © 2007 netAllied GmbH. All Rights Reserved.