VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtDoubleSmoother.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
13 
14 #include <queue>
15 
16 namespace makVrv
17 {
19  {
20  public:
23 
25  DtDoubleSmoother( unsigned int smoothCount );
26 
28  virtual ~DtDoubleSmoother();
29 
31  void addValue( double speed );
32 
34  double currAvg();
35 
37  void reset();
38 
40  void setSmoothCount( unsigned int smoothCount );
41 
43  bool queueFilled() const;
44 
46  int sampleCount() const;
47 
48  protected:
49  unsigned int mySmoothCount, mySampleCount;
51  std::queue<double> myQueue;
52  };
53 }
unsigned int mySmoothCount
Definition: DtDoubleSmoother.h:49
double myCurrentTotal
Definition: DtDoubleSmoother.h:50
Definition: DtDoubleSmoother.h:18
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
std::queue< double > myQueue
Definition: DtDoubleSmoother.h:51
Contains DLL export macros.

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)