OpenSceneGraph 2.8.4
Public Member Functions | Protected Member Functions | Protected Attributes
osgParticle::ConstantRateCounter Class Reference
Inheritance diagram for osgParticle::ConstantRateCounter:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 ConstantRateCounter ()
 ConstantRateCounter (const ConstantRateCounter &copy, const osg::CopyOp &copyop=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

Constructor & Destructor Documentation

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]

Member Function Documentation

int osgParticle::ConstantRateCounter::getMinimumNumberOfParticlesToCreate ( ) const [inline]
double osgParticle::ConstantRateCounter::getNumberOfParticlesPerSecondToCreate ( ) const [inline]
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]
void osgParticle::ConstantRateCounter::setNumberOfParticlesPerSecondToCreate ( double  numPerSecond) [inline]

Member Data Documentation

double osgParticle::ConstantRateCounter::_carryOver [mutable, protected]

Referenced by numParticlesToCreate().


The documentation for this class was generated from the following file:

osg logo
Generated at Sun Jan 8 2012 13:16:47 for the OpenSceneGraph by doxygen 1.7.4.