-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathqwt_double_range.h
More file actions
36 lines (27 loc) · 882 Bytes
/
qwt_double_range.h
File metadata and controls
36 lines (27 loc) · 882 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#pragma once
/*!
\brief A class which controls a value within an interval
This class is useful as a base class or a member for sliders.
It represents an interval of type double within which a value can
be moved. The value can be either an arbitrary point inside
the interval (see QwtDoubleRange::setValue), or it can be fitted
into a step raster (see QwtDoubleRange::fitValue and
QwtDoubleRange::incValue).
*/
class QwtDoubleRange
{
public:
QwtDoubleRange();
void setRange( double vmin, double vmax,
double vstep = 0.0 );
virtual void setValue( double );
void setStep( double );
double minValue;
double maxValue;
double step;
double value;
protected:
virtual void valueChange() { }
virtual void rangeChange() { }
void setNewValue( double value, bool align = false );
};