|
j3d.org Code | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.j3d.geom.particle.ParticleSystemManager
The ParticleSystemManager is a simple manager that controls all of the available particle systems as a single set of updates.
The manager needs to have a clock ticking it to drive the updates of the managed particles. It has a List of registered ParticleSystems and calls the update method on each whenever it is triggered.
| Field Summary | |
protected ErrorReporter |
errorReporter
Local reporter to put errors in |
| Constructor Summary | |
ParticleSystemManager()
Create a new manager, with no systems registered. |
|
| Method Summary | |
void |
addParticleSystem(ParticleSystem system)
Add a new particle system to this manager. |
void |
removeParticleSystem(ParticleSystem system)
Remove a system from this manager. |
void |
setErrorReporter(ErrorReporter reporter)
Register an error reporter with the object so that any errors generated by the object can be reported in a nice, pretty fashion. |
void |
update()
Update the registered particle systems now. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected ErrorReporter errorReporter
| Constructor Detail |
public ParticleSystemManager()
| Method Detail |
public void setErrorReporter(ErrorReporter reporter)
reporter - The instance to use or nullpublic void update()
public void addParticleSystem(ParticleSystem system)
system - The new system to add to the managerpublic void removeParticleSystem(ParticleSystem system)
system - The system instance to remove
|
j3d.org Code | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||