10 #ifndef QWT_DOUBLE_INTERVAL_H
11 #define QWT_DOUBLE_INTERVAL_H
13 #include "qwt_global.h"
45 ExcludeBorders = ExcludeMinimum | ExcludeMaximum
50 int borderFlags = IncludeBorders);
52 void setInterval(
double minValue,
double maxValue,
53 int borderFlags = IncludeBorders);
62 void setBorderFlags(
int);
63 int borderFlags()
const;
65 double minValue()
const;
66 double maxValue()
const;
70 void setMinValue(
double);
71 void setMaxValue(
double);
73 bool contains(
double value)
const;
110 d_borderFlags(IncludeBorders)
124 double minValue,
double maxValue,
int borderFlags):
125 d_minValue(minValue),
126 d_maxValue(maxValue),
127 d_borderFlags(borderFlags)
139 double minValue,
double maxValue,
int borderFlags)
163 return d_borderFlags;
207 return isValid() ? (d_maxValue - d_minValue) : 0.0;
227 return unite(interval);
233 return (d_minValue == other.d_minValue) &&
234 (d_maxValue == other.d_maxValue) &&
235 (d_borderFlags == other.d_borderFlags);
241 return (!(*
this == other));
256 return isValid() && d_minValue >= d_maxValue;
266 if ( (d_borderFlags & ExcludeBorders) == 0 )
267 return d_minValue <= d_maxValue;
269 return d_minValue < d_maxValue;