Go to the documentation of this file.
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
45 Q_DECLARE_FLAGS( BorderFlags, BorderFlag )
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;
99 BorderFlags m_borderFlags;
102 Q_DECLARE_OPERATORS_FOR_FLAGS(
QwtInterval::BorderFlags )
115 , m_borderFlags( IncludeBorders )
129 double minValue,
double maxValue, BorderFlags borderFlags )
130 : m_minValue( minValue )
131 , m_maxValue( maxValue )
132 , m_borderFlags( borderFlags )
144 double minValue,
double maxValue, BorderFlags borderFlags )
246 return static_cast< long double >(
m_maxValue )
275 return unite( other );
298 return ( !( *
this == other ) );
331 #ifndef QT_NO_DEBUG_STREAM
QwtInterval operator|(const QwtInterval &) const
QwtInterval extend(double value) const
Extend the interval.
QwtInterval operator&(const QwtInterval &) const
Intersection of two intervals.
bool operator!=(const QwtInterval &) const
Compare two intervals.
QwtInterval intersect(const QwtInterval &) const
Intersect 2 intervals.
BorderFlags borderFlags() const
void setInterval(double minValue, double maxValue, BorderFlags=IncludeBorders)
A class representing an interval.
double width() const
Return the width of an interval.
Q_DECLARE_TYPEINFO(QwtInterval, Q_MOVABLE_TYPE)
void setBorderFlags(BorderFlags)
QWT_EXPORT QDebug operator<<(QDebug, const QwtInterval &)
QwtInterval()
Border flags.
QwtInterval unite(const QwtInterval &) const
Unite 2 intervals.
@ ExcludeBorders
Min/Max values are not included in the interval.
BorderFlags m_borderFlags
long double widthL() const
Return the width of an interval as long double.
bool isValid(int axisPos)
bool operator==(const QwtInterval &) const
Compare two intervals.
plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:45