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