Qwt User's Guide 5.2.2
|
A class representing a scale division. More...
#include <qwt_scale_div.h>
Public Types | |
enum | TickType { NoTick = -1, MinorTick, MediumTick, MajorTick, NTickTypes } |
Public Member Functions | |
bool | contains (double v) const |
QwtDoubleInterval | interval () const |
void | invalidate () |
void | invert () |
bool | isValid () const |
double | lowerBound () const |
int | operator!= (const QwtScaleDiv &s) const |
int | operator== (const QwtScaleDiv &s) const |
QwtScaleDiv () | |
QwtScaleDiv (double lowerBound, double upperBound, QwtValueList[NTickTypes]) | |
QwtScaleDiv (const QwtDoubleInterval &, QwtValueList[NTickTypes]) | |
double | range () const |
void | setInterval (const QwtDoubleInterval &) |
void | setInterval (double lowerBound, double upperBound) |
void | setTicks (int type, const QwtValueList &) |
const QwtValueList & | 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.
Scale tick types.
QwtScaleDiv::QwtScaleDiv | ( | ) | [explicit] |
Construct an invalid QwtScaleDiv instance.
QwtScaleDiv::QwtScaleDiv | ( | const QwtDoubleInterval & | interval, |
QwtValueList | ticks[NTickTypes] | ||
) | [explicit] |
Construct QwtScaleDiv instance.
interval | Interval |
ticks | List of major, medium and minor ticks |
QwtScaleDiv::QwtScaleDiv | ( | double | lowerBound, |
double | upperBound, | ||
QwtValueList | ticks[NTickTypes] | ||
) | [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 |
QwtDoubleInterval QwtScaleDiv::interval | ( | ) | const [inline] |
void QwtScaleDiv::invalidate | ( | ) |
Invalidate the scale division.
void QwtScaleDiv::invert | ( | ) |
Invert the scale divison.
bool QwtScaleDiv::isValid | ( | ) | const |
Check if the scale division is valid.
double QwtScaleDiv::lowerBound | ( | ) | const [inline] |
int QwtScaleDiv::operator!= | ( | const QwtScaleDiv & | s | ) | const |
Inequality.
int QwtScaleDiv::operator== | ( | const QwtScaleDiv & | other | ) | const |
Equality operator.
double QwtScaleDiv::range | ( | ) | const [inline] |
void QwtScaleDiv::setInterval | ( | const QwtDoubleInterval & | interval | ) |
Change the interval
interval | Interval |
void QwtScaleDiv::setInterval | ( | double | lowerBound, |
double | upperBound | ||
) | [inline] |
Change the interval
lowerBound | lower bound |
upperBound | upper bound |
void QwtScaleDiv::setTicks | ( | int | type, |
const QwtValueList & | ticks | ||
) |
Assign ticks
type | MinorTick, MediumTick or MajorTick |
ticks | Values of the tick positions |
const QwtValueList & QwtScaleDiv::ticks | ( | int | type | ) | const |
Return a list of ticks
type | MinorTick, MediumTick or MajorTick |
double QwtScaleDiv::upperBound | ( | ) | const [inline] |