10 #ifndef QWT_INTERVAL_H
11 #define QWT_INTERVAL_H
13 #include "qwt_global.h"
14 #include <qmetatype.h>
16 #ifndef QT_NO_DEBUG_STREAM
36 IncludeBorders = 0x00,
39 ExcludeMinimum = 0x01,
42 ExcludeMaximum = 0x02,
45 ExcludeBorders = ExcludeMinimum | ExcludeMaximum
55 void setInterval(
double minValue,
double maxValue,
60 QwtInterval limited(
double minValue,
double maxValue )
const;
68 double minValue()
const;
69 double maxValue()
const;
73 void setMinValue(
double );
74 void setMaxValue(
double );
76 bool contains(
double value )
const;
115 d_borderFlags( IncludeBorders )
129 double minValue,
double maxValue,
BorderFlags borderFlags ):
130 d_minValue( minValue ),
131 d_maxValue( maxValue ),
132 d_borderFlags( borderFlags )
144 double minValue,
double maxValue,
BorderFlags borderFlags )
168 return d_borderFlags;
211 return d_minValue <= d_maxValue;
213 return d_minValue < d_maxValue;
225 return isValid() ? ( d_maxValue - d_minValue ) : 0.0;
245 return unite( interval );
251 return ( d_minValue == other.d_minValue ) &&
252 ( d_maxValue == other.d_maxValue ) &&
253 ( d_borderFlags == other.d_borderFlags );
259 return ( !( *
this == other ) );
277 return isValid() && d_minValue >= d_maxValue;
295 #ifndef QT_NO_DEBUG_STREAM
296 QWT_EXPORT QDebug operator<<( QDebug,
const QwtInterval & );