QwtScaleDiv(3) | Qwt User's Guide | QwtScaleDiv(3) |
NAME¶
QwtScaleDiv -
SYNOPSIS¶
#include <qwt_scale_div.h>
Public Types¶
enum TickType { NoTick = -1, MinorTick,
MediumTick, MajorTick, NTickTypes }
Public Member Functions¶
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
Detailed Description¶
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:
Constructor & Destructor Documentation¶
QwtScaleDiv::QwtScaleDiv (const QwtDoubleInterval &interval, QwtValueListticks[NTickTypes]) [explicit]¶
Construct QwtScaleDiv instance.
Parameters:
ticks List of major, medium and minor ticks
QwtScaleDiv::QwtScaleDiv (doublelowerBound, doubleupperBound, QwtValueListticks[NTickTypes]) [explicit]¶
Construct QwtScaleDiv instance.
Parameters:
upperBound Second interval limit
ticks List of major, medium and minor ticks
Member Function Documentation¶
bool QwtScaleDiv::contains (doublevalue) const¶
Return if a value is between lowerBound() and upperBound()
Parameters:
Returns:
QwtDoubleInterval QwtScaleDiv::interval () const [inline]¶
Returns:
double QwtScaleDiv::lowerBound () const [inline]¶
Returns:
See also:
int QwtScaleDiv::operator!= (const QwtScaleDiv &s) const¶
Inequality. Returns:
int QwtScaleDiv::operator== (const QwtScaleDiv &other) const¶
Equality operator. Returns:
double QwtScaleDiv::range () const [inline]¶
Returns:
void QwtScaleDiv::setInterval (doublelowerBound, doubleupperBound) [inline]¶
Change the interval
Parameters:
upperBound upper bound
void QwtScaleDiv::setInterval (const QwtDoubleInterval &interval)¶
Change the interval
Parameters:
void QwtScaleDiv::setTicks (inttype, const QwtValueList &ticks)¶
Assign ticks
Parameters:
ticks Values of the tick positions
const QwtValueList & QwtScaleDiv::ticks (inttype) const¶
Return a list of ticks
Parameters:
double QwtScaleDiv::upperBound () const [inline]¶
Returns:
See also:
Author¶
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Tue Nov 20 2012 | Version 5.2.3 |