|
j3d.org Code | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.j3d.geom.particle.FrameCountParticleFunction
public class FrameCountParticleFunction
Simple ParticleFunction that causes a ParticleSystem to run for a fixed number of frames from the start of this function, regardless of the particle's set lifetime.
Constructor Summary | |
---|---|
FrameCountParticleFunction(int maxAge)
|
Method Summary | |
---|---|
boolean |
apply(Particle particle)
Apply this function to the given particle right now. |
boolean |
isEnabled()
Check to see if this function has been enabled or not currently. |
boolean |
newFrame(int deltaT)
Notification that the system is about to do an update of the particles and to do any system-level initialisation. |
void |
resetFrameCount()
Reset the function to have a zero frame count again. |
void |
setEnabled(boolean state)
Set the enabled state of this function. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FrameCountParticleFunction(int maxAge)
Method Detail |
---|
public boolean isEnabled()
isEnabled
in interface ParticleFunction
public void setEnabled(boolean state)
setEnabled
in interface ParticleFunction
state
- The new enabled state to set it topublic boolean newFrame(int deltaT)
newFrame
in interface ParticleFunction
deltaT
- The elapsed time in milliseconds since the last frame
public boolean apply(Particle particle)
apply
in interface ParticleFunction
particle
- The particle to apply the function to
public void resetFrameCount()
|
j3d.org Code | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |