12 #include <qalgorithms.h> 63 if ( value < d_minValue || value >
d_maxValue )
208 *
this = *
this | other;
220 *
this = *
this & other;
278 return QwtInterval( value - delta, value + delta );
291 if ( !
isValid() || lowerBound > upperBound )
295 minValue = qMin( minValue, upperBound );
298 maxValue = qMin( maxValue, upperBound );
335 *
this = *
this | value;
339 #ifndef QT_NO_DEBUG_STREAM 345 debug.nospace() <<
"QwtInterval(" 351 return debug.space();
QwtInterval limited(double minValue, double maxValue) const
QwtInterval normalized() const
Normalize the limits of the interval.
QFlags< BorderFlag > BorderFlags
Border flags.
bool contains(double value) const
A class representing an interval.
Max value is not included in the interval.
bool intersects(const QwtInterval &) const
Test if two intervals overlap.
QwtInterval unite(const QwtInterval &) const
Unite 2 intervals.
QDebug operator<<(QDebug debug, const QwtInterval &interval)
QwtInterval intersect(const QwtInterval &) const
Intersect 2 intervals.
QwtInterval inverted() const
QwtInterval & operator|=(const QwtInterval &)
Unite this interval with the given interval.
QwtInterval()
Default Constructor.
Min value is not included in the interval.
BorderFlags d_borderFlags
void setBorderFlags(BorderFlags)
BorderFlags borderFlags() const
QwtInterval & operator&=(const QwtInterval &)
Intersect this interval with the given interval.
QwtInterval extend(double value) const
Extend the interval.
QwtInterval symmetrize(double value) const
Min/Max values are inside the interval.