VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 }

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)