10 #include "qwt_scale_div.h" 
   11 #include "qwt_interval.h" 
   22     : m_lowerBound( lowerBound )
 
   23     , m_upperBound( upperBound )
 
   35     : m_lowerBound( interval.minValue() )
 
   36     , m_upperBound( interval.maxValue() )
 
   39         m_ticks[i] = 
ticks[i];
 
   53     : m_lowerBound( lowerBound )
 
   54     , m_upperBound( upperBound )
 
   57         m_ticks[i] = 
ticks[i];
 
   75     : m_lowerBound( lowerBound )
 
   76     , m_upperBound( upperBound )
 
  161     return m_upperBound - m_lowerBound;
 
  170     if ( m_lowerBound != other.m_lowerBound ||
 
  171         m_upperBound != other.m_upperBound )
 
  178         if ( m_ticks[i] != other.m_ticks[i] )
 
  191     return ( !( *
this == other ) );
 
  197     return ( m_lowerBound == m_upperBound );
 
  203     return m_lowerBound <= m_upperBound;
 
  214     const double min = qMin( m_lowerBound, m_upperBound );
 
  215     const double max = qMax( m_lowerBound, m_upperBound );
 
  217     return value >= min && value <= max;
 
  226     qSwap( m_lowerBound, m_upperBound );
 
  232         const int size = 
ticks.count();
 
  233         const int size2 = size / 2;
 
  235         for ( 
int j = 0; j < size2; j++ )
 
  264     double lowerBound, 
double upperBound )
 const 
  277         for ( 
int i = 0; i < 
ticks.size(); i++ )
 
  279             const double tick = 
ticks[i];
 
  280             if ( tick >= min && tick <= max )
 
  281                 boundedTicks += tick;
 
  284         sd.
setTicks( tickType, boundedTicks );
 
  300         m_ticks[tickType] = 
ticks;
 
  312         return m_ticks[tickType];
 
  317 #ifndef QT_NO_DEBUG_STREAM 
  321 QDebug operator<<( QDebug debug, 
const QwtScaleDiv& scaleDiv )
 
A class representing an interval.
A class representing a scale division.
QwtScaleDiv bounded(double lowerBound, double upperBound) const
double lowerBound() const
bool operator==(const QwtScaleDiv &) const
Equality operator.
QwtInterval interval() const
double upperBound() const
void setUpperBound(double)
QwtScaleDiv(double lowerBound=0.0, double upperBound=0.0)
bool operator!=(const QwtScaleDiv &) const
Inequality.
void setLowerBound(double)
QList< double > ticks(int tickType) const
bool contains(double value) const
void setInterval(double lowerBound, double upperBound)
QwtScaleDiv inverted() const
bool isEmpty() const
Check if the scale division is empty( lowerBound() == upperBound() )
bool isIncreasing() const
Check if the scale division is increasing( lowerBound() <= upperBound() )
@ MediumTick
Medium ticks.
@ NTickTypes
Number of valid tick types.
void setTicks(int tickType, const QList< double > &)