VR-Forces 4.6.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrvCore
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
{
18
class
DT_DLL_VRVCORE
DtDoubleSmoother
19
{
20
public
:
22
DtDoubleSmoother
();
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;
50
double
myCurrentTotal
;
51
std::queue<double>
myQueue
;
52
};
53
}
Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)