org.ogre4j
Class RenderQueue

java.lang.Object
  extended by org.xbig.base.NativeObject
      extended by org.ogre4j.RenderQueue
All Implemented Interfaces:
IAllocatedObject<ISceneCtlAllocPolicy>, IRenderQueue, ISceneCtlAllocatedObject, INativeObject

public class RenderQueue
extends NativeObject
implements IRenderQueue


Nested Class Summary
static class RenderQueue.QueueGroupIterator
           
static class RenderQueue.RenderableListener
           
static class RenderQueue.RenderQueueGroupMap
           
 
Nested classes/interfaces inherited from interface org.ogre4j.IRenderQueue
IRenderQueue.IQueueGroupIterator, IRenderQueue.IRenderableListener, IRenderQueue.IRenderQueueGroupMap
 
Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  RenderQueue()
           
  RenderQueue(InstancePointer p)
          This constructor is public for internal useage only!
protected RenderQueue(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  RenderQueue(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 void _getQueueGroupIterator(IRenderQueue.IQueueGroupIterator returnValue)
          Internal method, returns an iterator for the queue groups.
 void addRenderable(IRenderable pRend)
          Add a renderable object to the queue.
 void addRenderable(IRenderable pRend, short groupId)
          Add a renderable object to the queue.
 void addRenderable(IRenderable pRend, short groupID, int priority)
          Add a renderable object to the queue.
 void clear(boolean destroyPassMaps)
          Empty the queue - should only be called by SceneManagers.
 void delete()
          Deletes the corresponding C++ object.
 void finalize()
           
 short getDefaultQueueGroup()
          Gets the current default queue group, which will be used for all renderable which do not specify which group they wish to be on.
 int getDefaultRenderablePriority()
          Gets the current default renderable priority, which will be used for all renderables which do not specify which priority they wish to use.
 IRenderQueueGroup getQueueGroup(short qid)
          Get a render queue group.
 IRenderQueue.IRenderableListener getRenderableListener()
           
 void setDefaultQueueGroup(short grp)
          Sets the current default queue group, which will be used for all renderable which do not specify which group they wish to be on.
 void setDefaultRenderablePriority(int priority)
          Sets the current default renderable priority, which will be used for all renderables which do not specify which priority they wish to use.
 void setRenderableListener(IRenderQueue.IRenderableListener listener)
          Set a renderable listener on the queue.
 void setShadowCastersCannotBeReceivers(boolean ind)
          Sets whether or not objects which cast shadows should be treated as never receiving shadows.
 void setSplitNoShadowPasses(boolean split)
          Sets whether or not the queue will split passes which have shadow receive turned off (in their parent material), which is needed when certain shadow techniques are used.
 void setSplitPassesByLightingType(boolean split)
          Sets whether or not the queue will split passes by their lighting type, ie ambient, per-light and decal.
 
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

RenderQueue

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


RenderQueue

protected RenderQueue(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.


RenderQueue

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

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()

RenderQueue

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

clear

public void clear(boolean destroyPassMaps)
Empty the queue - should only be called by SceneManagers.

Specified by:
clear in interface IRenderQueue

getQueueGroup

public IRenderQueueGroup getQueueGroup(short qid)
Get a render queue group.

Specified by:
getQueueGroup in interface IRenderQueue

addRenderable

public void addRenderable(IRenderable pRend,
                          short groupID,
                          int priority)
Add a renderable object to the queue.

Specified by:
addRenderable in interface IRenderQueue

addRenderable

public void addRenderable(IRenderable pRend,
                          short groupId)
Add a renderable object to the queue.

Specified by:
addRenderable in interface IRenderQueue

addRenderable

public void addRenderable(IRenderable pRend)
Add a renderable object to the queue.

Specified by:
addRenderable in interface IRenderQueue

getDefaultQueueGroup

public short getDefaultQueueGroup()
Gets the current default queue group, which will be used for all renderable which do not specify which group they wish to be on.

Specified by:
getDefaultQueueGroup in interface IRenderQueue

setDefaultRenderablePriority

public void setDefaultRenderablePriority(int priority)
Sets the current default renderable priority, which will be used for all renderables which do not specify which priority they wish to use.

Specified by:
setDefaultRenderablePriority in interface IRenderQueue

getDefaultRenderablePriority

public int getDefaultRenderablePriority()
Gets the current default renderable priority, which will be used for all renderables which do not specify which priority they wish to use.

Specified by:
getDefaultRenderablePriority in interface IRenderQueue

setDefaultQueueGroup

public void setDefaultQueueGroup(short grp)
Sets the current default queue group, which will be used for all renderable which do not specify which group they wish to be on.

Specified by:
setDefaultQueueGroup in interface IRenderQueue

_getQueueGroupIterator

public void _getQueueGroupIterator(IRenderQueue.IQueueGroupIterator returnValue)
Internal method, returns an iterator for the queue groups.

Specified by:
_getQueueGroupIterator in interface IRenderQueue

setSplitPassesByLightingType

public void setSplitPassesByLightingType(boolean split)
Sets whether or not the queue will split passes by their lighting type, ie ambient, per-light and decal.

Specified by:
setSplitPassesByLightingType in interface IRenderQueue

setSplitNoShadowPasses

public void setSplitNoShadowPasses(boolean split)
Sets whether or not the queue will split passes which have shadow receive turned off (in their parent material), which is needed when certain shadow techniques are used.

Specified by:
setSplitNoShadowPasses in interface IRenderQueue

setShadowCastersCannotBeReceivers

public void setShadowCastersCannotBeReceivers(boolean ind)
Sets whether or not objects which cast shadows should be treated as never receiving shadows.

Specified by:
setShadowCastersCannotBeReceivers in interface IRenderQueue

setRenderableListener

public void setRenderableListener(IRenderQueue.IRenderableListener listener)
Set a renderable listener on the queue.

Specified by:
setRenderableListener in interface IRenderQueue

getRenderableListener

public IRenderQueue.IRenderableListener getRenderableListener()
Specified by:
getRenderableListener in interface IRenderQueue


Copyright © 2007 netAllied GmbH. All Rights Reserved.