Inheritance diagram for osgParticle::Operator:
Public Member Functions | |
Operator () | |
Operator (const Operator ©, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
virtual const char * | libraryName () const |
virtual const char * | className () const |
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 | operate (Particle *P, double dt)=0 |
virtual void | beginOperate (Program *) |
virtual void | endOperate () |
Do something after all particles have been processed. | |
Protected Member Functions | |
virtual | ~Operator () |
Operator & | operator= (const Operator &) |
ModularProgram
to perform operations on particles before they are updated. To implement a new operator, derive from this class and override the operate()
method. You should also override the beginOperate()
method to query the calling program for the reference frame used, and initialize the right transformations if needed.
|
|
|
|
|
|
|
Do something before processing particles via the Reimplemented in osgParticle::AccelOperator, osgParticle::AngularAccelOperator, osgParticle::FluidFrictionOperator, and osgParticle::ForceOperator. |
|
return the name of the object's class type. Must be defined by derived classes. Implements osg::Object. |
|
Do something after all particles have been processed.
|
|
Get whether this operator is enabled.
|
|
|
|
return the name of the object's library. Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. Implements osg::Object. |
|
Do something on a particle. This method is called by Implemented in osgParticle::AccelOperator, osgParticle::AngularAccelOperator, osgParticle::FluidFrictionOperator, and osgParticle::ForceOperator. |
|
|
|
Enable or disable this operator.
|