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

osgParticle::ConstantRateCounter::META_Object ( osgParticle  ,
ConstantRateCounter   
)

void osgParticle::ConstantRateCounter::setMinimumNumberOfParticlesToCreate ( int  minNumToCreate  )  [inline]

int osgParticle::ConstantRateCounter::getMinimumNumberOfParticlesToCreate (  )  const [inline]

void osgParticle::ConstantRateCounter::setNumberOfParticlesPerSecondToCreate ( double  numPerSecond  )  [inline]

double osgParticle::ConstantRateCounter::getNumberOfParticlesPerSecondToCreate (  )  const [inline]

virtual int osgParticle::ConstantRateCounter::numParticlesToCreate ( double  dt  )  const [inline, virtual]

Return the number of particles to be created in this frame.

Implements osgParticle::Counter.


Member Data Documentation

int osgParticle::ConstantRateCounter::_minimumNumberOfParticlesToCreate [protected]

double osgParticle::ConstantRateCounter::_numberOfParticlesPerSecondToCreate [protected]

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


The documentation for this class was generated from the following file:
Generated at Sun Oct 14 02:12:42 2007 for the OpenSceneGraph by doxygen 1.5.3.