| Qwt User's Guide
    6.0.2
    | 
#include <qwt_interval.h>
| Public Types | |
| enum | BorderFlag { IncludeBorders = 0x00, ExcludeMinimum = 0x01, ExcludeMaximum = 0x02, ExcludeBorders = ExcludeMinimum | ExcludeMaximum } | 
| typedef QFlags< BorderFlag > | BorderFlags | 
A class representing an interval.
The interval is represented by 2 doubles, the lower and the upper limit.
Flag indicating if a border is included or excluded
| 
 | inline | 
| 
 | inline | 
Constructor
Build an interval with from min/max values
| minValue | Minimum value | 
| maxValue | Maximum value | 
| borderFlags | Include/Exclude borders | 
| 
 | inline | 
| bool QwtInterval::contains | ( | double | value | ) | const | 
Test if a value is inside an interval
| value | Value | 
| QwtInterval QwtInterval::extend | ( | double | value | ) | const | 
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
| value | Value | 
| bool QwtInterval::intersects | ( | const QwtInterval & | other | ) | const | 
Test if two intervals overlap
| 
 | inline | 
| QwtInterval QwtInterval::inverted | ( | ) | const | 
| 
 | inline | 
| 
 | inline | 
A interval is valid when minValue() <= maxValue(). In case of QwtInterval::ExcludeBorders it is true when minValue() < maxValue()
| QwtInterval QwtInterval::limited | ( | double | lowerBound, | 
| double | upperBound | ||
| ) | const | 
Limit the interval, keeping the border modes
| lowerBound | Lower limit | 
| upperBound | Upper limit | 
| 
 | inline | 
| 
 | inline | 
| QwtInterval QwtInterval::normalized | ( | ) | const | 
Normalize the limits of the interval.
If maxValue() < minValue() the limits will be inverted.
| 
 | inline | 
Intersection of two intervals
| 
 | inline | 
Union of two intervals
| 
 | inline | 
| QwtInterval & QwtInterval::operator|= | ( | double | value | ) | 
Extend an interval
| value | Value | 
| 
 | inline | 
| 
 | inline | 
Assign the limits of the interval
| minValue | Minimum value | 
| maxValue | Maximum value | 
| borderFlags | Include/Exclude borders | 
| 
 | inline | 
Assign the upper limit of the interval
| maxValue | Maximum value | 
| 
 | inline | 
Assign the lower limit of the interval
| minValue | Minimum value | 
| QwtInterval QwtInterval::symmetrize | ( | double | value | ) | const | 
Adjust the limit that is closer to value, so that value becomes the center of the interval.
| value | Center | 
| 
 | inline | 
Return the width of an interval The width of invalid intervals is 0.0, otherwise the result is maxValue() - minValue().
 1.8.1
 1.8.1