22 d_lowerBound( lowerBound ),
23 d_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 enum MQTTPropertyCodes value
QList< double > d_ticks[NTickTypes]
QwtScaleDiv bounded(double lowerBound, double upperBound) const
A class representing an interval.
void setTicks(int tickType, const QList< double > &)
A class representing a scale division.
void setLowerBound(double)
bool operator!=(const QwtScaleDiv &) const
Inequality.
double upperBound() const
void setInterval(double lowerBound, double upperBound)
bool contains(double value) const
double lowerBound() const
void setUpperBound(double)
Number of valid tick types.
bool isIncreasing() const
Check if the scale division is increasing( lowerBound() <= upperBound() )
QDebug operator<<(QDebug debug, const QwtScaleDiv &scaleDiv)
bool operator==(const QwtScaleDiv &) const
Equality operator.
QwtInterval interval() const
bool isEmpty() const
Check if the scale division is empty( lowerBound() == upperBound() )
QList< double > ticks(int tickType) const
QwtScaleDiv(double lowerBound=0.0, double upperBound=0.0)
QwtScaleDiv inverted() const