osgParticle::ModularEmitter Class Reference
An emitter class that holds three objects to control the creation of particles.
More...
List of all members.
Detailed Description
An emitter class that holds three objects to control the creation of particles.
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.
Constructor & Destructor Documentation
osgParticle::ModularEmitter::ModularEmitter |
( |
|
) |
|
osgParticle::ModularEmitter::ModularEmitter |
( |
const ModularEmitter & |
copy, |
|
|
const osg::CopyOp & |
copyop = osg::CopyOp::SHALLOW_COPY | |
|
) |
| | |
virtual osgParticle::ModularEmitter::~ModularEmitter |
( |
|
) |
[inline, protected, virtual] |
Member Function Documentation
virtual void osgParticle::ModularEmitter::emit |
( |
double |
dt |
) |
[protected, virtual] |
const Counter * osgParticle::ModularEmitter::getCounter |
( |
|
) |
const [inline] |
Counter * osgParticle::ModularEmitter::getCounter |
( |
|
) |
[inline] |
float osgParticle::ModularEmitter::getNumParticlesToCreateMovementCompensationRatio |
( |
|
) |
const [inline] |
Get the ratio between number of particle to create in compensation for movement of the emitter.
const Placer * osgParticle::ModularEmitter::getPlacer |
( |
|
) |
const [inline] |
Placer * osgParticle::ModularEmitter::getPlacer |
( |
|
) |
[inline] |
const Shooter * osgParticle::ModularEmitter::getShooter |
( |
|
) |
const [inline] |
Shooter * osgParticle::ModularEmitter::getShooter |
( |
|
) |
[inline] |
osgParticle::ModularEmitter::META_Node |
( |
osgParticle |
, |
|
|
ModularEmitter |
| |
|
) |
| | |
void osgParticle::ModularEmitter::setCounter |
( |
Counter * |
c |
) |
[inline] |
void osgParticle::ModularEmitter::setNumParticlesToCreateMovementCompensationRatio |
( |
float |
r |
) |
[inline] |
Set the ratio between number of particle to create in compenstation for movement of the emitter.
void osgParticle::ModularEmitter::setPlacer |
( |
Placer * |
p |
) |
[inline] |
void osgParticle::ModularEmitter::setShooter |
( |
Shooter * |
s |
) |
[inline] |
The documentation for this class was generated from the following file: