QwtScaleDiv(3)
π NAME π
QwtScaleDiv β bestie, it's literally a scale division. That's the whole name, no cap β¨
πΈ 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 π¦
Okay so picture this: a class that represents a scale division. Iconic. π
A scale division is made of its limits plus 3 lists of tick values, and those ticks are qualified as major, medium and minor ticks. Three lists, three vibes, one class. π
And lowkey? In most cases scale divisions don't just show up on their own β they get calculated by a QwtScaleEngine. So that's the friend doing the math behind the scenes. β¨
See also:
subDivideInto()subDivide()
π Constructor & Destructor Documentation π
π QwtScaleDiv::QwtScaleDiv (const QwtDoubleInterval &interval, QwtValueListticks[NTickTypes]) [explicit]
Constructs a QwtScaleDiv instance. Brand new baby scale division, we love to see it. π«Ά
Parameters:
intervalβ Intervalticksβ List of major, medium and minor ticks
π QwtScaleDiv::QwtScaleDiv (doublelowerBound, doubleupperBound, QwtValueListticks[NTickTypes]) [explicit]
Also constructs a QwtScaleDiv instance. Same energy, different args. π
Parameters:
lowerBoundβ First interval limitupperBoundβ Second interval limitticksβ List of major, medium and minor ticks
π Member Function Documentation π
β bool QwtScaleDiv::contains (doublevalue) const
Tells you whether a value is chilling between lowerBound() and upperBound(). Vibe check for a number, fr fr.
Parameters:
valueβ Value
Returns:
true/false
β QwtDoubleInterval QwtScaleDiv::interval () const [inline]
Returns:
lowerBound->upperBound
β double QwtScaleDiv::lowerBound () const [inline]
Returns:
- lower bound
See also:
upperBound()
β int QwtScaleDiv::operator!= (const QwtScaleDiv &s) const
Inequality. The "we are not the same" operator. π
Returns:
trueif this instance is not equal tos
β int QwtScaleDiv::operator== (const QwtScaleDiv &other) const
Equality operator. Twin flames check. π
Returns:
trueif this instance is equal toother
β double QwtScaleDiv::range () const [inline]
Returns:
upperBound() - lowerBound()
β void QwtScaleDiv::setInterval (doublelowerBound, doubleupperBound) [inline]
Change the interval. Glow-up for your bounds. β¨
Parameters:
lowerBoundβ lower boundupperBoundβ upper bound
β void QwtScaleDiv::setInterval (const QwtDoubleInterval &interval)
Change the interval.
Parameters:
intervalβ Interval
β void QwtScaleDiv::setTicks (inttype, const QwtValueList &ticks)
Assign ticks. Putting the ticks in their assigned seats, periodt.
Parameters:
typeβMinorTick,MediumTickorMajorTickticksβ Values of the tick positions
β const QwtValueList & QwtScaleDiv::ticks (inttype) const
Return a list of ticks.
Parameters:
typeβMinorTick,MediumTickorMajorTick
β double QwtScaleDiv::upperBound () const [inline]
Returns:
- upper bound
See also:
lowerBound()
π§ Author π§
Generated automatically by Doxygen for Qwt User's Guide from the source code. Not a human bestie β a robot bestie. πβ¨
That's the whole page, babes! Version 5.2.3, dated Tue Nov 20 2012 β yeah she's a lil vintage, but she still ate. ππ Go forth and divide your scales, ily! π¦π
π¦ where this page comes from
- epel 9: qwt5-qt5-devel 5.2.3a-12.20210522gita2b11e3.el9 Β· LGPLv2+ with exceptions
- fedora 43: qwt5-qt5-devel 5.2.3a-22.20210522gita2b11e3.fc43 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 43: qwt5-qt5-devel 5.2.3a-22.20210522gita2b11e3.fc43 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 44: qwt5-qt5-devel 5.2.3a-23.20210522gita2b11e3.fc44 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 44: qwt5-qt5-devel 5.2.3a-23.20210522gita2b11e3.fc44 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms