DOKK / manpages / debian 10 / libqwt5-doc / QwtScaleDiv.3.en
QwtScaleDiv(3) Qwt User's Guide QwtScaleDiv(3)

QwtScaleDiv -

#include <qwt_scale_div.h>


enum TickType { NoTick = -1, MinorTick, MediumTick, MajorTick, NTickTypes }


QwtScaleDiv ()
QwtScaleDiv (const QwtDoubleInterval &, QwtValueList[NTickTypes])
QwtScaleDiv (double lowerBound, double upperBound, QwtValueList[NTickTypes])
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
double range () const
void setInterval (double lowerBound, double upperBound)
void setInterval (const QwtDoubleInterval &)
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.

See also:

subDivideInto(), subDivide()

Construct QwtScaleDiv instance.

Parameters:

interval Interval
ticks List of major, medium and minor ticks

Construct QwtScaleDiv instance.

Parameters:

lowerBound First interval limit
upperBound Second interval limit
ticks List of major, medium and minor ticks

Return if a value is between lowerBound() and upperBound()

Parameters:

value Value

Returns:

true/false

QwtDoubleInterval QwtScaleDiv::interval () const [inline]

Returns:

lowerBound -> upperBound

Returns:

lower bound

See also:

upperBound()

Inequality. Returns:

true if this instance is not equal to s

Equality operator. Returns:

true if this instance is equal to other

Returns:

upperBound() - lowerBound()

Change the interval

Parameters:

lowerBound lower bound
upperBound upper bound

Change the interval

Parameters:

interval Interval

Assign ticks

Parameters:

type MinorTick, MediumTick or MajorTick
ticks Values of the tick positions

Return a list of ticks

Parameters:

type MinorTick, MediumTick or MajorTick

Returns:

upper bound

See also:

lowerBound()

Generated automatically by Doxygen for Qwt User's Guide from the source code.

Tue Nov 20 2012 Version 5.2.3