org.ogre4j
Interface IParticleEmitter

All Superinterfaces:
IAllocatedObject<ISceneObjAllocPolicy>, INativeObject, IParticle, ISceneObjAllocatedObject, IStringInterface
All Known Implementing Classes:
ParticleEmitter

public interface IParticleEmitter
extends INativeObject, IStringInterface, IParticle


Method Summary
 int _getEmissionCount(float timeElapsed)
          Gets the number of particles which this emitter would like to emit based on the time elapsed.
 void _initParticle(IParticle pParticle)
          Initialises a particle based on the emitter's approach and parameters.
 IRadian getAngle()
          Returns the maximum angle which the initial particle direction can deviate from the emitters base direction.
 IColourValue getColour()
          Gets the colour of particles to be emitted.
 IColourValue getColourRangeEnd()
          Gets the maximum colour of particles to be emitted.
 IColourValue getColourRangeStart()
          Gets the minimum colour of particles to be emitted.
 IVector3 getDirection()
          Returns the base direction of the emitter.
 float getDuration()
          Gets the duration of the emitter from when it is created or re-enabled.
 float getEmissionRate()
          Returns the emission rate set for this emitter.
 java.lang.String getEmittedEmitter()
          Returns the name of the emitter to be emitted
 boolean getEnabled()
          Gets the flag indicating if this emitter is enabled or not.
 float getMaxDuration()
          Gets the maximum duration of this emitter in seconds (see setDuration for more details)
 float getMaxParticleVelocity()
          Returns the maximum particle velocity.
 float getMaxRepeatDelay()
          Gets the maximum duration of this emitter in seconds (see setRepeatDelay for more details)
 float getMaxTimeToLive()
          Gets the maximum time each particle will live for.
 float getMinDuration()
          Gets the minimum duration of this emitter in seconds (see setDuration for more details)
 float getMinParticleVelocity()
          Returns the minimum particle velocity.
 float getMinRepeatDelay()
          Gets the minimum duration of this emitter in seconds (see setRepeatDelay for more details)
 float getMinTimeToLive()
          Gets the minimum time each particle will live for.
 java.lang.String getName()
          Returns the name of the emitter
 float getParticleVelocity()
          Returns the initial velocity of particles emitted.
 IVector3 getPosition()
          Returns the position of this emitter relative to the center of the particle system.
 float getRepeatDelay()
          Gets the duration of the emitter from when it is created or re-enabled.
 float getStartTime()
          Gets the start time of the emitter.
 float getTimeToLive()
          Gets the time each particle will live for.
 java.lang.String getType()
          Returns the name of the type of emitter.
 boolean isEmitted()
          Return 'true' if the emitter is emitted by another emitter
 void setAngle(IRadian angle)
          Sets the maximum angle away from the emitter direction which particle will be emitted.
 void setColour(IColourValue colour)
          Sets the initial colour of particles emitted.
 void setColour(IColourValue colourStart, IColourValue colourEnd)
          Sets the range of colours for emitted particles.
 void setColourRangeEnd(IColourValue colour)
          Sets the maximum colour of particles to be emitted.
 void setColourRangeStart(IColourValue colour)
          Sets the minimum colour of particles to be emitted.
 void setDirection(IVector3 direction)
          Sets the direction of the emitter.
 void setDuration(float duration)
          Sets the duration of the emitter.
 void setDuration(float _min, float _max)
          Sets the range of random duration for this emitter.
 void setEmissionRate(float particlesPerSecond)
          Sets the emission rate for this emitter.
 void setEmitted(boolean emitted)
          Set the indication (true/false) to indicate that the emitter is emitted by another emitter
 void setEmittedEmitter(java.lang.String emittedEmitter)
          Sets the name of the emitter to be emitted
 void setEnabled(boolean enabled)
          Sets whether or not the emitter is enabled.
 void setMaxDuration(float _max)
          Sets the maximum duration of this emitter in seconds (see setDuration for more details)
 void setMaxParticleVelocity(float _max)
          Returns the maximum particle velocity.
 void setMaxRepeatDelay(float _max)
          Sets the maximum duration of this emitter in seconds (see setRepeatDelay for more details)
 void setMaxTimeToLive(float _max)
          Sets the maximum time each particle will live for.
 void setMinDuration(float _min)
          Sets the minimum duration of this emitter in seconds (see setDuration for more details)
 void setMinParticleVelocity(float _min)
          Returns the minimum particle velocity.
 void setMinRepeatDelay(float _min)
          Sets the minimum duration of this emitter in seconds (see setRepeatDelay for more details)
 void setMinTimeToLive(float _min)
          Sets the minimum time each particle will live for.
 void setName(java.lang.String newName)
          Sets the name of the emitter
 void setParticleVelocity(float speed)
          Sets the initial velocity of particles emitted.
 void setParticleVelocity(float _min, float _max)
          Sets the initial velocity range of particles emitted.
 void setPosition(IVector3 pos)
          Sets the position of this emitter relative to the particle system center.
 void setRepeatDelay(float duration)
          Sets the time between repeats of the emitter.
 void setRepeatDelay(float _min, float _max)
          Sets the range of random duration for this emitter.
 void setStartTime(float startTime)
          Sets the 'start time' of this emitter.
 void setTimeToLive(float ttl)
          Sets the lifetime of all particles emitted.
 void setTimeToLive(float minTtl, float maxTtl)
          Sets the range of lifetime for particles emitted.
 
Methods inherited from interface org.ogre4j.IStringInterface
copyParametersTo, getParamDictionary_const, getParamDictionary, getParameter, getParameters, setParameter, setParameterList
 
Methods inherited from interface org.ogre4j.IParticle
_notifyOwner, _notifyVisualData, getcolour, getdirection, getmHeight, getmOwnDimensions, getmWidth, getOwnHeight, getOwnWidth, getparticleType, getposition, getRotation, getrotation, getrotationSpeed, gettimeToLive, gettotalTimeToLive, getVisualData, hasOwnDimensions, resetDimensions, setcolour, setDimensions, setdirection, setmHeight, setmOwnDimensions, setmWidth, setparticleType, setposition, setrotation, setRotation, setrotationSpeed, settimeToLive, settotalTimeToLive
 
Methods inherited from interface org.xbig.base.INativeObject
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Method Detail

setPosition

void setPosition(IVector3 pos)
Sets the position of this emitter relative to the particle system center.


getPosition

IVector3 getPosition()
Returns the position of this emitter relative to the center of the particle system.


setDirection

void setDirection(IVector3 direction)
Sets the direction of the emitter.


getDirection

IVector3 getDirection()
Returns the base direction of the emitter.


setAngle

void setAngle(IRadian angle)
Sets the maximum angle away from the emitter direction which particle will be emitted.


getAngle

IRadian getAngle()
Returns the maximum angle which the initial particle direction can deviate from the emitters base direction.


setParticleVelocity

void setParticleVelocity(float speed)
Sets the initial velocity of particles emitted.


setParticleVelocity

void setParticleVelocity(float _min,
                         float _max)
Sets the initial velocity range of particles emitted.


setMinParticleVelocity

void setMinParticleVelocity(float _min)
Returns the minimum particle velocity.


setMaxParticleVelocity

void setMaxParticleVelocity(float _max)
Returns the maximum particle velocity.


getParticleVelocity

float getParticleVelocity()
Returns the initial velocity of particles emitted.


getMinParticleVelocity

float getMinParticleVelocity()
Returns the minimum particle velocity.


getMaxParticleVelocity

float getMaxParticleVelocity()
Returns the maximum particle velocity.


setEmissionRate

void setEmissionRate(float particlesPerSecond)
Sets the emission rate for this emitter.


getEmissionRate

float getEmissionRate()
Returns the emission rate set for this emitter.


setTimeToLive

void setTimeToLive(float ttl)
Sets the lifetime of all particles emitted.


setTimeToLive

void setTimeToLive(float minTtl,
                   float maxTtl)
Sets the range of lifetime for particles emitted.


setMinTimeToLive

void setMinTimeToLive(float _min)
Sets the minimum time each particle will live for.


setMaxTimeToLive

