22 : m_lowerBound( lowerBound )
23 , m_upperBound( upperBound )
191 return ( !( *
this == other ) );
217 return value >= min && value <= max;
232 const int size = ticks.count();
233 const int size2 = size / 2;
235 for (
int j = 0; j < size2; j++ )
236 qSwap( ticks[j], ticks[size - 1 - j] );
266 const double min = qMin( lowerBound, upperBound );
267 const double max = qMax( lowerBound, upperBound );
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 );
317 #ifndef QT_NO_DEBUG_STREAM double lowerBound() const
QList< double > m_ticks[NTickTypes]
bool operator!=(const QwtScaleDiv &) const
Inequality.
QList< double > ticks(int tickType) const
A class representing an interval.
bool contains(double value) const
void setTicks(int tickType, const QList< double > &)
A class representing a scale division.
void setLowerBound(double)
bool operator==(const QwtScaleDiv &) const
Equality operator.
void setInterval(double lowerBound, double upperBound)
QwtInterval interval() const
bool isIncreasing() const
Check if the scale division is increasing( lowerBound() <= upperBound() )
QwtScaleDiv bounded(double lowerBound, double upperBound) const
void setUpperBound(double)
bool isEmpty() const
Check if the scale division is empty( lowerBound() == upperBound() )
Number of valid tick types.
QDebug operator<<(QDebug debug, const QwtScaleDiv &scaleDiv)
QwtScaleDiv inverted() const
span_constexpr std::size_t size(span< T, Extent > const &spn)
double upperBound() const
QwtScaleDiv(double lowerBound=0.0, double upperBound=0.0)