|
Qwt User's Guide
6.0.2
|
#include <qwt_scale_div.h>
Public Types | |
| enum | TickType { NoTick = -1, MinorTick, MediumTick, MajorTick, NTickTypes } |
Public Member Functions | |
| QwtScaleDiv () | |
| QwtScaleDiv (const QwtInterval &, QList< double >[NTickTypes]) | |
| QwtScaleDiv (double lowerBound, double upperBound, QList< double >[NTickTypes]) | |
| bool | contains (double v) const |
| QwtInterval | interval () const |
| void | invalidate () |
| void | invert () |
| bool | isValid () const |
| double | lowerBound () const |
| bool | operator!= (const QwtScaleDiv &s) const |
| bool | operator== (const QwtScaleDiv &s) const |
| double | range () const |
| void | setInterval (double lowerBound, double upperBound) |
| void | setInterval (const QwtInterval &) |
| void | setTicks (int type, const QList< double > &) |
| const QList< double > & | ticks (int type) const |
| double | upperBound () const |
A class representing a scale division.
A scale division consists of its limits and 3 list of tick values qualified as major, medium and minor ticks.
In most cases scale divisions are calculated by a QwtScaleEngine.
|
explicit |
Construct QwtScaleDiv instance.
| interval | Interval |
| ticks | List of major, medium and minor ticks |
|
explicit |
Construct QwtScaleDiv instance.
| lowerBound | First interval limit |
| upperBound | Second interval limit |
| ticks | List of major, medium and minor ticks |
| bool QwtScaleDiv::contains | ( | double | value | ) | const |
Return if a value is between lowerBound() and upperBound()
| value | Value |
|
inline |
|
inline |
| bool QwtScaleDiv::operator!= | ( | const QwtScaleDiv & | s | ) | const |
Inequality.
| bool QwtScaleDiv::operator== | ( | const QwtScaleDiv & | other | ) | const |
Equality operator.
|
inline |
|
inline |
Change the interval
| lowerBound | lower bound |
| upperBound | upper bound |
| void QwtScaleDiv::setInterval | ( | const QwtInterval & | interval | ) |
Change the interval
| interval | Interval |
| void QwtScaleDiv::setTicks | ( | int | type, |
| const QList< double > & | ticks | ||
| ) |
Assign ticks
| type | MinorTick, MediumTick or MajorTick |
| ticks | Values of the tick positions |
| const QList< double > & QwtScaleDiv::ticks | ( | int | type | ) | const |
Return a list of ticks
| type | MinorTick, MediumTick or MajorTick |
|
inline |
1.8.1