13#include "qwt_global.h" 
   32        IncludeBorders = 0x00,
 
   35        ExcludeMinimum = 0x01,
 
   38        ExcludeMaximum = 0x02,
 
   41        ExcludeBorders = ExcludeMinimum | ExcludeMaximum
 
 
   51    void setInterval( 
double minValue, 
double maxValue,
 
   56    QwtInterval limited( 
double lowerBound, 
double upperBound ) 
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;
 
 
  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 )
 
 
  168    return m_borderFlags;
 
 
  213        return m_minValue <= m_maxValue;
 
  215        return m_minValue < m_maxValue;
 
 
  229    return isValid() ? ( m_maxValue - m_minValue ) : 0.0;
 
 
  246    return static_cast< long double >( m_maxValue )
 
  247           - 
static_cast< long double >( m_minValue );
 
 
  275    return unite( other );
 
 
  286    return ( m_minValue == other.m_minValue ) &&
 
  287           ( m_maxValue == other.m_maxValue ) &&
 
  288           ( m_borderFlags == other.m_borderFlags );
 
 
  298    return ( !( *
this == other ) );
 
 
  316    return isValid() && m_minValue >= m_maxValue;
 
 
  331#ifndef QT_NO_DEBUG_STREAM 
  332QWT_EXPORT QDebug operator<<( QDebug, 
const QwtInterval& );
 
A class representing an interval.
void setInterval(double minValue, double maxValue, BorderFlags=IncludeBorders)
QwtInterval operator|(const QwtInterval &) const
double width() const
Return the width of an interval.
@ ExcludeBorders
Min/Max values are not included in the interval.
long double widthL() const
Return the width of an interval as long double.
QwtInterval unite(const QwtInterval &) const
Unite 2 intervals.
bool operator==(const QwtInterval &) const
Compare two intervals.
bool operator!=(const QwtInterval &) const
Compare two intervals.
QwtInterval operator&(const QwtInterval &) const
Intersection of two intervals.
QwtInterval extend(double value) const
Extend the interval.
QwtInterval intersect(const QwtInterval &) const
Intersect 2 intervals.
BorderFlags borderFlags() const
QwtInterval()
Default Constructor.
void setBorderFlags(BorderFlags)
QFlags< BorderFlag > BorderFlags
Border flags.