The interval is represented by 2 doubles, the lower and the upper limit.
Definition at line 21 of file qwt_double_interval.h.
|
Default Constructor. Creates an invalid interval [0.0, -1.0]
Definition at line 77 of file qwt_double_interval.h. Referenced by extend(), intersect(), inverted(), limited(), normalized(), symmetrize(), and unite(). |
|
Constructor
Definition at line 89 of file qwt_double_interval.h. |
|
Test if a value is inside an interval
Definition at line 54 of file qwt_double_interval.cpp. References isValid(). |
|
Extend the interval If value is below minValue, value becomes the lower limit. If value is above maxValue, value becomes the upper limit. extend has no effect for invalid intervals
Definition at line 185 of file qwt_double_interval.cpp. References isValid(), and QwtDoubleInterval(). Referenced by QwtLog10ScaleEngine::autoScale(), QwtLinearScaleEngine::autoScale(), and operator|(). |
|
Intersect 2 intervals.
Definition at line 83 of file qwt_double_interval.cpp. References isValid(), maxValue(), minValue(), and QwtDoubleInterval(). Referenced by operator &(). |
|
Test if two intervals overlap Definition at line 119 of file qwt_double_interval.cpp. References isValid(), maxValue(), and minValue(). |
|
Invalidate the interval The limits are set to interval [0.0, -1.0]
Definition at line 211 of file qwt_double_interval.h. |
|
Invert the limits of the interval
Definition at line 43 of file qwt_double_interval.cpp. References QwtDoubleInterval(). |
|
Definition at line 194 of file qwt_double_interval.h. |
|
Definition at line 200 of file qwt_double_interval.h. Referenced by QwtLinearColorMap::colorIndex(), QwtColorMap::colorTable(), QwtScaleEngine::contains(), contains(), QwtRasterData::contourLines(), extend(), intersect(), intersects(), limited(), normalized(), QwtAlphaColorMap::rgb(), QwtScaleEngine::strip(), symmetrize(), unite(), and width(). |
|
Limit the interval
Definition at line 159 of file qwt_double_interval.cpp. References isValid(), maxValue(), minValue(), and QwtDoubleInterval(). Referenced by QwtLog10ScaleEngine::autoScale(), and QwtLog10ScaleEngine::divideScale(). |
|
Definition at line 134 of file qwt_double_interval.h. Referenced by QwtLinearScaleEngine::align(), QwtLog10ScaleEngine::autoScale(), QwtLinearScaleEngine::autoScale(), QwtLinearColorMap::colorIndex(), QwtScaleEngine::contains(), QwtLog10ScaleEngine::divideScale(), intersect(), intersects(), limited(), QwtLog10ScaleEngine::log10(), QwtLog10ScaleEngine::pow10(), QwtAbstractScale::setScale(), and unite(). |
|
Definition at line 128 of file qwt_double_interval.h. 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(), QwtAbstractScale::setScale(), and unite(). |
|
Normalize the limits of the interval. If maxValue() > minValue() the limits will be inverted.
Definition at line 28 of file qwt_double_interval.cpp. References isValid(), and QwtDoubleInterval(). Referenced by QwtLinearScaleEngine::autoScale(), and QwtLog10ScaleEngine::divideScale(). |
|
Intersection of two intervals
Definition at line 155 of file qwt_double_interval.h. References intersect(). |
|
Compare two intervals.
Definition at line 179 of file qwt_double_interval.h. |
|
Compare two intervals.
Definition at line 172 of file qwt_double_interval.h. References d_maxValue, and d_minValue. |
|
Extend an interval
Definition at line 188 of file qwt_double_interval.h. References extend(). |
|
Union of two intervals
Definition at line 165 of file qwt_double_interval.h. References unite(). |
|
Assign the limits of the interval
Definition at line 101 of file qwt_double_interval.h. Referenced by QwtLog10ScaleEngine::autoScale(). |
|
Assign the upper limit of the interval
Definition at line 122 of file qwt_double_interval.h. Referenced by QwtLinearScaleEngine::autoScale(). |
|
Assign the lower limit of the interval
Definition at line 112 of file qwt_double_interval.h. Referenced by QwtLinearScaleEngine::autoScale(). |
|
Adjust the limit that is closer to value, so that value becomes the center of the interval.
Definition at line 140 of file qwt_double_interval.cpp. References isValid(), and QwtDoubleInterval(). Referenced by QwtLinearScaleEngine::autoScale(). |
|
Unite 2 intervals.
Definition at line 63 of file qwt_double_interval.cpp. References isValid(), maxValue(), minValue(), and QwtDoubleInterval(). Referenced by operator|(). |
|
Return the width of an interval The width of invalid intervals is 0.0, otherwise the result is maxValue() - minValue().
Definition at line 146 of file qwt_double_interval.h. References isValid(). Referenced by QwtLog10ScaleEngine::autoScale(), QwtLinearScaleEngine::autoScale(), QwtLinearColorMap::colorIndex(), QwtColorMap::colorTable(), QwtScaleEngine::contains(), QwtLog10ScaleEngine::divideScale(), QwtLinearScaleEngine::divideScale(), QwtAlphaColorMap::rgb(), and QwtLinearColorMap::rgb(). |