|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectj3d.examples.particles.emitters.ParticleEmitter
public class ParticleEmitter
The particle emitter is responsible for managing the lifecycle of all particles. It supports a variety of attributes that follow the center value plus variance pattern. The particle emitter depends on a generation shape for the intial placement and velocity of particles. The particle emitter uses influence objects to change aspects of the particles. Particle life cycle listeners are notified by the particle emitter as the particles live their lives.
Constructor Summary | |
---|---|
ParticleEmitter(IGenerationShape generationShape,
float emissionRate,
float emissionRateVariance,
float particleVelocity,
float particleVelocityVariance,
float particleLife,
float particleLifeVariance,
float emitterLife)
|
|
ParticleEmitter(IGenerationShape generationShape,
float emissionRate,
float emissionRateVariance,
float particleVelocity,
float particleVelocityVariance,
float particleLife,
float particleLifeVariance,
float emitterLife,
boolean motionBlur)
|
|
ParticleEmitter(IGenerationShape generationShape,
float emissionRate,
float emissionRateVariance,
float particleVelocity,
float particleVelocityVariance,
javax.vecmath.Vector3f particleRotationRate,
javax.vecmath.Vector3f particleRotationRateVariance,
float particleLife,
float particleLifeVariance,
float emitterLife)
|
Method Summary | |
---|---|
void |
addInfluence(IExternalInfluence anInfluence)
Add an external influence to this particle system. |
void |
addMonitor(IParticleLifeCycleListener aListener)
Add a new life cycle listener to this particle system. |
void |
die()
Kill this particle system. |
float |
getDelayTime()
|
int |
getMaximumParticles()
|
java.util.List |
getMonitors()
|
IParticleSystem |
getParticleSystem()
|
float[] |
getPositions()
An array of float values representing the x, y, z position of all particles (living or dead). |
float |
getVaryingParticleLife()
Get the central value plus random variance value of the particle life time. |
javax.vecmath.Vector3f |
getVaryingParticleRotationRate()
Get the central value plus random variance value of the particle rotation rate. |
float |
getVaryingParticleVelocity()
Get the central value plus random variance value of the particle velocity. |
void |
initialize()
|
boolean |
isAlive()
|
boolean |
isDead()
|
float |
random()
|
void |
setDelayTime(float dt)
|
void |
setParticleSystem(IParticleSystem system)
|
void |
update(float dt)
Update the particle lives based on the time differential. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParticleEmitter(IGenerationShape generationShape, float emissionRate, float emissionRateVariance, float particleVelocity, float particleVelocityVariance, float particleLife, float particleLifeVariance, float emitterLife)
public ParticleEmitter(IGenerationShape generationShape, float emissionRate, float emissionRateVariance, float particleVelocity, float particleVelocityVariance, float particleLife, float particleLifeVariance, float emitterLife, boolean motionBlur)
public ParticleEmitter(IGenerationShape generationShape, float emissionRate, float emissionRateVariance, float particleVelocity, float particleVelocityVariance, javax.vecmath.Vector3f particleRotationRate, javax.vecmath.Vector3f particleRotationRateVariance, float particleLife, float particleLifeVariance, float emitterLife)
Method Detail |
---|
public void addInfluence(IExternalInfluence anInfluence)
anInfluence
- - The influence to add.public void addMonitor(IParticleLifeCycleListener aListener)
aListener
- - The listener to be notified of changespublic void die()
public float getDelayTime()
public int getMaximumParticles()
public java.util.List getMonitors()
public IParticleSystem getParticleSystem()
public float[] getPositions()
public float getVaryingParticleLife()
public javax.vecmath.Vector3f getVaryingParticleRotationRate()
public float getVaryingParticleVelocity()
public void initialize()
public boolean isAlive()
public boolean isDead()
public float random()
public void setDelayTime(float dt)
public void setParticleSystem(IParticleSystem system)
public void update(float dt)
dt
- - The time differential in seconds
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |