1
.TH "QwtDoubleInterval" 3 "22 Mar 2009" "Version 5.1.2" "Qwt User's Guide" \" -*- nroff -*-
9
.SH "Detailed Description"
11
A class representing an interval.
13
The interval is represented by 2 doubles, the lower and the upper limit.
15
Definition at line 21 of file qwt_double_interval.h.
16
.SS "Public Member Functions"
20
.RI "\fBQwtDoubleInterval\fP ()"
23
.RI "\fBQwtDoubleInterval\fP (double minValue, double maxValue)"
26
.RI "void \fBsetInterval\fP (double minValue, double maxValue)"
29
.RI "\fBQwtDoubleInterval\fP \fBnormalized\fP () const"
32
.RI "\fBQwtDoubleInterval\fP \fBinverted\fP () const"
35
.RI "\fBQwtDoubleInterval\fP \fBlimited\fP (double minValue, double maxValue) const"
38
.RI "int \fBoperator==\fP (const \fBQwtDoubleInterval\fP &) const"
41
.RI "int \fBoperator!=\fP (const \fBQwtDoubleInterval\fP &) const"
44
.RI "double \fBminValue\fP () const"
47
.RI "double \fBmaxValue\fP () const"
50
.RI "double \fBwidth\fP () const"
53
.RI "void \fBsetMinValue\fP (double)"
56
.RI "void \fBsetMaxValue\fP (double)"
59
.RI "bool \fBcontains\fP (double value) const "
62
.RI "bool \fBintersects\fP (const \fBQwtDoubleInterval\fP &) const"
65
.RI "\fBQwtDoubleInterval\fP \fBintersect\fP (const \fBQwtDoubleInterval\fP &) const"
68
.RI "\fBQwtDoubleInterval\fP \fBunite\fP (const \fBQwtDoubleInterval\fP &) const"
71
.RI "\fBQwtDoubleInterval\fP \fBoperator|\fP (const \fBQwtDoubleInterval\fP &) const"
74
.RI "\fBQwtDoubleInterval\fP \fBoperator &\fP (const \fBQwtDoubleInterval\fP &) const"
77
.RI "\fBQwtDoubleInterval\fP & \fBoperator|=\fP (const \fBQwtDoubleInterval\fP &)"
80
.RI "\fBQwtDoubleInterval\fP & \fBoperator &=\fP (const \fBQwtDoubleInterval\fP &)"
83
.RI "\fBQwtDoubleInterval\fP \fBextend\fP (double value) const "
86
.RI "\fBQwtDoubleInterval\fP \fBoperator|\fP (double) const"
89
.RI "\fBQwtDoubleInterval\fP & \fBoperator|=\fP (double)"
92
.RI "bool \fBisValid\fP () const"
95
.RI "bool \fBisNull\fP () const"
98
.RI "void \fBinvalidate\fP ()"
101
.RI "\fBQwtDoubleInterval\fP \fBsymmetrize\fP (double value) const "
104
.SH "Constructor & Destructor Documentation"
106
.SS "QwtDoubleInterval::QwtDoubleInterval ()\fC [inline]\fP"
110
Creates an invalid interval [0.0, -1.0]
114
\fBsetInterval\fP, \fBisValid\fP
119
Definition at line 77 of file qwt_double_interval.h.
121
Referenced by extend(), intersect(), inverted(), limited(), normalized(), symmetrize(), and unite().
122
.SS "QwtDoubleInterval::QwtDoubleInterval (double minValue, double maxValue)\fC [inline]\fP"
128
\fIminValue\fP Minimum value
130
\fImaxValue\fP Maximum value
135
Definition at line 89 of file qwt_double_interval.h.
136
.SH "Member Function Documentation"
138
.SS "void QwtDoubleInterval::setInterval (double minValue, double maxValue)\fC [inline]\fP"
140
Assign the limits of the interval
144
\fIminValue\fP Minimum value
146
\fImaxValue\fP Maximum value
151
Definition at line 101 of file qwt_double_interval.h.
153
Referenced by QwtLog10ScaleEngine::autoScale().
154
.SS "\fBQwtDoubleInterval\fP QwtDoubleInterval::normalized () const"
156
Normalize the limits of the interval.
158
If \fBmaxValue()\fP < \fBminValue()\fP the limits will be inverted.
167
\fBisValid\fP, \fBinverted\fP
172
Definition at line 28 of file qwt_double_interval.cpp.
174
References isValid(), and QwtDoubleInterval().
176
Referenced by QwtLinearScaleEngine::autoScale(), and QwtLog10ScaleEngine::divideScale().
177
.SS "\fBQwtDoubleInterval\fP QwtDoubleInterval::inverted () const"
179
Invert the limits of the interval
193
Definition at line 43 of file qwt_double_interval.cpp.
195
References QwtDoubleInterval().
196
.SS "\fBQwtDoubleInterval\fP QwtDoubleInterval::limited (double lBound, double hBound) const"
202
\fIlBound\fP Lower limit
204
\fIhBound\fP Upper limit
214
Definition at line 159 of file qwt_double_interval.cpp.
216
References isValid(), maxValue(), minValue(), and QwtDoubleInterval().
218
Referenced by QwtLog10ScaleEngine::autoScale(), and QwtLog10ScaleEngine::divideScale().
219
.SS "int QwtDoubleInterval::operator== (const \fBQwtDoubleInterval\fP &) const\fC [inline]\fP"
221
Compare two intervals.
223
Definition at line 172 of file qwt_double_interval.h.
225
References d_maxValue, and d_minValue.
226
.SS "int QwtDoubleInterval::operator!= (const \fBQwtDoubleInterval\fP &) const\fC [inline]\fP"
228
Compare two intervals.
230
Definition at line 179 of file qwt_double_interval.h.
231
.SS "double QwtDoubleInterval::minValue () const\fC [inline]\fP"
235
Lower limit of the interval
240
Definition at line 128 of file qwt_double_interval.h.
242
Referenced by QwtLinearScaleEngine::align(), QwtLog10ScaleEngine::autoScale(), QwtLinearScaleEngine::autoScale(), QwtLinearColorMap::colorIndex(), QwtColorMap::colorTable(), QwtScaleEngine::contains(), QwtLog10ScaleEngine::divideScale(), intersect(), intersects(), limited(), QwtLog10ScaleEngine::log10(), QwtLog10ScaleEngine::pow10(), QwtAlphaColorMap::rgb(), QwtLinearColorMap::rgb(), QwtScaleDiv::setInterval(), QwtAbstractScale::setScale(), unite(), and QwtPlot::updateAxes().
243
.SS "double QwtDoubleInterval::maxValue () const\fC [inline]\fP"
247
Upper limit of the interval
252
Definition at line 134 of file qwt_double_interval.h.
254
Referenced by QwtLinearScaleEngine::align(), QwtLog10ScaleEngine::autoScale(), QwtLinearScaleEngine::autoScale(), QwtLinearColorMap::colorIndex(), QwtScaleEngine::contains(), QwtLog10ScaleEngine::divideScale(), intersect(), intersects(), limited(), QwtLog10ScaleEngine::log10(), QwtLog10ScaleEngine::pow10(), QwtScaleDiv::setInterval(), QwtAbstractScale::setScale(), unite(), and QwtPlot::updateAxes().
255
.SS "double QwtDoubleInterval::width () const\fC [inline]\fP"
257
Return the width of an interval The width of invalid intervals is 0.0, otherwise the result is \fBmaxValue()\fP - \fBminValue()\fP.
266
Definition at line 146 of file qwt_double_interval.h.
268
References isValid().
270
Referenced by QwtLog10ScaleEngine::autoScale(), QwtLinearScaleEngine::autoScale(), QwtLinearColorMap::colorIndex(), QwtColorMap::colorTable(), QwtScaleEngine::contains(), QwtLog10ScaleEngine::divideScale(), QwtLinearScaleEngine::divideScale(), QwtAlphaColorMap::rgb(), and QwtLinearColorMap::rgb().
271
.SS "void QwtDoubleInterval::setMinValue (double minValue)\fC [inline]\fP"
273
Assign the lower limit of the interval
277
\fIminValue\fP Minimum value
282
Definition at line 112 of file qwt_double_interval.h.
284
Referenced by QwtLinearScaleEngine::autoScale().
285
.SS "void QwtDoubleInterval::setMaxValue (double maxValue)\fC [inline]\fP"
287
Assign the upper limit of the interval
291
\fImaxValue\fP Maximum value
296
Definition at line 122 of file qwt_double_interval.h.
298
Referenced by QwtLinearScaleEngine::autoScale().
299
.SS "bool QwtDoubleInterval::contains (double value) const"
301
Test if a value is inside an interval
310
true, if value >= \fBminValue()\fP && value <= \fBmaxValue()\fP
315
Definition at line 54 of file qwt_double_interval.cpp.
317
References isValid().
319
Referenced by QwtRasterData::contourLines().
320
.SS "bool QwtDoubleInterval::intersects (const \fBQwtDoubleInterval\fP & interval) const"
322
Test if two intervals overlap
324
Definition at line 119 of file qwt_double_interval.cpp.
326
References isValid(), maxValue(), and minValue().
327
.SS "\fBQwtDoubleInterval\fP QwtDoubleInterval::intersect (const \fBQwtDoubleInterval\fP &) const"
329
Intersect 2 intervals.
331
Definition at line 83 of file qwt_double_interval.cpp.
333
References isValid(), maxValue(), minValue(), and QwtDoubleInterval().
335
Referenced by operator &().
336
.SS "\fBQwtDoubleInterval\fP QwtDoubleInterval::unite (const \fBQwtDoubleInterval\fP &) const"
340
Definition at line 63 of file qwt_double_interval.cpp.
342
References isValid(), maxValue(), minValue(), and QwtDoubleInterval().
344
Referenced by operator|().
345
.SS "\fBQwtDoubleInterval\fP QwtDoubleInterval::operator| (const \fBQwtDoubleInterval\fP & interval) const\fC [inline]\fP"
347
Union of two intervals
356
Definition at line 165 of file qwt_double_interval.h.
359
.SS "\fBQwtDoubleInterval\fP QwtDoubleInterval::operator & (const \fBQwtDoubleInterval\fP & interval) const\fC [inline]\fP"
361
Intersection of two intervals
370
Definition at line 155 of file qwt_double_interval.h.
372
References intersect().
373
.SS "\fBQwtDoubleInterval\fP QwtDoubleInterval::extend (double value) const"
377
If value is below minValue, value becomes the lower limit. If value is above maxValue, value becomes the upper limit.
379
extend has no effect for invalid intervals
393
Definition at line 185 of file qwt_double_interval.cpp.
395
References isValid(), and QwtDoubleInterval().
397
Referenced by QwtLog10ScaleEngine::autoScale(), QwtLinearScaleEngine::autoScale(), and operator|().
398
.SS "\fBQwtDoubleInterval\fP QwtDoubleInterval::operator| (double value) const\fC [inline]\fP"
409
Definition at line 188 of file qwt_double_interval.h.
412
.SS "bool QwtDoubleInterval::isValid () const\fC [inline]\fP"
416
true, if \fBminValue()\fP <= \fBmaxValue()\fP
421
Definition at line 200 of file qwt_double_interval.h.
423
Referenced by QwtColorMap::colorTable(), QwtScaleEngine::contains(), contains(), QwtRasterData::contourLines(), extend(), intersect(), intersects(), limited(), normalized(), QwtScaleEngine::strip(), symmetrize(), unite(), QwtPlot::updateAxes(), and width().
424
.SS "bool QwtDoubleInterval::isNull () const\fC [inline]\fP"
428
true, if \fBminValue()\fP >= \fBmaxValue()\fP
433
Definition at line 194 of file qwt_double_interval.h.
434
.SS "void QwtDoubleInterval::invalidate ()\fC [inline]\fP"
436
Invalidate the interval
438
The limits are set to interval [0.0, -1.0]
447
Definition at line 211 of file qwt_double_interval.h.
448
.SS "\fBQwtDoubleInterval\fP QwtDoubleInterval::symmetrize (double value) const"
450
Adjust the limit that is closer to value, so that value becomes the center of the interval.
459
Interval with value as center
464
Definition at line 140 of file qwt_double_interval.cpp.
466
References isValid(), and QwtDoubleInterval().
468
Referenced by QwtLinearScaleEngine::autoScale().
472
Generated automatically by Doxygen for Qwt User's Guide from the source code.