org.ogre4j
Class ParticleSystem

java.lang.Object
  extended by org.xbig.base.NativeObject
      extended by org.ogre4j.ParticleSystem
All Implemented Interfaces:
IAllocatedObject<ISceneObjAllocPolicy>, IAnimableObject, IMovableObject, IParticleSystem, ISceneObjAllocatedObject, IShadowCaster, IStringInterface, INativeObject

public class ParticleSystem
extends NativeObject
implements IParticleSystem


Nested Class Summary
protected static class ParticleSystem.ActiveEmittedEmitterList
           
protected static class ParticleSystem.ActiveParticleList
           
static class ParticleSystem.CmdCull
           
static class ParticleSystem.CmdEmittedEmitterQuota
           
static class ParticleSystem.CmdHeight
           
static class ParticleSystem.CmdIterationInterval
           
static class ParticleSystem.CmdLocalSpace
           
static class ParticleSystem.CmdMaterial
           
static class ParticleSystem.CmdNonvisibleTimeout
           
static class ParticleSystem.CmdQuota
           
static class ParticleSystem.CmdRenderer
           
static class ParticleSystem.CmdSorted
           
static class ParticleSystem.CmdWidth
           
protected static class ParticleSystem.EmittedEmitterList
           
protected static class ParticleSystem.EmittedEmitterPool
           
protected static class ParticleSystem.FreeEmittedEmitterList
           
protected static class ParticleSystem.FreeEmittedEmitterMap
           
protected static class ParticleSystem.FreeParticleList
           
protected static class ParticleSystem.ParticleAffectorList
           
protected static class ParticleSystem.ParticleEmitterList
           
protected static class ParticleSystem.ParticlePool
           
protected static class ParticleSystem.SortByDirectionFunctor
           
protected static class ParticleSystem.SortByDistanceFunctor
           
 
Nested classes/interfaces inherited from interface org.ogre4j.IParticleSystem
IParticleSystem.IActiveEmittedEmitterList, IParticleSystem.IActiveParticleList, IParticleSystem.ICmdCull, IParticleSystem.ICmdEmittedEmitterQuota, IParticleSystem.ICmdHeight, IParticleSystem.ICmdIterationInterval, IParticleSystem.ICmdLocalSpace, IParticleSystem.ICmdMaterial, IParticleSystem.ICmdNonvisibleTimeout, IParticleSystem.ICmdQuota, IParticleSystem.ICmdRenderer, IParticleSystem.ICmdSorted, IParticleSystem.ICmdWidth, IParticleSystem.IEmittedEmitterList, IParticleSystem.IEmittedEmitterPool, IParticleSystem.IFreeEmittedEmitterList, IParticleSystem.IFreeEmittedEmitterMap, IParticleSystem.IFreeParticleList, IParticleSystem.IParticleAffectorList, IParticleSystem.IParticleEmitterList, IParticleSystem.IParticlePool, IParticleSystem.ISortByDirectionFunctor, IParticleSystem.ISortByDistanceFunctor
 
Nested classes/interfaces inherited from interface org.ogre4j.IMovableObject
IMovableObject.IListener
 
Nested classes/interfaces inherited from interface org.ogre4j.IShadowCaster
IShadowCaster.IShadowRenderableList, IShadowCaster.IShadowRenderableListIterator
 
Nested classes/interfaces inherited from interface org.ogre4j.IAnimableObject
IAnimableObject.IAnimableDictionaryMap
 
Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  ParticleSystem()
           
  ParticleSystem(InstancePointer p)
          This constructor is public for internal useage only!
