QwtLinearScaleEngine(3)
π NAME π
Okay bestie, this is the QwtLinearScaleEngine(3) page from the Library Functions Manual. It is literally a scale engine for linear scales. That's the whole assignment. π
β¨ SYNOPSIS β¨
#include <qwt_scale_engine.h>
It inherits from QwtScaleEngine.
It is inherited by QwtDateScaleEngine.
πΈ Public Member Functions πΈ
- Constructor β
QwtLinearScaleEngine (uint base=10) - Destructor β
virtual ~QwtLinearScaleEngine ()β Destructor. - Auto-scale β
virtual void autoScale (int maxNumSteps, double &x1, double &x2, double &stepSize) const override - Divide scale β
QwtScaleDiv divideScale (double x1, double x2, int maxMajorSteps, int maxMinorSteps, double stepSize=0.0) const overrideβ Calculate a scale division for an interval.
π«Ά Public Member Functions inherited from QwtScaleEngine π«Ά
- Constructor β
QwtScaleEngine (uint base=10) - Destructor β
virtual ~QwtScaleEngine ()β Destructor. - Set base β
void setBase (uint base) - Get base β
uint base () const - Set attribute β
void setAttribute (Attribute, bool on=true) - Test attribute β
bool testAttribute (Attribute) const - Set attributes β
void setAttributes (Attributes) - Get attributes β
Attributes attributes () const - Set reference β
void setReference (double)β Specify a reference point. - Get reference β
double reference () const - Set margins β
void setMargins (double lower, double upper)β Specify margins at the scale's endpoints. - Lower margin β
double lowerMargin () const - Upper margin β
double upperMargin () const - Set transformation β
void setTransformation (QwtTransform *) - Get transformation β
QwtTransform * transformation () const
π§ Protected Member Functions π§
QwtInterval align (const QwtInterval &, double stepSize) constβ Align an interval to a step size.void buildTicks (const QwtInterval &, double stepSize, int maxMinorSteps, QList< double > ticks[QwtScaleDiv::NTickTypes]) constβ Calculate ticks for an interval.QList< double > buildMajorTicks (const QwtInterval &interval, double stepSize) constβ Calculate major ticks for an interval.void buildMinorTicks (const QList< double > &majorTicks, int maxMinorSteps, double stepSize, QList< double > &minorTicks, QList< double > &mediumTicks) constβ Calculate minor/medium ticks for major ticks.
π Protected Member Functions inherited from QwtScaleEngine π
- Contains β
bool contains (const QwtInterval &, double value) const - Strip β
QList< double > strip (const QList< double > &, const QwtInterval &) const - Divide interval β
double divideInterval (double intervalSize, int numSteps) const - Build interval β
QwtInterval buildInterval (double value) constβ Build an interval around a value.
π Additional Inherited Members π
Public types inherited from QwtScaleEngine:
enum Attribute { NoAttribute = 0x00, IncludeReference = 0x01, Symmetric
= 0x02, Floating = 0x04, Inverted = 0x08 }
typedef QFlags< Attribute > Attributes
π Detailed Description π
A scale engine for linear scales. The step size will fit into the pattern $t 1,2,5 β and yes, the original page has a stray little ight floating up there, so we are keeping it because details are details. π«‘
Definition at line 151 of file qwt_scale_engine.h.
π Constructor & Destructor Documentation π
πΌ QwtLinearScaleEngine::QwtLinearScaleEngine
QwtLinearScaleEngine::QwtLinearScaleEngine (uint base = 10) [explicit]
Constructor, bestie.
Parameters
- base β Base of the scale engine.
See also: setBase()
Definition at line 511 of file qwt_scale_engine.cpp.
π«§ QwtLinearScaleEngine::~QwtLinearScaleEngine
QwtLinearScaleEngine::~QwtLinearScaleEngine () [virtual]
Destructor. She destroys. π
Definition at line 517 of file qwt_scale_engine.cpp.
π₯ Member Function Documentation π₯
π§ QwtLinearScaleEngine::align
QwtInterval QwtLinearScaleEngine::align (const QwtInterval & interval,
double stepSize) const [protected]
Align an interval to a step size. The limits of an interval are aligned so both are integer multiples of the step size.
Parameters
- interval β Interval.
- stepSize β Step size.
Returns
- Aligned interval.
Definition at line 741 of file qwt_scale_engine.cpp.
π¦ QwtLinearScaleEngine::autoScale
void QwtLinearScaleEngine::autoScale (int maxNumSteps, double & x1, double &
x2, double & stepSize) const [override], [virtual]
Align and divide an interval.
Parameters
- maxNumSteps β Max. number of steps.
- x1 β First limit of the interval (In/Out).
- x2 β Second limit of the interval (In/Out).
- stepSize β Step size (Out).
See also: setAttribute()
Implements QwtScaleEngine.
Reimplemented in QwtDateScaleEngine.
Definition at line 531 of file qwt_scale_engine.cpp.
πΈ QwtLinearScaleEngine::buildMajorTicks
QList< double > QwtLinearScaleEngine::buildMajorTicks (const QwtInterval &
interval, double stepSize) const [protected]
Calculate major ticks for an interval.
Parameters
- interval β Interval.
- stepSize β Step size.
Returns
- Calculated ticks.
Definition at line 664 of file qwt_scale_engine.cpp.
π¦ QwtLinearScaleEngine::buildMinorTicks
void QwtLinearScaleEngine::buildMinorTicks (const QList< double > &
majorTicks, int maxMinorSteps, double stepSize, QList< double > &
minorTicks, QList< double > & mediumTicks) const [protected]
Calculate minor/medium ticks for major ticks.
Parameters
- majorTicks β Major ticks.
- maxMinorSteps β Maximum number of minor steps.
- stepSize β Step size.
- minorTicks β Array to be filled with the calculated minor ticks.
- mediumTicks β Array to be filled with the calculated medium ticks.
Definition at line 692 of file qwt_scale_engine.cpp.
π§ QwtLinearScaleEngine::buildTicks
void QwtLinearScaleEngine::buildTicks (const QwtInterval & interval, double
stepSize, int maxMinorSteps, QList< double >
ticks[QwtScaleDiv::NTickTypes]) const [protected]
Calculate ticks for an interval.
Parameters
- interval β Interval.
- stepSize β Step size.
- maxMinorSteps β Maximum number of minor steps.
- ticks β Arrays to be filled with the calculated ticks.
See also: buildMajorTicks(), buildMinorTicks
Definition at line 627 of file qwt_scale_engine.cpp.
π QwtLinearScaleEngine::divideScale
QwtScaleDiv QwtLinearScaleEngine::divideScale (double x1, double x2, int
maxMajorSteps, int maxMinorSteps, double stepSize = 0.0) const
[override], [virtual]
Calculate a scale division for an interval.
Parameters
- x1 β First interval limit.
- x2 β Second interval limit.
- maxMajorSteps β Maximum for the number of major steps.
- maxMinorSteps β Maximum number of minor steps.
- stepSize β Step size. If
stepSize == 0, the engine calculates one.
Returns
- Calculated scale division.
Implements QwtScaleEngine.
Reimplemented in QwtDateScaleEngine.
Definition at line 577 of file qwt_scale_engine.cpp.
π Author π
Generated automatically by Doxygen for Qwt User's Guide from the source code.
That is the whole page, bestie β from the Qwt User's Guide, and there is no date on this footer, so we are not inventing one. Vibe check: passed. Periodt. π β¨
π¦ where this page comes from
- alpine 3.24: qwt-doc 6.3.0-r0 Β· custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms