15#ifndef OSGPARTICLE_VARIABLERATE_COUNTER
16#define OSGPARTICLE_VARIABLERATE_COUNTER 1
32 virtual const char*
libraryName()
const {
return "osgParticle"; }
33 virtual const char*
className()
const {
return "VariableRateCounter"; }
38 inline void setRateRange(
float minrange,
float maxrange);
57 :
Counter(copy, copyop), _rate_range(copy._rate_range)
73 _rate_range.
set(minrange, maxrange);
The osgParticle library is a NodeKit that extends the core scene graph to support particle effects.
Definition AccelOperator:27
range< float > rangef
Range of floats.
Definition range:76
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
Base class/standard interface for objects which require IO support, cloning and reference counting.
Definition Object:61
Counter()
Definition Counter:46
void set(const ValueType &mn, const ValueType &mx)
Set min and max.
Definition range:54
virtual const char * className() const
return the name of the object's class type.
Definition VariableRateCounter:33
VariableRateCounter()
Definition VariableRateCounter:51
void setRateRange(const rangef &r)
Definition VariableRateCounter:66
const rangef & getRateRange() const
Definition VariableRateCounter:61
virtual ~VariableRateCounter()
Definition VariableRateCounter:43
virtual bool isSameKindAs(const osg::Object *obj) const
Definition VariableRateCounter:34
virtual const char * libraryName() const
return the name of the object's library.
Definition VariableRateCounter:32
virtual int getEstimatedMaxNumOfParticles(double lifeTime) const
get the esimated maximum number of particles that would be generated duration the lifetime of a parti...
Definition VariableRateCounter:40