protected ParticleSystem(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  ParticleSystem(java.lang.String name, java.lang.String resourceGroupName)
          Creates a particle system with no emitters or affectors.
  ParticleSystem(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 IMovableObjectFactory _getCreator()
          Get the creator of this object, if any (internal use only)
 void _getIterator(IParticleIterator returnValue)
          Returns an iterator for stepping through all particles in this system.
 ILightList _getLightList()
          Returns a pointer to the current list of lights for this object.
 ISceneManager _getManager()
          Get the manager of this object, if any (internal use only)
 IMatrix4 _getParentNodeFullTransform()
           
 void _notifyAttached(INode parent, boolean isTagPoint)
          Overridden from
 void _notifyCreator(IMovableObjectFactory fact)
          Notify the object of it's creator (internal use only)
 void _notifyCurrentCamera(ICamera cam)
          Overridden from
 void _notifyManager(ISceneManager man)
          Notify the object of it's manager (internal use only)
 void _notifyMoved()
          Internal method called to notify the object that it has been moved.
 void _notifyOrigin(java.lang.String origin)
           
 void _notifyParticleResized()
          Internal callback used by Particles to notify their parent that they have been resized.
 void _notifyParticleRotated()
          Internal callback used by Particles to notify their parent that they have been rotated.
 void _update(float timeElapsed)
          Updates the particles in the system based on time elapsed.
 void _updateBounds()
          Internal method for updating the bounds of the particle system.
 void _updateRenderQueue(IRenderQueue queue)
          Overridden from
 IParticleAffector addAffector(java.lang.String affectorType)
          Adds an affector to this particle system.
 IParticleEmitter addEmitter(java.lang.String emitterType)
          Adds an emitter to this particle system.
 void addQueryFlags(long flags)
          As setQueryFlags, except the flags passed as parameters are appended to the existing flags on this object.
 void addVisibilityFlags(long flags)
          As setVisibilityFlags, except the flags passed as parameters are appended to the existing flags on this object.
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 clear()
          Empties this set of all particles.
 void copyParametersTo(IStringInterface dest)
          Method for copying this object's parameters to another object.
 void createAnimableValue(IAnimableValuePtr returnValue, java.lang.String valueName)
          Create a reference-counted AnimableValuePtr for the named value.
 IParticle createEmitterParticle(java.lang.String emitterName)
          Manually add an emitter particle to the system.
 IParticle createParticle()
          Manually add a particle to the system.
 void delete()
          Deletes the corresponding C++ object.
 void detatchFromParent()
          Detaches an object from a parent or , if attached.
static void extrudeVertices(IHardwareVertexBufferSharedPtr vertexBuffer, int originalVertexCount, IVector4 lightPos, float extrudeDist)
          Utility method for extruding vertices based on a light.
 void fastForward(float time, float interval)
          Fast-forwards this system by the required number of seconds.
 void finalize()
           
 IParticleAffector getAffector(int index)
          Retrieves an affector by it's index (zero-based).
 IStringVector getAnimableValueNames()
          Gets a list of animable value names for this object.
 IAxisAlignedBox getBoundingBox()
          Overridden from
 float getBoundingRadius()
          Overridden from
 boolean getCastShadows()
          Returns whether shadow casting is enabled for this object.
 boolean getCullIndividually()
          Returns whether or not particles in this are tested individually for culling.
 IAxisAlignedBox getDarkCapBounds(ILight light, float dirLightExtrusionDist)
          Overridden member from .
 float getDefaultHeight()
          See setDefaultDimensions - this gets 1 component individually.
static float getDefaultIterationInterval()
          Get the default iteration interval for all instances.
static float getDefaultNonVisibleUpdateTimeout()
          Get the default nonvisible timeout for all instances.
static long getDefaultQueryFlags()
          Get the default query flags for all future instances.
static long getDefaultVisibilityFlags()
          Get the default visibility flags for all future instances.
 float getDefaultWidth()
          See setDefaultDimensions - this gets 1 component individually.
 IEdgeData getEdgeList()
          Returns details of the edges which might be used to determine a silhouette.
 int getEmittedEmitterQuota()
          Returns the maximum number of emitted emitters this system is allowed to have active at once.
 IParticleEmitter getEmitter(int index)
          Retrieves an emitter by it's index (zero-based).
 float getIterationInterval()
          Gets a 'iteration interval' on this particle system.
 boolean getKeepParticlesInLocalSpace()
          Gets whether particles (and any affector effects) remain relative to the node the particle system is attached to.
 IAxisAlignedBox getLightCapBounds()
          Overridden member from .
 IMovableObject.IListener getListener()
          Gets the current listener for this object.
 java.lang.String getMaterialName()
          Sets the name of the material to be used for this billboard set.
 java.lang.String getMovableType()
          Overridden from
 java.lang.String getName()
          Returns the name of this object.
 float getNonVisibleUpdateTimeout()
          Gets when the particle system should stop updating after it hasn't been visible for a while.
 int getNumAffectors()
          Returns the number of affectors for this particle system.
 int getNumEmitters()
          Returns the number of emitters for this particle system.
 int getNumParticles()
          Gets the number of individual particles in the system right now.
 java.lang.String getOrigin()
          Get the origin of this particle system, e.g. a script file name.
 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.
 INode getParentNode()
          Returns the node to which this object is attached.
 ISceneNode getParentSceneNode()
          Returns the scene node to which this object is attached.
 IParticle getParticle(int index)
          Retrieve a particle from the system for manual tweaking.
 int getParticleQuota()
          Returns the maximum number of particles this system is allowed to have active at once.
 float getPointExtrusionDistance(ILight l)
          Get the distance to extrude for a point/spot light
 long getQueryFlags()
           
 IParticleSystemRenderer getRenderer()
          Gets the ParticleRenderer to be used to render this particle system.
 java.lang.String getRendererName()
          Gets the name of the ParticleRenderer to be used to render this particle system.
 float getRenderingDistance()
          Gets the distance at which batches are no longer rendered.
 short getRenderQueueGroup()
          Gets the queue group for this entity, see setRenderQueueGroup for full details.
 java.lang.String getResourceGroupName()
           
 void getShadowVolumeRenderableIterator(IShadowCaster.IShadowRenderableListIterator returnValue, ShadowTechnique shadowTechnique, ILight light, IHardwareIndexBufferSharedPtr indexBuffer, boolean extrudeVertices, float extrusionDist, long flags)
          Gets an iterator over the renderables required to render the shadow volume.
 boolean getSortingEnabled()
           
 float getSpeedFactor()
          Gets the 'speed factor' on this particle system.
 long getTypeFlags()
          Get the 'type flags' for this .
 IAny getUserAny()
          Retrieves the custom user value associated with this object.
 IUserDefinedObject getUserObject()
          Retrieves a pointer to a custom application object associated with this movable by an earlier call to setUserObject.
 long getVisibilityFlags()
           
 boolean getVisible()
          Gets this object whether to be visible or not, if it has a renderable component.
 IAxisAlignedBox getWorldBoundingBox(boolean derive)
          Retrieves the axis-aligned bounding box for this object in world coordinates.
 ISphere getWorldBoundingSphere(boolean derive)
          Retrieves the worldspace bounding sphere for this object.
 boolean hasEdgeList()
          Returns whether the object has a valid edge list.
 boolean isAttached()
          Returns true if this object is attached to a or .
 boolean isDebugDisplayEnabled()
           
 boolean isInScene()
          Returns true if this object is attached to a or , and this / is currently in an active part of the scene graph.
 boolean isVisible()
          Returns whether or not this object is supposed to be visible or not.
 IParticleSystem operatorAssignment(IParticleSystem rhs)
          Assignment operator for copying.
 ILightList queryLights()
          Gets a list of lights, ordered relative to how close they are to this movable object.
 void removeAffector(int index)
          Removes an affector from the system.
 void removeAllAffectors()
          Removes all the affectors from this system.
 void removeAllEmitters()
          Removes all the emitters from this system.
 void removeEmitter(int index)
          Removes an emitter from the system.
 void removeQueryFlags(long flags)
          As setQueryFlags, except the flags passed as parameters are removed from the existing flags on this object.
 void removeVisibilityFlags(long flags)
          As setVisibilityFlags, except the flags passed as parameters are removed from the existing flags on this object.
 void setBounds(IAxisAlignedBox aabb)
          Set the (initial) bounds of the particle system manually.
 void setBoundsAutoUpdated(boolean autoUpdate, float stopIn)
          Sets whether the bounds will be automatically updated for the life of the particle system
 void setCastShadows(boolean enabled)
          Sets whether or not this object will cast shadows.
 void setCullIndividually(boolean cullIndividual)
          Sets whether culling tests particles in this individually as well as in a group.
 void setDebugDisplayEnabled(boolean enabled)
          Sets whether or not the debug display of this object is enabled.
 void setDefaultDimensions(float width, float height)
          Sets the default dimensions of the particles in this set.
 void setDefaultHeight(float height)
          See setDefaultDimensions - this sets 1 component individually.
static void setDefaultIterationInterval(float iterationInterval)
          Set the default iteration interval for all instances.
static void setDefaultNonVisibleUpdateTimeout(float timeout)
          Set the default nonvisible timeout for all instances.
static void setDefaultQueryFlags(long flags)
          Set the default query flags for all future instances.
static void setDefaultVisibilityFlags(long flags)
          Set the default visibility flags for all future instances.
 void setDefaultWidth(float width)
          See setDefaultDimensions - this sets 1 component individually.
 void setEmittedEmitterQuota(int quota)
          Sets the maximum number of emitted emitters this system is allowed to have active at once.
 void setIterationInterval(float iterationInterval)
          Sets a 'iteration interval' on this particle system.
 void setKeepParticlesInLocalSpace(boolean keepLocal)
          Sets whether particles (and any affector effects) remain relative to the node the particle system is attached to.
 void setListener(IMovableObject.IListener listener)
          Sets a listener for this object.
 void setMaterialName(java.lang.String name)
          Sets the name of the material to be used for this billboard set.
 void setNonVisibleUpdateTimeout(float timeout)
          Sets when the particle system should stop updating after it hasn't been visible for a while.
 boolean setParameter(java.lang.String name, java.lang.String value)
          Generic parameter setting method.
 void setParameterList(INameValuePairList paramList)
          Generic multiple parameter setting method.
 void setParticleQuota(int quota)
          Sets the maximum number of particles this system is allowed to have active at once.
 void setQueryFlags(long flags)
          Sets the query flags for this object.
 void setRenderer(java.lang.String typeName)
          Sets the ParticleRenderer to be used to render this particle system.
 void setRenderingDistance(float dist)
          Sets the distance at which the object is no longer rendered.
 void setRenderQueueGroup(short queueID)
          Sets the render queue group this entity will be rendered through.
 void setSortingEnabled(boolean enabled)
          Set whether or not particles are sorted according to the camera.
 void setSpeedFactor(float speedFactor)
          Sets a 'speed factor' on this particle system, which means it scales the elapsed real time which has passed by this factor before passing it to the emitters, affectors, and the particle life calculation.
 void setUserAny(IAny anything)
          Sets any kind of user value on this object.
 void setUserObject(IUserDefinedObject obj)
          Call this to associate your own custom user object instance with this .
 void setVisibilityFlags(long flags)
          Sets the visiblity flags for this object.
 void setVisible(boolean visible)
          Tells this object whether to be visible or not, if it has a renderable component.
 void visitRenderables(IRenderable.IVisitor visitor, boolean debugRenderables)
          Method to allow a caller to abstractly iterate over the instances that this will add to the render queue when asked, if any.
 
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

ParticleSystem

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


ParticleSystem

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


ParticleSystem

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

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()

ParticleSystem

public ParticleSystem()

ParticleSystem

public ParticleSystem(java.lang.String name,
                      java.lang.String resourceGroupName)
Creates a particle system with no emitters or affectors.

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

setRenderer

public void setRenderer(java.lang.String typeName)
Sets the ParticleRenderer to be used to render this particle system.

Specified by:
setRenderer in interface IParticleSystem

getRenderer

public IParticleSystemRenderer getRenderer()
Gets the ParticleRenderer to be used to render this particle system.

Specified by:
getRenderer in interface IParticleSystem

getRendererName

public java.lang.String getRendererName()
Gets the name of the ParticleRenderer to be used to render this particle system.

Specified by:
getRendererName in interface IParticleSystem

addEmitter

public IParticleEmitter addEmitter(java.lang.String emitterType)
Adds an emitter to this particle system.

Specified by:
addEmitter in interface IParticleSystem

getEmitter

public IParticleEmitter getEmitter(int index)
Retrieves an emitter by it's index (zero-based).

Specified by:
getEmitter in interface IParticleSystem

getNumEmitters

public int getNumEmitters()
Returns the number of emitters for this particle system.

Specified by:
getNumEmitters in interface IParticleSystem

removeEmitter

public void removeEmitter(int index)
Removes an emitter from the system.

Specified by:
removeEmitter in interface IParticleSystem

removeAllEmitters

public void removeAllEmitters()
Removes all the emitters from this system.

Specified by:
removeAllEmitters in interface IParticleSystem

addAffector

public IParticleAffector addAffector(java.lang.String affectorType)
Adds an affector to this particle system.

Specified by:
addAffector in interface IParticleSystem

getAffector

public IParticleAffector getAffector(int index)
Retrieves an affector by it's index (zero-based).

Specified by:
getAffector in interface IParticleSystem

getNumAffectors

public int getNumAffectors()
Returns the number of affectors for this particle system.

Specified by:
getNumAffectors in interface IParticleSystem

removeAffector

public void removeAffector(int index)
Removes an affector from the system.

Specified by:
removeAffector in interface IParticleSystem

removeAllAffectors

public void removeAllAffectors()
Removes all the affectors from this system.

Specified by:
removeAllAffectors in interface IParticleSystem

clear

public void clear()
Empties this set of all particles.

Specified by:
clear in interface IParticleSystem

getNumParticles

public int getNumParticles()
Gets the number of individual particles in the system right now.

Specified by:
getNumParticles in interface IParticleSystem

createParticle

public IParticle createParticle()
Manually add a particle to the system.

Specified by:
createParticle in interface IParticleSystem

createEmitterParticle

public IParticle createEmitterParticle(java.lang.String emitterName)
Manually add an emitter particle to the system.

Specified by:
createEmitterParticle in interface IParticleSystem

getParticle

public IParticle getParticle(int index)
Retrieve a particle from the system for manual tweaking.

Specified by:
getParticle in interface IParticleSystem

getParticleQuota

public int getParticleQuota()
Returns the maximum number of particles this system is allowed to have active at once.

Specified by:
getParticleQuota in interface IParticleSystem

setParticleQuota

public void setParticleQuota(int quota)
Sets the maximum number of particles this system is allowed to have active at once.

Specified by:
setParticleQuota in interface IParticleSystem

getEmittedEmitterQuota

public int getEmittedEmitterQuota()
Returns the maximum number of emitted emitters this system is allowed to have active at once.

Specified by:
getEmittedEmitterQuota in interface IParticleSystem

setEmittedEmitterQuota

public void setEmittedEmitterQuota(int quota)
Sets the maximum number of emitted emitters this system is allowed to have active at once.

Specified by:
setEmittedEmitterQuota in interface IParticleSystem

operatorAssignment

public IParticleSystem operatorAssignment(IParticleSystem rhs)
Assignment operator for copying.

Specified by:
operatorAssignment in interface IParticleSystem

_update

public void _update(float timeElapsed)
Updates the particles in the system based on time elapsed.

Specified by:
_update in interface IParticleSystem

_getIterator

public void _getIterator(IParticleIterator returnValue)
Returns an iterator for stepping through all particles in this system.

Specified by:
_getIterator in interface IParticleSystem

setMaterialName

public void setMaterialName(java.lang.String name)
Sets the name of the material to be used for this billboard set.

Specified by:
setMaterialName in interface IParticleSystem

getMaterialName

public java.lang.String getMaterialName()
Sets the name of the material to be used for this billboard set.

Specified by:
getMaterialName in interface IParticleSystem

_notifyCurrentCamera

public void _notifyCurrentCamera(ICamera cam)
Overridden from

Specified by:
_notifyCurrentCamera in interface IMovableObject
Specified by:
_notifyCurrentCamera in interface IParticleSystem

_notifyAttached

public void _notifyAttached(INode parent,
                            boolean isTagPoint)
Overridden from

Specified by:
_notifyAttached in interface IMovableObject
Specified by:
_notifyAttached in interface IParticleSystem

getBoundingBox

public IAxisAlignedBox getBoundingBox()
Overridden from

Specified by:
getBoundingBox in interface IMovableObject
Specified by:
getBoundingBox in interface IParticleSystem

getBoundingRadius

public float getBoundingRadius()
Overridden from

Specified by:
getBoundingRadius in interface IMovableObject
Specified by:
getBoundingRadius in interface IParticleSystem

_updateRenderQueue

public void _updateRenderQueue(IRenderQueue queue)
Overridden from

Specified by:
_updateRenderQueue in interface IMovableObject
Specified by:
_updateRenderQueue in interface IParticleSystem

visitRenderables

public void visitRenderables(IRenderable.IVisitor visitor,
                             boolean debugRenderables)
Description copied from interface: IMovableObject
Method to allow a caller to abstractly iterate over the instances that this will add to the render queue when asked, if any.

Specified by:
visitRenderables in interface IMovableObject
Specified by:
visitRenderables in interface IParticleSystem

fastForward

public void fastForward(float time,
                        float interval)
Fast-forwards this system by the required number of seconds.

Specified by:
fastForward in interface IParticleSystem

setSpeedFactor

public void setSpeedFactor(float speedFactor)
Sets a 'speed factor' on this particle system, which means it scales the elapsed real time which has passed by this factor before passing it to the emitters, affectors, and the particle life calculation.

Specified by:
setSpeedFactor in interface IParticleSystem

getSpeedFactor

public float getSpeedFactor()
Gets the 'speed factor' on this particle system.

Specified by:
getSpeedFactor in interface IParticleSystem

setIterationInterval

public void setIterationInterval(float iterationInterval)
Sets a 'iteration interval' on this particle system.

Specified by:
setIterationInterval in interface IParticleSystem

getIterationInterval

public float getIterationInterval()
Gets a 'iteration interval' on this particle system.

Specified by:
getIterationInterval in interface IParticleSystem

setNonVisibleUpdateTimeout

public void setNonVisibleUpdateTimeout(float timeout)
Sets when the particle system should stop updating after it hasn't been visible for a while.

Specified by:
setNonVisibleUpdateTimeout in interface IParticleSystem

getNonVisibleUpdateTimeout

public float getNonVisibleUpdateTimeout()
Gets when the particle system should stop updating after it hasn't been visible for a while.

Specified by:
getNonVisibleUpdateTimeout in interface IParticleSystem

getMovableType

public java.lang.String getMovableType()
Overridden from

Specified by:
getMovableType in interface IMovableObject
Specified by:
getMovableType in interface IParticleSystem

_notifyParticleResized

public void _notifyParticleResized()
Internal callback used by Particles to notify their parent that they have been resized.

Specified by:
_notifyParticleResized in interface IParticleSystem

_notifyParticleRotated

public void _notifyParticleRotated()
Internal callback used by Particles to notify their parent that they have been rotated.

Specified by:
_notifyParticleRotated in interface IParticleSystem

setDefaultDimensions

public void setDefaultDimensions(float width,
                                 float height)
Sets the default dimensions of the particles in this set.

Specified by:
setDefaultDimensions in interface IParticleSystem

setDefaultWidth

public void setDefaultWidth(float width)
See setDefaultDimensions - this sets 1 component individually.

Specified by:
setDefaultWidth in interface IParticleSystem

getDefaultWidth

public float getDefaultWidth()
See setDefaultDimensions - this gets 1 component individually.

Specified by:
getDefaultWidth in interface IParticleSystem

setDefaultHeight

public void setDefaultHeight(float height)
See setDefaultDimensions - this sets 1 component individually.

Specified by:
setDefaultHeight in interface IParticleSystem

getDefaultHeight

public float getDefaultHeight()
See setDefaultDimensions - this gets 1 component individually.

Specified by:
getDefaultHeight in interface IParticleSystem

getCullIndividually

public boolean getCullIndividually()
Returns whether or not particles in this are tested individually for culling.

Specified by:
getCullIndividually in interface IParticleSystem

setCullIndividually

public void setCullIndividually(boolean cullIndividual)
Sets whether culling tests particles in this individually as well as in a group.

Specified by:
setCullIndividually in interface IParticleSystem

getResourceGroupName

public java.lang.String getResourceGroupName()
Specified by:
getResourceGroupName in interface IParticleSystem

getOrigin

public java.lang.String getOrigin()
Get the origin of this particle system, e.g. a script file name.

Specified by:
getOrigin in interface IParticleSystem

_notifyOrigin

public void _notifyOrigin(java.lang.String origin)
Specified by:
_notifyOrigin in interface IParticleSystem

setRenderQueueGroup

public void setRenderQueueGroup(short queueID)
Description copied from interface: IMovableObject
Sets the render queue group this entity will be rendered through.

Specified by:
setRenderQueueGroup in interface IMovableObject
Specified by:
setRenderQueueGroup in interface IParticleSystem

setSortingEnabled

public void setSortingEnabled(boolean enabled)
Set whether or not particles are sorted according to the camera.

Specified by:
setSortingEnabled in interface IParticleSystem

getSortingEnabled

public boolean getSortingEnabled()
Specified by:
getSortingEnabled in interface IParticleSystem

setBounds

public void setBounds(IAxisAlignedBox aabb)
Set the (initial) bounds of the particle system manually.

Specified by:
setBounds in interface IParticleSystem

setBoundsAutoUpdated

public void setBoundsAutoUpdated(boolean autoUpdate,
                                 float stopIn)
Sets whether the bounds will be automatically updated for the life of the particle system

Specified by:
setBoundsAutoUpdated in interface IParticleSystem

setKeepParticlesInLocalSpace

public void setKeepParticlesInLocalSpace(boolean keepLocal)
Sets whether particles (and any affector effects) remain relative to the node the particle system is attached to.

Specified by:
setKeepParticlesInLocalSpace in interface IParticleSystem

getKeepParticlesInLocalSpace

public boolean getKeepParticlesInLocalSpace()
Gets whether particles (and any affector effects) remain relative to the node the particle system is attached to.

Specified by:
getKeepParticlesInLocalSpace in interface IParticleSystem

_updateBounds

public void _updateBounds()
Internal method for updating the bounds of the particle system.

Specified by:
_updateBounds in interface IParticleSystem

getTypeFlags

public long getTypeFlags()
Description copied from interface: IMovableObject
Get the 'type flags' for this .

Specified by:
getTypeFlags in interface IMovableObject
Specified by:
getTypeFlags in interface IParticleSystem

setDefaultIterationInterval

public static void setDefaultIterationInterval(float iterationInterval)
Set the default iteration interval for all instances.


getDefaultIterationInterval

public static float getDefaultIterationInterval()
Get the default iteration interval for all instances.


setDefaultNonVisibleUpdateTimeout

public static void setDefaultNonVisibleUpdateTimeout(float timeout)
Set the default nonvisible timeout for all instances.


getDefaultNonVisibleUpdateTimeout

public static float getDefaultNonVisibleUpdateTimeout()
Get the default nonvisible timeout for all instances.


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.


_notifyCreator

public void _notifyCreator(IMovableObjectFactory fact)
Notify the object of it's creator (internal use only)

Specified by:
_notifyCreator in interface IMovableObject

_getCreator

public IMovableObjectFactory _getCreator()
Get the creator of this object, if any (internal use only)

Specified by:
_getCreator in interface IMovableObject

_notifyManager

public void _notifyManager(ISceneManager man)
Notify the object of it's manager (internal use only)

Specified by:
_notifyManager in interface IMovableObject

_getManager

public ISceneManager _getManager()
Get the manager of this object, if any (internal use only)

Specified by:
_getManager in interface IMovableObject

getName

public java.lang.String getName()
Returns the name of this object.

Specified by:
getName in interface IMovableObject

getParentNode

public INode getParentNode()
Returns the node to which this object is attached.

Specified by:
getParentNode in interface IMovableObject

getParentSceneNode

public ISceneNode getParentSceneNode()
Returns the scene node to which this object is attached.

Specified by:
getParentSceneNode in interface IMovableObject

isAttached

public boolean isAttached()
Returns true if this object is attached to a or .

Specified by:
isAttached in interface IMovableObject

detatchFromParent

public void detatchFromParent()
Detaches an object from a parent or , if attached.

Specified by:
detatchFromParent in interface IMovableObject

isInScene

public boolean isInScene()
Returns true if this object is attached to a or , and this / is currently in an active part of the scene graph.

Specified by:
isInScene in interface IMovableObject

_notifyMoved

public void _notifyMoved()
Internal method called to notify the object that it has been moved.

Specified by:
_notifyMoved in interface IMovableObject

getWorldBoundingBox

public IAxisAlignedBox getWorldBoundingBox(boolean derive)
Retrieves the axis-aligned bounding box for this object in world coordinates.

Specified by:
getWorldBoundingBox in interface IMovableObject
Specified by:
getWorldBoundingBox in interface IShadowCaster

getWorldBoundingSphere

public ISphere getWorldBoundingSphere(boolean derive)
Retrieves the worldspace bounding sphere for this object.

Specified by:
getWorldBoundingSphere in interface IMovableObject

setVisible

public void setVisible(boolean visible)
Tells this object whether to be visible or not, if it has a renderable component.

Specified by:
setVisible in interface IMovableObject

getVisible

public boolean getVisible()
Gets this object whether to be visible or not, if it has a renderable component.

Specified by:
getVisible in interface IMovableObject

isVisible

public boolean isVisible()
Returns whether or not this object is supposed to be visible or not.

Specified by:
isVisible in interface IMovableObject

setRenderingDistance

public void setRenderingDistance(float dist)
Sets the distance at which the object is no longer rendered.

Specified by:
setRenderingDistance in interface IMovableObject

getRenderingDistance

public float getRenderingDistance()
Gets the distance at which batches are no longer rendered.

Specified by:
getRenderingDistance in interface IMovableObject

setUserObject

public void setUserObject(IUserDefinedObject obj)
Call this to associate your own custom user object instance with this .

Specified by:
setUserObject in interface IMovableObject

getUserObject

public IUserDefinedObject getUserObject()
Retrieves a pointer to a custom application object associated with this movable by an earlier call to setUserObject.

Specified by:
getUserObject in interface IMovableObject

setUserAny

public void setUserAny(IAny anything)
Sets any kind of user value on this object.

Specified by:
setUserAny in interface IMovableObject

getUserAny

public IAny getUserAny()
Retrieves the custom user value associated with this object.

Specified by:
getUserAny in interface IMovableObject

getRenderQueueGroup

public short getRenderQueueGroup()
Gets the queue group for this entity, see setRenderQueueGroup for full details.

Specified by:
getRenderQueueGroup in interface IMovableObject

_getParentNodeFullTransform

public IMatrix4 _getParentNodeFullTransform()
Specified by:
_getParentNodeFullTransform in interface IMovableObject

setQueryFlags

public void setQueryFlags(long flags)
Sets the query flags for this object.

Specified by:
setQueryFlags in interface IMovableObject

addQueryFlags

public void addQueryFlags(long flags)
As setQueryFlags, except the flags passed as parameters are appended to the existing flags on this object.

Specified by:
addQueryFlags in interface IMovableObject

removeQueryFlags

public void removeQueryFlags(long flags)
As setQueryFlags, except the flags passed as parameters are removed from the existing flags on this object.

Specified by:
removeQueryFlags in interface IMovableObject

getQueryFlags

public long getQueryFlags()
Specified by:
getQueryFlags in interface IMovableObject

setVisibilityFlags

public void setVisibilityFlags(long flags)
Sets the visiblity flags for this object.

Specified by:
setVisibilityFlags in interface IMovableObject

addVisibilityFlags

public void addVisibilityFlags(long flags)
As setVisibilityFlags, except the flags passed as parameters are appended to the existing flags on this object.

Specified by:
addVisibilityFlags in interface IMovableObject

removeVisibilityFlags

public void removeVisibilityFlags(long flags)
As setVisibilityFlags, except the flags passed as parameters are removed from the existing flags on this object.

Specified by:
removeVisibilityFlags in interface IMovableObject

getVisibilityFlags

public long getVisibilityFlags()
Specified by:
getVisibilityFlags in interface IMovableObject

setListener

public void setListener(IMovableObject.IListener listener)
Sets a listener for this object.

Specified by:
setListener in interface IMovableObject

getListener

public IMovableObject.IListener getListener()
Gets the current listener for this object.

Specified by:
getListener in interface IMovableObject

queryLights

public ILightList queryLights()
Gets a list of lights, ordered relative to how close they are to this movable object.

Specified by:
queryLights in interface IMovableObject

_getLightList

public ILightList _getLightList()
Returns a pointer to the current list of lights for this object.

Specified by:
_getLightList in interface IMovableObject

getEdgeList

public IEdgeData getEdgeList()
Description copied from interface: IShadowCaster
Returns details of the edges which might be used to determine a silhouette.

Specified by:
getEdgeList in interface IMovableObject
Specified by:
getEdgeList in interface IShadowCaster

hasEdgeList

public boolean hasEdgeList()
Description copied from interface: IShadowCaster
Returns whether the object has a valid edge list.

Specified by:
hasEdgeList in interface IMovableObject
Specified by:
hasEdgeList in interface IShadowCaster

getShadowVolumeRenderableIterator

public void getShadowVolumeRenderableIterator(IShadowCaster.IShadowRenderableListIterator returnValue,
                                              ShadowTechnique shadowTechnique,
                                              ILight light,
                                              IHardwareIndexBufferSharedPtr indexBuffer,
                                              boolean extrudeVertices,
                                              float extrusionDist,
                                              long flags)
Description copied from interface: IShadowCaster
Gets an iterator over the renderables required to render the shadow volume.

Specified by:
getShadowVolumeRenderableIterator in interface IMovableObject
Specified by:
getShadowVolumeRenderableIterator in interface IShadowCaster

getLightCapBounds

public IAxisAlignedBox getLightCapBounds()
Overridden member from .

Specified by:
getLightCapBounds in interface IMovableObject
Specified by:
getLightCapBounds in interface IShadowCaster

getDarkCapBounds

public IAxisAlignedBox getDarkCapBounds(ILight light,
                                        float dirLightExtrusionDist)
Overridden member from .

Specified by:
getDarkCapBounds in interface IMovableObject
Specified by:
getDarkCapBounds in interface IShadowCaster

setCastShadows

public void setCastShadows(boolean enabled)
Sets whether or not this object will cast shadows.

Specified by:
setCastShadows in interface IMovableObject

getCastShadows

public boolean getCastShadows()
Returns whether shadow casting is enabled for this object.

Specified by:
getCastShadows in interface IMovableObject
Specified by:
getCastShadows in interface IShadowCaster

getPointExtrusionDistance

public float getPointExtrusionDistance(ILight l)
Get the distance to extrude for a point/spot light

Specified by:
getPointExtrusionDistance in interface IMovableObject
Specified by:
getPointExtrusionDistance in interface IShadowCaster

setDebugDisplayEnabled

public void setDebugDisplayEnabled(boolean enabled)
Sets whether or not the debug display of this object is enabled.

Specified by:
setDebugDisplayEnabled in interface IMovableObject

isDebugDisplayEnabled

public boolean isDebugDisplayEnabled()
Specified by:
isDebugDisplayEnabled in interface IMovableObject

setDefaultQueryFlags

public static void setDefaultQueryFlags(long flags)
Set the default query flags for all future instances.


getDefaultQueryFlags

public static long getDefaultQueryFlags()
Get the default query flags for all future instances.


setDefaultVisibilityFlags

public static void setDefaultVisibilityFlags(long flags)
Set the default visibility flags for all future instances.


getDefaultVisibilityFlags

public static long getDefaultVisibilityFlags()
Get the default visibility flags for all future instances.


extrudeVertices

public static void extrudeVertices(IHardwareVertexBufferSharedPtr vertexBuffer,
                                   int originalVertexCount,
                                   IVector4 lightPos,
                                   float extrudeDist)
Utility method for extruding vertices based on a light.


getAnimableValueNames

public IStringVector getAnimableValueNames()
Gets a list of animable value names for this object.

Specified by:
getAnimableValueNames in interface IAnimableObject

createAnimableValue

public void createAnimableValue(IAnimableValuePtr returnValue,
                                java.lang.String valueName)
Create a reference-counted AnimableValuePtr for the named value.

Specified by:
createAnimableValue in interface IAnimableObject


Copyright © 2007 netAllied GmbH. All Rights Reserved.