Inheritance diagram for osgParticle::ModularEmitter:
Public Member Functions | |
ModularEmitter () | |
ModularEmitter (const ModularEmitter ©, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
META_Node (osgParticle, ModularEmitter) | |
Counter * | getCounter () |
Get the counter object. | |
const Counter * | getCounter () const |
Get the const Counter object. | |
void | setCounter (Counter *c) |
Set the Counter object. | |
float | getNumParticlesToCreateMovementCompenstationRatio () const |
Get the ratio between number of particle to create in compenstation for movement of the emitter. | |
void | setNumParticlesToCreateMovementCompenstationRatio (float r) |
Set the ratio between number of particle to create in compenstation for movement of the emitter. | |
Placer * | getPlacer () |
Get the Placer object. | |
const Placer * | getPlacer () const |
Get the const Placer object. | |
void | setPlacer (Placer *p) |
Set the Placer object. | |
Shooter * | getShooter () |
Get the Shooter object. | |
const Shooter * | getShooter () const |
Get the const Shooter object. | |
void | setShooter (Shooter *s) |
Set the Shooter object. | |
Protected Member Functions | |
virtual | ~ModularEmitter () |
ModularEmitter & | operator= (const ModularEmitter &) |
virtual void | emit (double dt) |
These objects are a counter, a placer and a shooter. The counter controls the number of particles to be emitted at each frame; the placer must initialize the particle's position vector, while the shooter initializes its velocity vector. You can use the predefined counter/placer/shooter classes, or you can create your own.
|
|
|
|
|
|
|
Implements osgParticle::Emitter. |
|
Get the const Counter object.
|
|
Get the counter object.
|
|
Get the ratio between number of particle to create in compenstation for movement of the emitter.
|
|
Get the const Placer object.
|
|
Get the Placer object.
|
|
Get the const Shooter object.
|
|
Get the Shooter object.
|
|
|
|
|
|
Set the Counter object.
|
|
Set the ratio between number of particle to create in compenstation for movement of the emitter.
|
|
Set the Placer object.
|
|
Set the Shooter object.
|