|
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.MaxTimeParticleFunction
public class MaxTimeParticleFunction
A ParticleFunction that is used to cull particles that have reached their maximum allowed time.
Within this particle system architecture, particles are not automatically removed from the scene when their lifetime is reached. This function is used to cull them from visibility at that point by comparing the current time with the particle's death time.
Constructor Summary | |
---|---|
MaxTimeParticleFunction()
Construct a new function that manages a particle's lifetime based on the maximum age it can be |
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 |
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 MaxTimeParticleFunction()
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 apply(Particle particle)
apply
in interface ParticleFunction
particle
- The particle to apply the function to
public boolean newFrame(int deltaT)
newFrame
in interface ParticleFunction
deltaT
- The elapsed time in milliseconds since the last frame
|
j3d.org Code | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |