j3d.examples.particles.influences
Class BoundedScale

java.lang.Object
  extended by j3d.examples.particles.influences.BoundedScale
All Implemented Interfaces:
IParticleLifeCycleListener, IExternalInfluence

public class BoundedScale
extends java.lang.Object
implements IExternalInfluence, IParticleLifeCycleListener

Scales the particle if it is within the bounds of the influence.


Constructor Summary
BoundedScale(float aBase, float aScale, javax.media.j3d.BoundingSphere aBounds)
           
 
Method Summary
 void aboutToDie(java.util.List c, float dt)
           
 void aboutToEmit(java.util.List aList, float dt)
           
 void apply(Particle aParticle, float dt)
          Apply this (possibly time varying) influence to the particle for the time interval.
 void initializeParticle(Particle aParticle)
          Initialize a particle prior to the first emission.
 void updated(java.util.List c, float dt)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoundedScale

public BoundedScale(float aBase,
                    float aScale,
                    javax.media.j3d.BoundingSphere aBounds)
Method Detail

initializeParticle

public void initializeParticle(Particle aParticle)
Description copied from interface: IExternalInfluence
Initialize a particle prior to the first emission.

Specified by:
initializeParticle in interface IExternalInfluence
Parameters:
aParticle - - the particle to initialize.

apply

public void apply(Particle aParticle,
                  float dt)
Description copied from interface: IExternalInfluence
Apply this (possibly time varying) influence to the particle for the time interval.

Specified by:
apply in interface IExternalInfluence
Parameters:
aParticle - - The particle to update
dt - - The time interval (in seconds) since the last apply

aboutToDie

public void aboutToDie(java.util.List c,
                       float dt)
Specified by:
aboutToDie in interface IParticleLifeCycleListener

aboutToEmit

public void aboutToEmit(java.util.List aList,
                        float dt)
Specified by:
aboutToEmit in interface IParticleLifeCycleListener

updated

public void updated(java.util.List c,
                    float dt)
Specified by:
updated in interface IParticleLifeCycleListener