10 #ifndef QWT_INTERVAL_H 11 #define QWT_INTERVAL_H 14 #include <qmetatype.h> 32 IncludeBorders = 0x00,
35 ExcludeMinimum = 0x01,
38 ExcludeMaximum = 0x02,
41 ExcludeBorders = ExcludeMinimum | ExcludeMaximum
49 BorderFlags = IncludeBorders );
51 void setInterval(
double minValue,
double maxValue,
52 BorderFlags = IncludeBorders );
56 QwtInterval limited(
double lowerBound,
double upperBound )
const;
61 void setBorderFlags( BorderFlags );
62 BorderFlags borderFlags()
const;
64 double minValue()
const;
65 double maxValue()
const;
68 long double widthL()
const;
70 void setMinValue(
double );
71 void setMaxValue(
double );
73 bool contains(
double value )
const;
113 d_borderFlags( IncludeBorders )
273 return unite( other );
296 return ( !( *
this == other ) );
332 #ifndef QT_NO_DEBUG_STREAM bool operator!=(const QwtInterval &) const
Compare two intervals.
enum MQTTPropertyCodes value
QFlags< BorderFlag > BorderFlags
Border flags.
constexpr bool operator!=(const optional< T > &lhs, const optional< U > &rhs)
relop
bool operator==(fp x, fp y)
A class representing an interval.
long double widthL() const
Return the width of an interval as long double.
QWT_EXPORT QDebug operator<<(QDebug, const QwtInterval &)
QwtInterval unite(const QwtInterval &) const
Unite 2 intervals.
QwtInterval operator|(const QwtInterval &) const
void setInterval(double minValue, double maxValue, BorderFlags=IncludeBorders)
QwtInterval operator&(const QwtInterval &) const
Intersection of two intervals.
QwtInterval intersect(const QwtInterval &) const
Intersect 2 intervals.
QwtInterval()
Default Constructor.
BorderFlags d_borderFlags
Q_DECLARE_TYPEINFO(QwtInterval, Q_MOVABLE_TYPE)
void setBorderFlags(BorderFlags)
BorderFlags borderFlags() const
bool operator==(const QwtInterval &) const
Compare two intervals.
QwtInterval extend(double value) const
Extend the interval.
Min/Max values are not included in the interval.
double width() const
Return the width of an interval.