void setMaxTimeToLive(float _max)
Sets the maximum time each particle will live for.


getTimeToLive

float getTimeToLive()
Gets the time each particle will live for.


getMinTimeToLive

float getMinTimeToLive()
Gets the minimum time each particle will live for.


getMaxTimeToLive

float getMaxTimeToLive()
Gets the maximum time each particle will live for.


setColour

void setColour(IColourValue colour)
Sets the initial colour of particles emitted.


setColour

void setColour(IColourValue colourStart,
               IColourValue colourEnd)
Sets the range of colours for emitted particles.


setColourRangeStart

void setColourRangeStart(IColourValue colour)
Sets the minimum colour of particles to be emitted.


setColourRangeEnd

void setColourRangeEnd(IColourValue colour)
Sets the maximum colour of particles to be emitted.


getColour

IColourValue getColour()
Gets the colour of particles to be emitted.


getColourRangeStart

IColourValue getColourRangeStart()
Gets the minimum colour of particles to be emitted.


getColourRangeEnd

IColourValue getColourRangeEnd()
Gets the maximum colour of particles to be emitted.


_getEmissionCount

int _getEmissionCount(float timeElapsed)
Gets the number of particles which this emitter would like to emit based on the time elapsed.


_initParticle

void _initParticle(IParticle pParticle)
Initialises a particle based on the emitter's approach and parameters.


getType

java.lang.String getType()
Returns the name of the type of emitter.


setEnabled

void setEnabled(boolean enabled)
Sets whether or not the emitter is enabled.


getEnabled

boolean getEnabled()
Gets the flag indicating if this emitter is enabled or not.


setStartTime

void setStartTime(float startTime)
Sets the 'start time' of this emitter.


getStartTime

float getStartTime()
Gets the start time of the emitter.


setDuration

void setDuration(float duration)
Sets the duration of the emitter.


getDuration

float getDuration()
Gets the duration of the emitter from when it is created or re-enabled.


setDuration

void setDuration(float _min,
                 float _max)
Sets the range of random duration for this emitter.


setMinDuration

void setMinDuration(float _min)
Sets the minimum duration of this emitter in seconds (see setDuration for more details)


setMaxDuration

void setMaxDuration(float _max)
Sets the maximum duration of this emitter in seconds (see setDuration for more details)


getMinDuration

float getMinDuration()
Gets the minimum duration of this emitter in seconds (see setDuration for more details)


getMaxDuration

float getMaxDuration()
Gets the maximum duration of this emitter in seconds (see setDuration for more details)


setRepeatDelay

void setRepeatDelay(float duration)
Sets the time between repeats of the emitter.


getRepeatDelay

float getRepeatDelay()
Gets the duration of the emitter from when it is created or re-enabled.


setRepeatDelay

void setRepeatDelay(float _min,
                    float _max)
Sets the range of random duration for this emitter.


setMinRepeatDelay

void setMinRepeatDelay(float _min)
Sets the minimum duration of this emitter in seconds (see setRepeatDelay for more details)


setMaxRepeatDelay

void setMaxRepeatDelay(float _max)
Sets the maximum duration of this emitter in seconds (see setRepeatDelay for more details)


getMinRepeatDelay

float getMinRepeatDelay()
Gets the minimum duration of this emitter in seconds (see setRepeatDelay for more details)


getMaxRepeatDelay

float getMaxRepeatDelay()
Gets the maximum duration of this emitter in seconds (see setRepeatDelay for more details)


getName

java.lang.String getName()
Returns the name of the emitter


setName

void setName(java.lang.String newName)
Sets the name of the emitter


getEmittedEmitter

java.lang.String getEmittedEmitter()
Returns the name of the emitter to be emitted


setEmittedEmitter

void setEmittedEmitter(java.lang.String emittedEmitter)
Sets the name of the emitter to be emitted


isEmitted

boolean isEmitted()
Return 'true' if the emitter is emitted by another emitter


setEmitted

void setEmitted(boolean emitted)
Set the indication (true/false) to indicate that the emitter is emitted by another emitter



Copyright © 2007 netAllied GmbH. All Rights Reserved.