|
QWT API (English) 7.0.1
Qt Widget Library for Technical Applications - English API Documentation
|
A class representing an interval. More...
#include <qwt_interval.h>
Public Types | |
| enum | BorderFlag { IncludeBorders = 0x00 , ExcludeMinimum = 0x01 , ExcludeMaximum = 0x02 , ExcludeBorders = ExcludeMinimum | ExcludeMaximum } |
Public Member Functions | |
| QwtInterval () | |
| Border flags. | |
| QwtInterval (double minValue, double maxValue, BorderFlags=IncludeBorders) | |
| Constructor with min/max values. | |
| void | setInterval (double minValue, double maxValue, BorderFlags=IncludeBorders) |
| Assign the limits of the interval. | |
| QwtInterval | normalized () const |
| Normalize the limits of the interval. | |
| QwtInterval | inverted () const |
| Invert the interval. | |
| QwtInterval | limited (double lowerBound, double upperBound) const |
| Limit the interval, keeping the border modes. | |
| bool | operator== (const QwtInterval &) const |
| Compare two intervals. | |
| bool | operator!= (const QwtInterval &) const |
| Compare two intervals. | |
| void | setBorderFlags (BorderFlags) |
| Change the border flags. | |
| BorderFlags | borderFlags () const |
| double | minValue () const |
| double | maxValue () const |
| double | centerValue () const |
| double | width () const |
| Return the width of an interval. | |
| long double | widthL () const |
| Return the width of an interval as long double. | |
| void | setMinValue (double) |
| Assign the lower limit of the interval. | |
| void | setMaxValue (double) |
| Assign the upper limit of the interval. | |
| bool | contains (double value) const |
| Test if a value is inside an interval. | |
| bool | contains (const QwtInterval &) const |
| Test if an interval is inside an interval. | |
| bool | intersects (const QwtInterval &) const |
| Test if two intervals overlap. | |
| QwtInterval | intersect (const QwtInterval &) const |
| Intersect two intervals. | |
| QwtInterval | unite (const QwtInterval &) const |
| Unite two intervals. | |
| QwtInterval | operator| (const QwtInterval &) const |
| Union of two intervals. | |
| QwtInterval | operator& (const QwtInterval &) const |
| Intersection of two intervals. | |
| QwtInterval & | operator|= (const QwtInterval &) |
| Unite this interval with the given interval. | |
| QwtInterval & | operator&= (const QwtInterval &) |
| Intersect this interval with the given interval. | |
| QwtInterval | extend (double value) const |
| Extend the interval. | |
| QwtInterval | operator| (double) const |
| Extend an interval. | |
| QwtInterval & | operator|= (double) |
| Extend an interval. | |
| bool | isValid () const |
| Check if the interval is valid. | |
| bool | isNull () const |
| Check if interval is null. | |
| void | invalidate () |
| Invalidate the interval. | |
| QwtInterval | symmetrize (double value) const |
| Symmetrize the interval around a value. | |
A class representing an interval.
Flag indicating if a border is included or excluded
|
inline |
Border flags.
Default Constructor.
|
inline |
Constructor with min/max values.
|
inline |
|
inline |
| bool QwtInterval::contains | ( | const QwtInterval & | interval | ) | const |
Test if an interval is inside an interval.
| bool QwtInterval::contains | ( | double | value | ) | const |
Test if a value is inside an interval.
| QwtInterval QwtInterval::extend | ( | double | value | ) | const |
Extend the interval.
| QwtInterval QwtInterval::intersect | ( | const QwtInterval & | other | ) | const |
Intersect two intervals.
| bool QwtInterval::intersects | ( | const QwtInterval & | other | ) | const |
Test if two intervals overlap.
|
inline |
Invalidate the interval.
| QwtInterval QwtInterval::inverted | ( | ) | const |
Invert the interval.
|
inline |
Check if interval is null.
|
inline |
Check if the interval is valid.
| QwtInterval QwtInterval::limited | ( | double | lowerBound, |
| double | upperBound | ||
| ) | const |
Limit the interval, keeping the border modes.
|
inline |
|
inline |
| QwtInterval QwtInterval::normalized | ( | ) | const |
Normalize the limits of the interval.
|
inline |
Compare two intervals.
|
inline |
Intersection of two intervals.
| QwtInterval & QwtInterval::operator&= | ( | const QwtInterval & | other | ) |
Intersect this interval with the given interval.
|
inline |
Compare two intervals.
|
inline |
Union of two intervals.
|
inline |
Extend an interval.
| QwtInterval & QwtInterval::operator|= | ( | const QwtInterval & | other | ) |
Unite this interval with the given interval.
| QwtInterval & QwtInterval::operator|= | ( | double | value | ) |
Extend an interval.
|
inline |
Change the border flags.
|
inline |
Assign the limits of the interval.
|
inline |
Assign the upper limit of the interval.
|
inline |
Assign the lower limit of the interval.
| QwtInterval QwtInterval::symmetrize | ( | double | value | ) | const |
Symmetrize the interval around a value.
| QwtInterval QwtInterval::unite | ( | const QwtInterval & | other | ) | const |
Unite two intervals.
|
inline |
Return the width of an interval.
|
inline |
Return the width of an interval as long double.