- bookworm 6.1.4-2
- testing 6.1.4-2
- unstable 6.1.4-2
- experimental 6.2.0-1
QwtScaleDiv(3) | Qwt User's Guide | QwtScaleDiv(3) |
NAME¶
QwtScaleDiv - A class representing a scale division.
SYNOPSIS¶
#include <qwt_scale_div.h>
Public Types¶
enum TickType { NoTick = -1, MinorTick,
MediumTick, MajorTick, NTickTypes }
Scale tick types.
Public Member Functions¶
QwtScaleDiv (double lowerBound=0.0, double
upperBound=0.0)
QwtScaleDiv (const QwtInterval &, QList< double
>[NTickTypes])
QwtScaleDiv (double lowerBound, double upperBound,
QList< double >[NTickTypes])
QwtScaleDiv (double lowerBound, double upperBound, const
QList< double > &minorTicks, const QList< double
> &mediumTicks, const QList< double > &majorTicks)
bool operator== (const QwtScaleDiv &) const
Equality operator. bool operator!= (const QwtScaleDiv &)
const
Inequality. void setInterval (double lowerBound, double
upperBound)
void setInterval (const QwtInterval &)
QwtInterval interval () const
void setLowerBound (double)
double lowerBound () const
void setUpperBound (double)
double upperBound () const
double range () const
bool contains (double value) const
void setTicks (int tickType, const QList< double > &)
QList< double > ticks (int tickType) const
bool isEmpty () const
Check if the scale division is empty( lowerBound() ==
upperBound() ) bool isIncreasing () const
Check if the scale division is increasing( lowerBound() <=
upperBound() ) void invert ()
QwtScaleDiv inverted () const
QwtScaleDiv bounded (double lowerBound, double
upperBound) const
Detailed Description¶
A class representing a scale division.
A Qwt scale is defined by its boundaries and 3 list for the positions of the major, medium and minor ticks.
The upperBound() might be smaller than the lowerBound() to indicate inverted scales.
Scale divisions can be calculated from a QwtScaleEngine.
See also
Definition at line 33 of file qwt_scale_div.h.
Member Enumeration Documentation¶
enum QwtScaleDiv::TickType¶
Scale tick types.
Enumerator
- NoTick
- No ticks.
- MinorTick
- Minor ticks.
- MediumTick
- Medium ticks.
- MajorTick
- Major ticks.
- NTickTypes
- Number of valid tick types.
Definition at line 37 of file qwt_scale_div.h.
Constructor & Destructor Documentation¶
QwtScaleDiv::QwtScaleDiv (double lowerBound = 0.0, double upperBound = 0.0) [explicit]¶
Construct a division without ticks
Parameters
upperBound Second boundary
Note
Definition at line 21 of file qwt_scale_div.cpp.
QwtScaleDiv::QwtScaleDiv (const QwtInterval & interval, QList< double > ticks[NTickTypes]) [explicit]¶
Construct a scale division
Parameters
ticks List of major, medium and minor ticks
Definition at line 33 of file qwt_scale_div.cpp.
QwtScaleDiv::QwtScaleDiv (double lowerBound, double upperBound, QList< double > ticks[NTickTypes]) [explicit]¶
Construct a scale division
Parameters
upperBound Second boundary
ticks List of major, medium and minor ticks
Note
Definition at line 51 of file qwt_scale_div.cpp.
QwtScaleDiv::QwtScaleDiv (double lowerBound, double upperBound, const QList< double > & minorTicks, const QList< double > & mediumTicks, const QList< double > & majorTicks) [explicit]¶
Construct a scale division
Parameters
upperBound Second boundary
minorTicks List of minor ticks
mediumTicks List medium ticks
majorTicks List of major ticks
Note
Definition at line 71 of file qwt_scale_div.cpp.
Member Function Documentation¶
QwtScaleDiv QwtScaleDiv::bounded (double lowerBound, double upperBound) const¶
Return a scale division with an interval [lowerBound, upperBound] where all ticks outside this interval are removed
Parameters
upperBound Upper bound
Returns
Note
Definition at line 263 of file qwt_scale_div.cpp.
bool QwtScaleDiv::contains (double value) const¶
Return if a value is between lowerBound() and upperBound()
Parameters
Returns
Definition at line 212 of file qwt_scale_div.cpp.
QwtInterval QwtScaleDiv::interval () const¶
Returns
Definition at line 111 of file qwt_scale_div.cpp.
void QwtScaleDiv::invert ()¶
Invert the scale division
See also
Definition at line 224 of file qwt_scale_div.cpp.
QwtScaleDiv QwtScaleDiv::inverted () const¶
Returns
See also
Definition at line 244 of file qwt_scale_div.cpp.
double QwtScaleDiv::lowerBound () const¶
Returns
See also
Definition at line 131 of file qwt_scale_div.cpp.
bool QwtScaleDiv::operator!= (const QwtScaleDiv & other) const¶
Inequality.
Returns
Definition at line 189 of file qwt_scale_div.cpp.
bool QwtScaleDiv::operator== (const QwtScaleDiv & other) const¶
Equality operator.
Returns
Definition at line 168 of file qwt_scale_div.cpp.
double QwtScaleDiv::range () const¶
Returns
Definition at line 159 of file qwt_scale_div.cpp.
void QwtScaleDiv::setInterval (const QwtInterval & interval)¶
Change the interval
Parameters
Definition at line 102 of file qwt_scale_div.cpp.
void QwtScaleDiv::setInterval (double lowerBound, double upperBound)¶
Change the interval
Parameters
upperBound Second boundary
Note
Definition at line 91 of file qwt_scale_div.cpp.
void QwtScaleDiv::setLowerBound (double lowerBound)¶
Set the first boundary
Parameters
See also
Definition at line 122 of file qwt_scale_div.cpp.
void QwtScaleDiv::setTicks (int tickType, const QList< double > & ticks)¶
Assign ticks
Parameters
ticks Values of the tick positions
Definition at line 297 of file qwt_scale_div.cpp.
void QwtScaleDiv::setUpperBound (double upperBound)¶
Set the second boundary
Parameters
See also
Definition at line 142 of file qwt_scale_div.cpp.
QList< double > QwtScaleDiv::ticks (int tickType) const¶
Return a list of ticks
Parameters
Returns
Definition at line 309 of file qwt_scale_div.cpp.
double QwtScaleDiv::upperBound () const¶
Returns
See also
Definition at line 151 of file qwt_scale_div.cpp.
Author¶
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Sun Jul 18 2021 | Version 6.2.0 |