org.ogre4j
Interface IParticleSystem

All Superinterfaces:
IAllocatedObject<ISceneObjAllocPolicy>, IAnimableObject, IMovableObject, INativeObject, ISceneObjAllocatedObject, IShadowCaster, IStringInterface
All Known Implementing Classes:
ParticleSystem

public interface IParticleSystem
extends INativeObject, IStringInterface, IMovableObject


Nested Class Summary
static interface IParticleSystem.IActiveEmittedEmitterList
           
static interface IParticleSystem.IActiveParticleList
           
static interface IParticleSystem.ICmdCull
           
static interface IParticleSystem.ICmdEmittedEmitterQuota
           
static interface IParticleSystem.ICmdHeight
           
static interface IParticleSystem.ICmdIterationInterval
           
static interface IParticleSystem.ICmdLocalSpace
           
static interface IParticleSystem.ICmdMaterial
           
static interface IParticleSystem.ICmdNonvisibleTimeout
           
static interface IParticleSystem.ICmdQuota
           
static interface IParticleSystem.ICmdRenderer
           
static interface IParticleSystem.ICmdSorted
           
static interface IParticleSystem.ICmdWidth
           
static interface IParticleSystem.IEmittedEmitterList
           
static interface IParticleSystem.IEmittedEmitterPool
           
static interface IParticleSystem.IFreeEmittedEmitterList
           
static interface IParticleSystem.IFreeEmittedEmitterMap
           
static interface IParticleSystem.IFreeParticleList
           
static interface IParticleSystem.IParticleAffectorList
           
static interface IParticleSystem.IParticleEmitterList
           
static interface IParticleSystem.IParticlePool
           
static interface IParticleSystem.ISortByDirectionFunctor
           
static interface 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
 
Method Summary
 void _getIterator(IParticleIterator returnValue)
          Returns an iterator for stepping through all particles in this system.
 void _notifyAttached(INode parent, boolean isTagPoint)
          Overridden from
 void _notifyCurrentCamera(ICamera cam)
          Overridden from
 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 clear()
          Empties this set of all particles.
 IParticle createEmitterParticle(java.lang.String emitterName)
          Manually add an emitter particle to the system.
 IParticle createParticle()
          Manually add a particle to the system.
 void fastForward(float time, float interval)
          Fast-forwards this system by the required number of seconds.
 IParticleAffector getAffector(int index)
          Retrieves an affector by it's index (zero-based).
 IAxisAlignedBox getBoundingBox()
          Overridden from
 float getBoundingRadius()
          Overridden from
 boolean getCullIndividually()
          Returns whether or not particles in this are tested individually for culling.
 float getDefaultHeight()
          See setDefaultDimensions - this gets 1 component individually.
 float getDefaultWidth()
          See setDefaultDimensions - this gets 1 component individually.
 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.
 java.lang.String getMaterialName()
          Sets the name of the material to be used for this billboard set.
 java.lang.String getMovableType()
          Overridden from
 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.
 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.
 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.
 java.lang.String getResourceGroupName()
           
 boolean getSortingEnabled()
           
 float getSpeedFactor()
          Gets the 'speed factor' on this particle system.
 long getTypeFlags()
          Get the 'type flags' for this .
 IParticleSystem operatorAssignment(IParticleSystem rhs)
          Assignment operator for copying.
 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 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 setCullIndividually(boolean cullIndividual)
          Sets whether culling tests particles in this individually as well as in a group.
 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.
 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 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.
 void setParticleQuota(int quota)
          Sets the maximum number of particles this system is allowed to have active at once.
 void setRenderer(java.lang.String typeName)
          Sets the ParticleRenderer to be used to render this particle system.
 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 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 interface org.ogre4j.IStringInterface
copyParametersTo, getParamDictionary_const, getParamDictionary, getParameter, getParameters, setParameter, setParameterList
 
Methods inherited from interface org.ogre4j.IMovableObject
_getCreator, _getLightList, _getManager, _getParentNodeFullTransform, _notifyCreator, _notifyManager, _notifyMoved, addQueryFlags, addVisibilityFlags, detatchFromParent, getCastShadows, getDarkCapBounds, getEdgeList, getLightCapBounds, getListener, getName, getParentNode, getParentSceneNode, getPointExtrusionDistance, getQueryFlags, getRenderingDistance, getRenderQueueGroup, getShadowVolumeRenderableIterator, getUserAny, getUserObject, getVisibilityFlags, getVisible, getWorldBoundingBox, getWorldBoundingSphere, hasEdgeList, isAttached, isDebugDisplayEnabled, isInScene, isVisible, queryLights, removeQueryFlags, removeVisibilityFlags, setCastShadows, setDebugDisplayEnabled, setListener, setQueryFlags, setRenderingDistance, setUserAny, setUserObject, setVisibilityFlags, setVisible
 
Methods inherited from interface org.ogre4j.IAnimableObject
createAnimableValue, getAnimableValueNames
 
Methods inherited from interface org.xbig.base.INativeObject
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Method Detail

setRenderer

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


getRenderer

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


getRendererName

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


addEmitter

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


getEmitter

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


getNumEmitters

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


removeEmitter

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


removeAllEmitters

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


addAffector

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


getAffector

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


getNumAffectors

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


removeAffector

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


removeAllAffectors

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


clear

void clear()
Empties this set of all particles.


getNumParticles

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


createParticle

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


createEmitterParticle

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


getParticle

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


getParticleQuota

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


setParticleQuota

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


getEmittedEmitterQuota

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


setEmittedEmitterQuota

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


operatorAssignment

IParticleSystem operatorAssignment(IParticleSystem rhs)
Assignment operator for copying.


_update

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


_getIterator

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


setMaterialName

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


getMaterialName

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


_notifyCurrentCamera

void _notifyCurrentCamera(ICamera cam)
Overridden from

Specified by:
_notifyCurrentCamera in interface IMovableObject

_notifyAttached

void _notifyAttached(INode parent,
                     boolean isTagPoint)
Overridden from

Specified by:
_notifyAttached in interface IMovableObject

getBoundingBox

IAxisAlignedBox getBoundingBox()
Overridden from

Specified by:
getBoundingBox in interface IMovableObject

getBoundingRadius

float getBoundingRadius()
Overridden from

Specified by:
getBoundingRadius in interface IMovableObject

_updateRenderQueue

void _updateRenderQueue(IRenderQueue queue)
Overridden from

Specified by:
_updateRenderQueue in interface IMovableObject

visitRenderables

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

fastForward

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


setSpeedFactor

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.


getSpeedFactor

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


setIterationInterval

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


getIterationInterval

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


setNonVisibleUpdateTimeout

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


getNonVisibleUpdateTimeout

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


getMovableType

java.lang.String getMovableType()
Overridden from

Specified by:
getMovableType in interface IMovableObject

_notifyParticleResized

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


_notifyParticleRotated

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


setDefaultDimensions

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


setDefaultWidth

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


getDefaultWidth

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


setDefaultHeight

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


getDefaultHeight

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


getCullIndividually

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


setCullIndividually

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


getResourceGroupName

java.lang.String getResourceGroupName()

getOrigin

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


_notifyOrigin

void _notifyOrigin(java.lang.String origin)

setRenderQueueGroup

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

setSortingEnabled

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


getSortingEnabled

boolean getSortingEnabled()

setBounds

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


setBoundsAutoUpdated

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


setKeepParticlesInLocalSpace

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


getKeepParticlesInLocalSpace

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


_updateBounds

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


getTypeFlags

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

Specified by:
getTypeFlags in interface IMovableObject


Copyright © 2007 netAllied GmbH. All Rights Reserved.