Eneboo - Documentación para desarrolladores
|
A class representing a scale division. Más...
#include <qwt_scale_div.h>
Tipos públicos | |
enum | TickType { NoTick = -1, MinorTick, MediumTick, MajorTick, NTickTypes } |
Métodos públicos | |
QwtScaleDiv () | |
Construct an invalid QwtScaleDiv instance. | |
QwtScaleDiv (const QwtDoubleInterval &, QwtValueList[NTickTypes]) | |
QwtScaleDiv (double lBound, double rBound, QwtValueList[NTickTypes]) | |
int | operator== (const QwtScaleDiv &s) const |
Equality operator. | |
int | operator!= (const QwtScaleDiv &s) const |
Inequality. | |
void | setInterval (double lBound, double rBound) |
void | setInterval (const QwtDoubleInterval &) |
QwtDoubleInterval | interval () const |
double | lBound () const |
double | hBound () const |
double | range () const |
bool | contains (double v) const |
void | setTicks (int type, const QwtValueList &) |
const QwtValueList & | ticks (int type) const |
void | invalidate () |
Invalidate the scale division. | |
bool | isValid () const |
Check if the scale division is valid. | |
void | invert () |
Invert the scale divison. |
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.
QwtScaleDiv::QwtScaleDiv | ( | ) | [explicit] |
Construct an invalid QwtScaleDiv instance.
QwtScaleDiv::QwtScaleDiv | ( | const QwtDoubleInterval & | interval, |
QwtValueList | ticks[NTickTypes] | ||
) | [explicit] |
Construct QwtScaleDiv instance.
QwtScaleDiv::QwtScaleDiv | ( | double | lBound, |
double | hBound, | ||
QwtValueList | ticks[NTickTypes] | ||
) | [explicit] |
Construct QwtScaleDiv instance.
lBound | First interval limit |
hBound | Second interval limit |
ticks | List of major, medium and minor ticks |
bool QwtScaleDiv::contains | ( | double | v | ) | const |
double QwtScaleDiv::hBound | ( | ) | const [inline] |
QwtDoubleInterval QwtScaleDiv::interval | ( | ) | const [inline] |
void QwtScaleDiv::invalidate | ( | ) |
Invalidate the scale division.
void QwtScaleDiv::invert | ( | ) |
Invert the scale divison.
double QwtScaleDiv::lBound | ( | ) | const [inline] |
int QwtScaleDiv::operator!= | ( | const QwtScaleDiv & | s | ) | const |
Inequality.
int QwtScaleDiv::operator== | ( | const QwtScaleDiv & | other | ) | const |
Equality operator.
void QwtScaleDiv::setInterval | ( | const QwtDoubleInterval & | interval | ) |
Change the interval Interval
void QwtScaleDiv::setInterval | ( | double | lBound, |
double | hBound | ||
) | [inline] |
Change the interval left bound right 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 |