Eneboo - Documentación para desarrolladores
|
A class representing an interval. Más...
#include <qwt_double_interval.h>
A class representing an interval.
The interval is represented by 2 doubles, the lower and the upper limit.
QwtDoubleInterval::QwtDoubleInterval | ( | ) | [inline] |
QwtDoubleInterval::QwtDoubleInterval | ( | double | minValue, |
double | maxValue | ||
) | [inline] |
Constructor
minValue | Minimum value |
maxValue | Maximum value |
bool QwtDoubleInterval::contains | ( | double | value | ) | const |
Test if a value is inside an interval
value | Value |
QwtDoubleInterval QwtDoubleInterval::extend | ( | double | value | ) | const |
QwtDoubleInterval QwtDoubleInterval::intersect | ( | const QwtDoubleInterval & | interval | ) | const |
Intersect 2 intervals.
bool QwtDoubleInterval::intersects | ( | const QwtDoubleInterval & | interval | ) | const |
Test if two intervals overlap
void QwtDoubleInterval::invalidate | ( | ) | [inline] |
QwtDoubleInterval QwtDoubleInterval::inverted | ( | ) | const |
bool QwtDoubleInterval::isNull | ( | ) | const [inline] |
bool QwtDoubleInterval::isValid | ( | void | ) | const [inline] |
QwtDoubleInterval QwtDoubleInterval::limited | ( | double | lBound, |
double | hBound | ||
) | const |
double QwtDoubleInterval::maxValue | ( | ) | const [inline] |
double QwtDoubleInterval::minValue | ( | ) | const [inline] |
QwtDoubleInterval QwtDoubleInterval::normalized | ( | ) | const |
Normalize the limits of the interval.
If maxValue() < minValue() the limits will be inverted.
int QwtDoubleInterval::operator!= | ( | const QwtDoubleInterval & | other | ) | const [inline] |
Compare two intervals.
QwtDoubleInterval QwtDoubleInterval::operator& | ( | const QwtDoubleInterval & | interval | ) | const [inline] |
Intersection of two intervals
QwtDoubleInterval & QwtDoubleInterval::operator&= | ( | const QwtDoubleInterval & | interval | ) |
int QwtDoubleInterval::operator== | ( | const QwtDoubleInterval & | other | ) | const [inline] |
Compare two intervals.
QwtDoubleInterval QwtDoubleInterval::operator| | ( | const QwtDoubleInterval & | interval | ) | const [inline] |
Union of two intervals
QwtDoubleInterval QwtDoubleInterval::operator| | ( | double | value | ) | const [inline] |
Extend an interval
QwtDoubleInterval & QwtDoubleInterval::operator|= | ( | double | value | ) |
QwtDoubleInterval & QwtDoubleInterval::operator|= | ( | const QwtDoubleInterval & | interval | ) |
void QwtDoubleInterval::setInterval | ( | double | minValue, |
double | maxValue | ||
) | [inline] |
Assign the limits of the interval
minValue | Minimum value |
maxValue | Maximum value |
void QwtDoubleInterval::setMaxValue | ( | double | maxValue | ) | [inline] |
Assign the upper limit of the interval
maxValue | Maximum value |
void QwtDoubleInterval::setMinValue | ( | double | minValue | ) | [inline] |
Assign the lower limit of the interval
minValue | Minimum value |
QwtDoubleInterval QwtDoubleInterval::symmetrize | ( | double | value | ) | const |
Adjust the limit that is closer to value, so that value becomes the center of the interval.
value | Center |
QwtDoubleInterval QwtDoubleInterval::unite | ( | const QwtDoubleInterval & | interval | ) | const |
Unite 2 intervals.
double QwtDoubleInterval::width | ( | ) | const [inline] |
Return the width of an interval The width of invalid intervals is 0.0, otherwise the result is maxValue() - minValue().