VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
makVrv::DtDoubleSmoother Class Reference

Public Member Functions

 DtDoubleSmoother ()
 CTOR. More...
 
 DtDoubleSmoother (unsigned int smoothCount)
 CTOR - smoothCount for num samples. More...
 
virtual ~DtDoubleSmoother ()
 DTOR. More...
 
void addValue (double speed)
 Add a speed to the smoother. More...
 
double currAvg ()
 Get the currently smoothed value. More...
 
void reset ()
 Reset the smoother. More...
 
void setSmoothCount (unsigned int smoothCount)
 Set the number of samples to smooth. More...
 
bool queueFilled () const
 Do we have a full set of points to sample? More...
 
int sampleCount () const
 How many values are we averaging. More...
 

Protected Attributes

unsigned int mySmoothCount
 
unsigned int mySampleCount
 
double myCurrentTotal
 
std::queue< doublemyQueue
 

Constructor & Destructor Documentation

makVrv::DtDoubleSmoother::DtDoubleSmoother ( )

CTOR.

makVrv::DtDoubleSmoother::DtDoubleSmoother ( unsigned int  smoothCount)

CTOR - smoothCount for num samples.

virtual makVrv::DtDoubleSmoother::~DtDoubleSmoother ( )
virtual

DTOR.

Member Function Documentation

void makVrv::DtDoubleSmoother::addValue ( double  speed)

Add a speed to the smoother.

double makVrv::DtDoubleSmoother::currAvg ( )

Get the currently smoothed value.

void makVrv::DtDoubleSmoother::reset ( )

Reset the smoother.

void makVrv::DtDoubleSmoother::setSmoothCount ( unsigned int  smoothCount)

Set the number of samples to smooth.

bool makVrv::DtDoubleSmoother::queueFilled ( ) const

Do we have a full set of points to sample?

int makVrv::DtDoubleSmoother::sampleCount ( ) const

How many values are we averaging.

Member Data Documentation

unsigned int makVrv::DtDoubleSmoother::mySmoothCount
protected
unsigned int makVrv::DtDoubleSmoother::mySampleCount
protected
double makVrv::DtDoubleSmoother::myCurrentTotal
protected
std::queue<double> makVrv::DtDoubleSmoother::myQueue
protected

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)