org.ogre4j
Class ParticleSystemRenderer

java.lang.Object
  extended by org.xbig.base.NativeObject
      extended by org.ogre4j.ParticleSystemRenderer
All Implemented Interfaces:
IAllocatedObject<ISceneObjAllocPolicy>, IParticleSystemRenderer, ISceneObjAllocatedObject, IStringInterface, INativeObject

public class ParticleSystemRenderer
extends NativeObject
implements IParticleSystemRenderer


Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  ParticleSystemRenderer(InstancePointer p)
          This constructor is public for internal useage only!
protected ParticleSystemRenderer(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  ParticleSystemRenderer(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 IParticleVisualData _createVisualData()
          Create a new instance for attachment to a particle.
 void _destroyVisualData(IParticleVisualData vis)
          Destroy a instance.
 SortMode _getSortMode()
          Gets the desired particles sort mode of this renderer
 void _notifyAttached(INode parent, boolean isTagPoint)
          Delegated to by
 void _notifyCurrentCamera(ICamera cam)
          Delegated to by
 void _notifyDefaultDimensions(float width, float height)
          Tells the renderer that the particle default size has changed
 void _notifyParticleCleared(Ilist<IParticle> currentParticles)
          Optional callback notified when particles cleared
 void _notifyParticleEmitted(IParticle particle)
          Optional callback notified when particle emitted
 void _notifyParticleExpired(IParticle particle)
          Optional callback notified when particle expired
 void _notifyParticleMoved(Ilist<IParticle> currentParticles)
          Optional callback notified when particles moved
 void _notifyParticleQuota(int quota)
          Tells the renderer that the particle quota has changed
 void _notifyParticleResized()
          Optional callback notified when particles are resized individually
 void _notifyParticleRotated()
          Optional callback notified when particles are rotated
 void _setMaterial(IMaterialPtr mat)
          Sets the material this renderer must use; called by .
 void _updateRenderQueue(IRenderQueue queue, Ilist<IParticle> currentParticles, boolean cullIndividually)
          Delegated to by
static void cleanupDictionary()
          Cleans up the static 'msDictionary' required to reset , otherwise the containers are left with invalid pointers, which will lead to a crash as soon as one of the implementers (e.g. ) initializes.
 void copyParametersTo(IStringInterface dest)
          Method for copying this object's parameters to another object.
 void delete()
          Deletes the corresponding C++ object.
 void finalize()
           
 IParamDictionary getParamDictionary_const()
           
 IParamDictionary getParamDictionary()
          Retrieves the parameter dictionary for this class.
 java.lang.String getParameter(java.lang.String name)
          Generic parameter retrieval method.
 IParameterList getParameters()
          Retrieves a list of parameters valid for this object.
 java.lang.String getType()
          Gets the type of this renderer - must be implemented by subclasses
 void setKeepParticlesInLocalSpace(boolean keepLocal)
          Setting carried over from .
 boolean setParameter(java.lang.String name, java.lang.String value)
          Generic parameter setting method.
 void setParameterList(INameValuePairList paramList)
          Generic multiple parameter setting method.
 void setRenderQueueGroup(short queueID)
          Sets which render queue group this renderer should target with it's output.
 void visitRenderables(IRenderable.IVisitor visitor, boolean debugRenderables)
          Required method to allow the renderer to communicate the Renderables it will be using to render the system to a visitor.
 
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

ParticleSystemRenderer

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


ParticleSystemRenderer

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


ParticleSystemRenderer

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

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()
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

getType

public java.lang.String getType()
Gets the type of this renderer - must be implemented by subclasses

Specified by:
getType in interface IParticleSystemRenderer

_updateRenderQueue

public void _updateRenderQueue(IRenderQueue queue,
                               Ilist<IParticle> currentParticles,
                               boolean cullIndividually)
Delegated to by

Specified by:
_updateRenderQueue in interface IParticleSystemRenderer

_setMaterial

public void _setMaterial(IMaterialPtr mat)
Sets the material this renderer must use; called by .

Specified by:
_setMaterial in interface IParticleSystemRenderer

_notifyCurrentCamera

public void _notifyCurrentCamera(ICamera cam)
Delegated to by

Specified by:
_notifyCurrentCamera in interface IParticleSystemRenderer

_notifyAttached

public void _notifyAttached(INode parent,
                            boolean isTagPoint)
Delegated to by

Specified by:
_notifyAttached in interface IParticleSystemRenderer

_notifyParticleRotated

public void _notifyParticleRotated()
Optional callback notified when particles are rotated

Specified by:
_notifyParticleRotated in interface IParticleSystemRenderer

_notifyParticleResized

public void _notifyParticleResized()
Optional callback notified when particles are resized individually

Specified by:
_notifyParticleResized in interface IParticleSystemRenderer

_notifyParticleQuota

public void _notifyParticleQuota(int quota)
Tells the renderer that the particle quota has changed

Specified by:
_notifyParticleQuota in interface IParticleSystemRenderer

_notifyDefaultDimensions

public void _notifyDefaultDimensions(float width,
                                     float height)
Tells the renderer that the particle default size has changed

Specified by:
_notifyDefaultDimensions in interface IParticleSystemRenderer

_notifyParticleEmitted

public void _notifyParticleEmitted(IParticle particle)
Optional callback notified when particle emitted

Specified by:
_notifyParticleEmitted in interface IParticleSystemRenderer

_notifyParticleExpired

public void _notifyParticleExpired(IParticle particle)
Optional callback notified when particle expired

Specified by:
_notifyParticleExpired in interface IParticleSystemRenderer

_notifyParticleMoved

public void _notifyParticleMoved(Ilist<IParticle> currentParticles)
Optional callback notified when particles moved

Specified by:
_notifyParticleMoved in interface IParticleSystemRenderer

_notifyParticleCleared

public void _notifyParticleCleared(Ilist<IParticle> currentParticles)
Optional callback notified when particles cleared

Specified by:
_notifyParticleCleared in interface IParticleSystemRenderer

_createVisualData

public IParticleVisualData _createVisualData()
Create a new instance for attachment to a particle.

Specified by:
_createVisualData in interface IParticleSystemRenderer

_destroyVisualData

public void _destroyVisualData(IParticleVisualData vis)
Destroy a instance.

Specified by:
_destroyVisualData in interface IParticleSystemRenderer

setRenderQueueGroup

public void setRenderQueueGroup(short queueID)
Sets which render queue group this renderer should target with it's output.

Specified by:
setRenderQueueGroup in interface IParticleSystemRenderer

setKeepParticlesInLocalSpace

public void setKeepParticlesInLocalSpace(boolean keepLocal)
Setting carried over from .

Specified by:
setKeepParticlesInLocalSpace in interface IParticleSystemRenderer

_getSortMode

public SortMode _getSortMode()
Gets the desired particles sort mode of this renderer

Specified by:
_getSortMode in interface IParticleSystemRenderer

visitRenderables

public void visitRenderables(IRenderable.IVisitor visitor,
                             boolean debugRenderables)
Required method to allow the renderer to communicate the Renderables it will be using to render the system to a visitor.

Specified by:
visitRenderables in interface IParticleSystemRenderer

getParamDictionary

public IParamDictionary getParamDictionary()
Retrieves the parameter dictionary for this class.

Specified by:
getParamDictionary in interface IStringInterface

getParamDictionary_const

public IParamDictionary getParamDictionary_const()
Specified by:
getParamDictionary_const in interface IStringInterface

getParameters

public IParameterList getParameters()
Retrieves a list of parameters valid for this object.

Specified by:
getParameters in interface IStringInterface

setParameter

public boolean setParameter(java.lang.String name,
                            java.lang.String value)
Generic parameter setting method.

Specified by:
setParameter in interface IStringInterface

setParameterList

public void setParameterList(INameValuePairList paramList)
Generic multiple parameter setting method.

Specified by:
setParameterList in interface IStringInterface

getParameter

public java.lang.String getParameter(java.lang.String name)
Generic parameter retrieval method.

Specified by:
getParameter in interface IStringInterface

copyParametersTo

public void copyParametersTo(IStringInterface dest)
Method for copying this object's parameters to another object.

Specified by:
copyParametersTo in interface IStringInterface

cleanupDictionary

public static void cleanupDictionary()
Cleans up the static 'msDictionary' required to reset , otherwise the containers are left with invalid pointers, which will lead to a crash as soon as one of the implementers (e.g. ) initializes.



Copyright © 2007 netAllied GmbH. All Rights Reserved.