org.ogre4j
Class RenderQueueGroup

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

public class RenderQueueGroup
extends NativeObject
implements IRenderQueueGroup


Nested Class Summary
static class RenderQueueGroup.PriorityMap
           
static class RenderQueueGroup.PriorityMapIterator
           
 
Nested classes/interfaces inherited from interface org.ogre4j.IRenderQueueGroup
IRenderQueueGroup.IPriorityMap, IRenderQueueGroup.IPriorityMapIterator
 
Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  RenderQueueGroup(InstancePointer p)
          This constructor is public for internal useage only!
protected RenderQueueGroup(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  RenderQueueGroup(IRenderQueue parent, boolean splitPassesByLightingType, boolean splitNoShadowPasses, boolean shadowCastersNotReceivers)
           
  RenderQueueGroup(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 void addOrganisationMode(QueuedRenderableCollection.OrganisationMode om)
          Add a required sorting / grouping mode for the solids in this group.
 void addRenderable(IRenderable pRend, ITechnique pTech, int priority)
          Add a renderable to this group, with the given priority.
 void clear(boolean destroy)
          Clears this group of renderables.
 void defaultOrganisationMode()
          Setthe sorting / grouping mode for the solids in this group to the default.
 void delete()
          Deletes the corresponding C++ object.
 void finalize()
           
 void getIterator(IRenderQueueGroup.IPriorityMapIterator returnValue)
          Get an iterator for browsing through child contents.
 boolean getShadowsEnabled()
          Are shadows enabled for this queue?
 void resetOrganisationModes()
          Reset the organisation modes required for the solids in this group.
 void setShadowCastersCannotBeReceivers(boolean ind)
          Sets whether or not objects which cast shadows should be treated as never receiving shadows.
 void setShadowsEnabled(boolean enabled)
          Indicate whether a given queue group will be doing any shadow setup.
 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

RenderQueueGroup

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


RenderQueueGroup

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


RenderQueueGroup

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

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()

RenderQueueGroup

public RenderQueueGroup(IRenderQueue parent,
                        boolean splitPassesByLightingType,
                        boolean splitNoShadowPasses,
                        boolean shadowCastersNotReceivers)
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

getIterator

public void getIterator(IRenderQueueGroup.IPriorityMapIterator returnValue)
Get an iterator for browsing through child contents.

Specified by:
getIterator in interface IRenderQueueGroup

addRenderable

public void addRenderable(IRenderable pRend,
                          ITechnique pTech,
                          int priority)
Add a renderable to this group, with the given priority.

Specified by:
addRenderable in interface IRenderQueueGroup

clear

public void clear(boolean destroy)
Clears this group of renderables.

Specified by:
clear in interface IRenderQueueGroup

setShadowsEnabled

public void setShadowsEnabled(boolean enabled)
Indicate whether a given queue group will be doing any shadow setup.

Specified by:
setShadowsEnabled in interface IRenderQueueGroup

getShadowsEnabled

public boolean getShadowsEnabled()
Are shadows enabled for this queue?

Specified by:
getShadowsEnabled in interface IRenderQueueGroup

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 IRenderQueueGroup

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 IRenderQueueGroup

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 IRenderQueueGroup

resetOrganisationModes

public void resetOrganisationModes()
Reset the organisation modes required for the solids in this group.

Specified by:
resetOrganisationModes in interface IRenderQueueGroup

addOrganisationMode

public void addOrganisationMode(QueuedRenderableCollection.OrganisationMode om)
Add a required sorting / grouping mode for the solids in this group.

Specified by:
addOrganisationMode in interface IRenderQueueGroup

defaultOrganisationMode

public void defaultOrganisationMode()
Setthe sorting / grouping mode for the solids in this group to the default.

Specified by:
defaultOrganisationMode in interface IRenderQueueGroup


Copyright © 2007 netAllied GmbH. All Rights Reserved.