VR-Forces Developer's Guide
 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 ()
 
 DtDoubleSmoother (unsigned int smoothCount)
 
virtual ~DtDoubleSmoother ()
 
void addValue (double speed)
 
double currAvg ()
 
void reset ()
 
void setSmoothCount (unsigned int smoothCount)
 
bool queueFilled () const
 
int sampleCount () const
 

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 Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)