QwtAbstractScale(3)
π QwtAbstractScale π
okay bestie, welcome to QwtAbstractScale β the manual page for it lives in the Qwt User's Guide, and yes, the NAME line in the original is just the class name and a lonely little dash, so that's what we're working with: QwtAbstractScale β (that's it, that's the name, she's mysterious like that π)
β¨ SYNOPSIS β¨
#include <qwt_abstract_scale.h>
Inherited by QwtKnob, QwtSlider, and QwtThermo.
π«Ά Public Member Functions
QwtAbstractScale ()virtual ~QwtAbstractScale ()bool autoScale () constconst QwtScaleEngine * scaleEngine () constQwtScaleEngine * scaleEngine ()const QwtScaleMap & scaleMap () constint scaleMaxMajor () constint scaleMaxMinor () constvoid setAutoScale ()void setScale (double vmin, double vmax, double step=0.0)void setScale (const QwtDoubleInterval &, double step=0.0)void setScale (const QwtScaleDiv &s)void setScaleEngine (QwtScaleEngine *)void setScaleMaxMajor (int ticks)void setScaleMaxMinor (int ticks)
π§ Protected Member Functions
const QwtAbstractScaleDraw * abstractScaleDraw () constQwtAbstractScaleDraw * abstractScaleDraw ()void rescale (double vmin, double vmax, double step=0.0)virtual void scaleChange ()void setAbstractScaleDraw (QwtAbstractScaleDraw *)
πΈ Detailed Description πΈ
She's an abstract base class for classes that contain a scale. Periodt.
QwtAbstractScale is literally here to hand classes a QwtScaleDraw and a QwtScaleDiv. And that QwtScaleDiv? It might be set explicitly, or it might get calculated by a QwtScaleEngine. Either way, she's got you π«Ά
π Constructor & Destructor Documentation π
QwtAbstractScale::QwtAbstractScale ()
Constructor.
Creates a default QwtScaleDraw and a QwtLinearScaleEngine. Autoscaling is enabled, and the stepSize is initialized by 0.0.
π Member Function Documentation π
const QwtAbstractScaleDraw * QwtAbstractScale::abstractScaleDraw () const
[protected]
Returns: Scale draw
See also: setAbstractScaleDraw()
QwtAbstractScaleDraw * QwtAbstractScale::abstractScaleDraw () [protected]
Returns: Scale draw
See also: setAbstractScaleDraw()
bool QwtAbstractScale::autoScale () const
Returns: true if autoscaling is enabled
void QwtAbstractScale::rescale (doublevmin, doublevmax, doublestepSize = 0.0) [protected]
Recalculate the scale division and update the scale draw.
Parameters:
vminβ Lower limit of the scale intervalvmaxβ Upper limit of the scale intervalstepSizeβ Major step size
See also: scaleChange()
void QwtAbstractScale::scaleChange () [protected], [virtual]
Notify changed scale. It's a dummy empty implementation, bestie β she's intended to be overloaded by derived classes. So like, the vibe is "you do it, not me" π
Reimplemented in QwtThermo, and QwtSlider.
const QwtScaleEngine * QwtAbstractScale::scaleEngine () const
Returns: Scale engine
See also: setScaleEngine()
QwtScaleEngine * QwtAbstractScale::scaleEngine ()
Returns: Scale engine
See also: setScaleEngine()
const QwtScaleMap & QwtAbstractScale::scaleMap () const
Returns: abstractScaleDraw()->scaleMap()
int QwtAbstractScale::scaleMaxMajor () const
Returns: Max. number of major tick intervals. The default value is 5.
int QwtAbstractScale::scaleMaxMinor () const
Returns: Max. number of minor tick intervals. The default value is 3.
void QwtAbstractScale::setAbstractScaleDraw (QwtAbstractScaleDraw *scaleDraw) [protected]
Set a scale draw.
β οΈ Heads up:scaleDrawhas to be created withnewand will be deleted in~QwtAbstractScaleor the next call ofsetAbstractScaleDraw. So don't go deleting her yourself, she's got a whole lifecycle plan π
void QwtAbstractScale::setAutoScale ()
Advise the widget to control the scale range internally. Autoscaling is on by default.
See also: setScale(), autoScale()
void QwtAbstractScale::setScale (doublevmin, doublevmax, doublestepSize = 0.0)
Specify a scale. Disable autoscaling and define a scale by an interval and a step size.
Parameters:
vminβ lower limit of the scale intervalvmaxβ upper limit of the scale intervalstepSizeβ major step size
See also: setAutoScale()
void QwtAbstractScale::setScale (const QwtDoubleInterval &interval, doublestepSize = 0.0)
Specify a scale. Disable autoscaling and define a scale by an interval and a step size.
Parameters:
intervalβ IntervalstepSizeβ major step size
See also: setAutoScale()
void QwtAbstractScale::setScale (const QwtScaleDiv &scaleDiv)
Specify a scale. Disable autoscaling and define a scale by a scale division.
Parameters:
scaleDivβ Scale division
See also: setAutoScale()
void QwtAbstractScale::setScaleEngine (QwtScaleEngine *scaleEngine)
Set a scale engine. The scale engine is the one responsible for calculating the scale division, and in case of auto scaling, how to align the scale. She's the main character of scale math, fr fr π₯
β οΈ Another one:scaleEnginehas to be created withnewand will be deleted in~QwtAbstractScaleor the next call ofsetScaleEngine. Same deal as above, don't double-delete her π
void QwtAbstractScale::setScaleMaxMajor (intticks)
Set the maximum number of major tick intervals. The scale's major ticks are calculated automatically such that the number of major intervals does not exceed ticks. The default value is 5.
Parameters:
ticksβ maximal number of major ticks.
See also: QwtAbstractScaleDraw
void QwtAbstractScale::setScaleMaxMinor (intticks)
Set the maximum number of minor tick intervals. The scale's minor ticks are calculated automatically such that the number of minor intervals does not exceed ticks. The default value is 3.
Parameters:
ticks
See also: QwtAbstractScaleDraw
π Author π
Generated automatically by Doxygen for Qwt User's Guide from the source code. Not a human author, just a very diligent robot π¦
and that's the whole page, bestie!! πβ¨
This lil doc is straight outta Qwt User's Guide, Version 5.2.3, dated Tue Nov 20 2012 β yeah she's an elder but she still ate π π mwah, go build something iconic with her π«Άπ
π¦ 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