int numParticles() const
Get the number of allocated particles (alive + dead).
virtual bool isSameKindAs(const osg::Object *obj) const
bool isEnabled() const
Get whether this operator is enabled.
void setEnabled(bool v)
Enable or disable this operator.
virtual void endOperate()
Do something after all particles have been processed.
Operator & operator=(const Operator &)
virtual const char * className() const
bool isAlive() const
Get whether the particle is still alive.
virtual void operate(Particle *P, double dt)=0
virtual void operateParticles(ParticleSystem *ps, double dt)
Particle * getParticle(int i)
Get a pointer to the i-th particle.
virtual void beginOperate(Program *)
virtual const char * libraryName() const