QwtLinearScaleEngine(3)
π QwtLinearScaleEngine π
okay so this page is straight out of the Qwt User's Guide, and it's all about QwtLinearScaleEngine β the little icon that makes your linear scales behave. no cap, it's short but it's doing a lot. π«Ά
β¨ NAME β¨
QwtLinearScaleEngine β and that's literally it, bestie, the description line is blank. the class name IS the whole vibe. π
π¦ SYNOPSIS π¦
#include <qwt_scale_engine.h>
Inherits QwtScaleEngine. so it's got the whole family tree behind it, iykyk π
π Public Member Functions
virtual void autoScale (int maxSteps, double &x1, double &x2, double &stepSize) constvirtual QwtScaleDiv divideScale (double x1, double x2, int numMajorSteps, int numMinorSteps, double stepSize=0.0) constvirtual QwtScaleTransformation * transformation () const
π Protected Member Functions
QwtDoubleInterval align (const QwtDoubleInterval &, double stepSize) const
πΈ Additional Inherited Members
everything else it got from its parent lives here β that's the inherited stuff, not listed out on this page, and honestly it's the family heirloom energy. π§
π Detailed Description π
A scale engine for linear scales. that's the whole job, she's specialized and she's thriving. π
The step size will fit into the pattern $t 1,2,5 β so it's gonna snap to those classic 1, 2, 5 vibes, iconic behavior honestly.
π₯ Member Function Documentation π₯
π QwtDoubleInterval QwtLinearScaleEngine::align (const QwtDoubleInterval &interval, double stepSize) const β [protected]
Align an interval to a step size. The limits of an interval are aligned that both are integer multiples of the step size. both ends, matched up, no awkward leftover, periodt β¨
Parameters:
intervalβ IntervalstepSizeβ Step size
Returns:
- Aligned interval
π void QwtLinearScaleEngine::autoScale (int maxNumSteps, double &x1, double &x2, double &stepSize) const β [virtual]
Align and divide an interval. she takes your messy interval and gives it structure, we love to see it π¦
Parameters:
maxNumStepsβ Max. number of stepsx1β First limit of the interval (In/Out)x2β Second limit of the interval (In/Out)stepSizeβ Step size (Out)
See also: setAttribute()
Implements QwtScaleEngine.
π QwtScaleDiv QwtLinearScaleEngine::divideScale (double x1, double x2, int maxMajSteps, int maxMinSteps, double stepSize = 0.0) const β [virtual]
Calculate a scale division. π«
Parameters:
x1β First interval limitx2β Second interval limitmaxMajStepsβ Maximum for the number of major stepsmaxMinStepsβ Maximum number of minor stepsstepSizeβ Step size. IfstepSize == 0, thescaleEnginecalculates one.
bestie pay attention to that last one π if you pass 0, she picks the step size herself. main character energy, fr fr.
See also: QwtScaleEngine::stepSize(), QwtScaleEngine::subDivide()
Implements QwtScaleEngine.
π QwtScaleTransformation * QwtLinearScaleEngine::transformation () const β [virtual]
Return a transformation, for linear scales. that's it, that's the function, she said what she said πΈ
Implements QwtScaleEngine.
β Author β
Generated automatically by Doxygen for Qwt User's Guide from the source code. so yes, a robot wrote this, and honestly the robot ate. π€π
and that's the whole page, bestie!! π β¨ π π¦ πΈ π«Ά π₯ π π β
this was Version 5.2.3, dated Tue Nov 20 2012 β vintage, lowkey a classic, and she still slays. go forth and align your intervals. periodt. π
π¦ 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