OpenSceneGraph 2.8.3
|
Public Member Functions | |
ConstantRateCounter () | |
ConstantRateCounter (const ConstantRateCounter ©, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
META_Object (osgParticle, ConstantRateCounter) | |
void | setMinimumNumberOfParticlesToCreate (int minNumToCreate) |
int | getMinimumNumberOfParticlesToCreate () const |
void | setNumberOfParticlesPerSecondToCreate (double numPerSecond) |
double | getNumberOfParticlesPerSecondToCreate () const |
virtual int | numParticlesToCreate (double dt) const |
Return the number of particles to be created in this frame. | |
Protected Member Functions | |
virtual | ~ConstantRateCounter () |
Protected Attributes | |
int | _minimumNumberOfParticlesToCreate |
double | _numberOfParticlesPerSecondToCreate |
double | _carryOver |
osgParticle::ConstantRateCounter::ConstantRateCounter | ( | ) | [inline] |
osgParticle::ConstantRateCounter::ConstantRateCounter | ( | const ConstantRateCounter & | copy, |
const osg::CopyOp & | copyop = osg::CopyOp::SHALLOW_COPY |
||
) | [inline] |
virtual osgParticle::ConstantRateCounter::~ConstantRateCounter | ( | ) | [inline, protected, virtual] |
int osgParticle::ConstantRateCounter::getMinimumNumberOfParticlesToCreate | ( | ) | const [inline] |
References _minimumNumberOfParticlesToCreate.
double osgParticle::ConstantRateCounter::getNumberOfParticlesPerSecondToCreate | ( | ) | const [inline] |
References _numberOfParticlesPerSecondToCreate.
osgParticle::ConstantRateCounter::META_Object | ( | osgParticle | , |
ConstantRateCounter | |||
) |
virtual int osgParticle::ConstantRateCounter::numParticlesToCreate | ( | double | dt | ) | const [inline, virtual] |
Return the number of particles to be created in this frame.
Implements osgParticle::Counter.
References _carryOver, _minimumNumberOfParticlesToCreate, _numberOfParticlesPerSecondToCreate, and osg::maximum().
void osgParticle::ConstantRateCounter::setMinimumNumberOfParticlesToCreate | ( | int | minNumToCreate | ) | [inline] |
References _minimumNumberOfParticlesToCreate.
void osgParticle::ConstantRateCounter::setNumberOfParticlesPerSecondToCreate | ( | double | numPerSecond | ) | [inline] |
References _numberOfParticlesPerSecondToCreate.
double osgParticle::ConstantRateCounter::_carryOver [mutable, protected] |
Referenced by numParticlesToCreate().
double osgParticle::ConstantRateCounter::_numberOfParticlesPerSecondToCreate [protected] |
![]() | Generated at Tue Mar 22 2011 13:20:28 for the OpenSceneGraph by doxygen 1.7.3. |