OpenCOVER
valuator.h
Go to the documentation of this file.
1/* This file is part of COVISE.
2
3 You can use it under the terms of the GNU Lesser General Public License
4 version 2.1 or later, see lgpl-2.1.txt.
5
6 * License: LGPL 2+ */
7
8/*
9 * valuator.h
10 *
11 * Created on: Dec 5, 2014
12 * Author: svnvlad
13 */
14
15#ifndef VALUATOR_H
16#define VALUATOR_H
17
18#include <string>
19#include <util/coExport.h>
20#include "inputsource.h"
21
22namespace opencover
23{
24
25class InputDevice;
26
27class COVEREXPORT Valuator: public InputSource
28{
29 friend class Input;
30
31public:
32 double getValue() const;
33 std::pair<double, double> getRange() const;
34
35private:
36 Valuator(const std::string &name);
37
38 void update();
39 void setValue(double value);
40 void setRange(double min, double max);
41
42 size_t m_idx;
43 double m_value;
44 double m_min, m_max;
45};
46}
47#endif
Definition: ARToolKit.h:33
The Input class.
Definition: input.h:40
Definition: inputsource.h:28
Definition: valuator.h:28
double getValue() const
std::pair< double, double > getRange() const