org.ogre4j
Class RenderPriorityGroup

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

public class RenderPriorityGroup
extends NativeObject
implements IRenderPriorityGroup


Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  RenderPriorityGroup(InstancePointer p)
          This constructor is public for internal useage only!
protected RenderPriorityGroup(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  RenderPriorityGroup(IRenderQueueGroup parent, boolean splitPassesByLightingType, boolean splitNoShadowPasses, boolean shadowCastersNotReceivers)
           
  RenderPriorityGroup(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)
          Add a renderable to this group.
 void clear()
          Clears this group of renderables.
 void defaultOrganisationMode()
          Set the sorting / grouping mode for the solids in this group to the default.
 void delete()
          Deletes the corresponding C++ object.
 void finalize()
           
 IQueuedRenderableCollection getSolidsBasic()
          Get the collection of basic solids currently queued, this includes all solids when there are no shadows, or all solids which have shadow receiving enabled when using modulative shadows, or all ambient passes of solids which have shadow receive enabled for additive shadows.
 IQueuedRenderableCollection getSolidsDecal()
          Get the collection of solids currently queued for decal passes (only applicable in additive shadow modes).
 IQueuedRenderableCollection getSolidsDiffuseSpecular()
          Get the collection of solids currently queued per light (only applicable in additive shadow modes).
 IQueuedRenderableCollection getSolidsNoShadowReceive()
          Get the collection of solids for which shadow receipt is disabled (only applicable when shadows are enabled).
 IQueuedRenderableCollection getTransparents()
          Get the collection of transparent objects currently queued
 IQueuedRenderableCollection getTransparentsUnsorted()
          Get the collection of transparent objects currently queued
 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 setSplitNoShadowPasses(boolean split)
          Sets whether or not passes which have shadow receive disabled should be separated.
 void setSplitPassesByLightingType(boolean split)
          Sets whether or not the queue will split passes by their lighting type, ie ambient, per-light and decal.
 void sort(ICamera cam)
          Sorts the objects which have been added to the queue; transparent objects by their depth in relation to the passed in .
 
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

RenderPriorityGroup

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


RenderPriorityGroup

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


RenderPriorityGroup

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

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()

RenderPriorityGroup

public RenderPriorityGroup(IRenderQueueGroup 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

getSolidsBasic

public IQueuedRenderableCollection getSolidsBasic()
Get the collection of basic solids currently queued, this includes all solids when there are no shadows, or all solids which have shadow receiving enabled when using modulative shadows, or all ambient passes of solids which have shadow receive enabled for additive shadows.

Specified by:
getSolidsBasic in interface IRenderPriorityGroup

getSolidsDiffuseSpecular

public IQueuedRenderableCollection getSolidsDiffuseSpecular()
Get the collection of solids currently queued per light (only applicable in additive shadow modes).

Specified by:
getSolidsDiffuseSpecular in interface IRenderPriorityGroup

getSolidsDecal

public IQueuedRenderableCollection getSolidsDecal()
Get the collection of solids currently queued for decal passes (only applicable in additive shadow modes).

Specified by:
getSolidsDecal in interface IRenderPriorityGroup

getSolidsNoShadowReceive

public IQueuedRenderableCollection getSolidsNoShadowReceive()
Get the collection of solids for which shadow receipt is disabled (only applicable when shadows are enabled).

Specified by:
getSolidsNoShadowReceive in interface IRenderPriorityGroup

getTransparentsUnsorted

public IQueuedRenderableCollection getTransparentsUnsorted()
Get the collection of transparent objects currently queued

Specified by:
getTransparentsUnsorted in interface IRenderPriorityGroup

getTransparents

public IQueuedRenderableCollection getTransparents()
Get the collection of transparent objects currently queued

Specified by:
getTransparents in interface IRenderPriorityGroup

resetOrganisationModes

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

Specified by:
resetOrganisationModes in interface IRenderPriorityGroup

addOrganisationMode

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

Specified by:
addOrganisationMode in interface IRenderPriorityGroup

defaultOrganisationMode

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

Specified by:
defaultOrganisationMode in interface IRenderPriorityGroup

addRenderable

public void addRenderable(IRenderable pRend,
                          ITechnique pTech)
Add a renderable to this group.

Specified by:
addRenderable in interface IRenderPriorityGroup

sort

public void sort(ICamera cam)
Sorts the objects which have been added to the queue; transparent objects by their depth in relation to the passed in .

Specified by:
sort in interface IRenderPriorityGroup

clear

public void clear()
Clears this group of renderables.

Specified by:
clear in interface IRenderPriorityGroup

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 IRenderPriorityGroup

setSplitNoShadowPasses

public void setSplitNoShadowPasses(boolean split)
Sets whether or not passes which have shadow receive disabled should be separated.

Specified by:
setSplitNoShadowPasses in interface IRenderPriorityGroup

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 IRenderPriorityGroup


Copyright © 2007 netAllied GmbH. All Rights Reserved.