15#ifndef OSGPARTICLE_OPERATOR
16#define OSGPARTICLE_OPERATOR 1
40 virtual const char*
libraryName()
const {
return "osgParticle"; }
41 virtual const char*
className()
const {
return "Operator"; }
58 for (
int i=0; i<n; ++i)
98 :
osg::
Object(copy, copyop), _enabled(copy._enabled)
The core osg library provides the basic scene graph classes such as Nodes, State and Drawables,...
Definition AlphaFunc:19
The osgParticle library is a NodeKit that extends the core scene graph to support particle effects.
Definition AccelOperator:27
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
Base class/standard interface for objects which require IO support, cloning and reference counting.
Definition Object:61
Object()
Construct an object.
Definition Object:69
virtual const char * libraryName() const
return the name of the object's library.
Definition Operator:40
void setEnabled(bool v)
Enable or disable this operator.
Definition Operator:107
virtual ~Operator()
Definition Operator:83
virtual void endOperate()
Do something after all particles have been processed.
Definition Operator:80
virtual const char * className() const
return the name of the object's class type.
Definition Operator:41
virtual void operateParticles(ParticleSystem *ps, double dt)
Do something on all emitted particles.
Definition Operator:55
bool isEnabled() const
Get whether this operator is enabled.
Definition Operator:102
Operator & operator=(const Operator &)
Definition Operator:84
virtual void operate(Particle *P, double dt)=0
Do something on a particle.
Operator()
Definition Operator:92
virtual bool isSameKindAs(const osg::Object *obj) const
Definition Operator:42
virtual void beginOperate(Program *)
Do something before processing particles via the operate() method.
Definition Operator:77
Implementation of a particle.
Definition Particle:47
bool isAlive() const
Get whether the particle is still alive.
Definition Particle:348
The heart of this class library; its purpose is to hold a set of particles and manage particle creati...
Definition ParticleSystem:54
Particle * getParticle(int i)
Get a pointer to the i-th particle.
Definition ParticleSystem:437
int numParticles() const
Get the number of allocated particles (alive + dead).
Definition ParticleSystem:427
An abstract ParticleProcessor descendant for modifying particles "on the fly" during the cull travers...
Definition Program:36