Inheritance diagram for osgParticle::ModularProgram:
Public Member Functions | |
ModularProgram () | |
ModularProgram (const ModularProgram ©, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
META_Node (osgParticle, ModularProgram) | |
int | numOperators () const |
Get the number of operators. | |
void | addOperator (Operator *o) |
Add an operator to the list. | |
Operator * | getOperator (int i) |
Get a pointer to an operator in the list. | |
const Operator * | getOperator (int i) const |
Get a const pointer to an operator in the list. | |
void | removeOperator (int i) |
Remove an operator from the list. | |
Protected Member Functions | |
virtual | ~ModularProgram () |
ModularProgram & | operator= (const ModularProgram &) |
void | execute (double dt) |
Execute the program on the particle system. Must be overriden in descendant classes. |
To use a ModularProgram
you have to create some Operator
objects and add them to the program. All operators will be applied to each particle in the same order they've been added to the program.
|
|
|
|
|
|
|
Add an operator to the list.
|
|
Execute the program on the particle system. Must be overriden in descendant classes.
Implements osgParticle::Program. |
|
Get a const pointer to an operator in the list.
|
|
Get a pointer to an operator in the list.
|
|
|
|
Get the number of operators.
|
|
|
|
Remove an operator from the list.
|