QwtLogScaleEngine(3)

πŸŽ€ NAME πŸŽ€

okay bestie, this is the QwtLogScaleEngine(3) page from the Library Functions Manual (Qwt User's Guide energy), and the whole point is literally right here: QwtLogScaleEngine is a scale engine for logarithmic scales. no cap. ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <qwt_scale_engine.h>

Inherits QwtScaleEngine.

πŸ’– Public Member Functions πŸ’–

  • QwtLogScaleEngine (uint base=10) β€” constructor, with the base defaulting to 10 exactly as written.
  • virtual ~QwtLogScaleEngine () β€” destructor. bye bestie 🫢
  • virtual void autoScale (int maxNumSteps, double &x1, double &x2, double &stepSize) const override β€” the override version; details are down in the docs below.
  • virtual QwtScaleDiv divideScale (double x1, double x2, int maxMajorSteps, int maxMinorSteps, double stepSize=0.0) const override β€” calculate a scale division for an interval. slay.

πŸ’œ Public Member Functions inherited from QwtScaleEngine πŸ’œ

  • QwtScaleEngine (uint base=10) β€” inherited constructor.
  • virtual ~QwtScaleEngine () β€” destructor.
  • void setBase (uint base) β€” inherited, no extra description in the original, just here for completeness.
  • uint base () const β€” inherited, no extra description in the original.
  • void setAttribute (Attribute, bool on=true) β€” inherited, no extra description in the original.
  • bool testAttribute (Attribute) const β€” inherited, no extra description in the original.
  • void setAttributes (Attributes) β€” inherited, no extra description in the original.
  • Attributes attributes () const β€” inherited, no extra description in the original.
  • void setReference (double) β€” specify a reference point.
  • double reference () const β€” inherited, no extra description in the original.
  • void setMargins (double lower, double upper) β€” specify margins at the scale's endpoints.
  • double lowerMargin () const β€” inherited, no extra description in the original.
  • double upperMargin () const β€” inherited, no extra description in the original.
  • void setTransformation (QwtTransform *) β€” inherited, no extra description in the original.
  • QwtTransform * transformation () const β€” inherited, no extra description in the original.

🌸 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 🌺

  • bool contains (const QwtInterval &, double value) const β€” inherited, no extra description in the original.
  • QList< double > strip (const QList< double > &, const QwtInterval &) const β€” inherited, no extra description in the original.
  • double divideInterval (double intervalSize, int numSteps) const β€” inherited, no extra description in the original.
  • 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 β€” the exact typedef, bestie, no edits.

πŸ’… Detailed Description πŸ’…

A scale engine for logarithmic scales. literally that's the main character description, and it is iconic. ✨

The step size is measured in decades, aight, and the major step size will be adjusted to fit the pattern $t 1,2,3,5.

⚠️ warning, bestie: the step size as well as the margins are measured in decades.

Definition at line 191 of file qwt_scale_engine.h.


✨ Constructor & Destructor Documentation ✨

πŸŽ€ QwtLogScaleEngine::QwtLogScaleEngine (uint base = 10) [explicit] πŸŽ€

Constructor.

  • base β€” Base of the scale engine.

See also setBase().

Definition at line 776 of file qwt_scale_engine.cpp.

πŸŽ€ QwtLogScaleEngine::~QwtLogScaleEngine () [virtual] πŸŽ€

Destructor.

Definition at line 783 of file qwt_scale_engine.cpp.


πŸ”₯ Member Function Documentation πŸ”₯

πŸ’œ QwtInterval QwtLogScaleEngine::align (const QwtInterval & 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.

  • interval β€” Interval.
  • stepSize β€” Step size.

Returns: Aligned interval.

Definition at line 1106 of file qwt_scale_engine.cpp.

πŸ’œ void QwtLogScaleEngine::autoScale (int maxNumSteps, double & x1, double & x2, double & stepSize) const [override], [virtual] πŸ’œ

Align and divide an interval.

  • 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 QwtScaleEngine::setAttribute().

Implements QwtScaleEngine.

Definition at line 797 of file qwt_scale_engine.cpp.

πŸ’œ QList< double > QwtLogScaleEngine::buildMajorTicks (const QwtInterval & interval, double stepSize) const [protected] πŸ’œ

Calculate major ticks for an interval.

  • interval β€” Interval.
  • stepSize β€” Step size.

Returns: Calculated ticks.

Definition at line 967 of file qwt_scale_engine.cpp.

πŸ’œ void QwtLogScaleEngine::buildMinorTicks (const QList< double > & majorTicks, int maxMinorSteps, double stepSize, QList< double > & minorTicks, QList< double > & mediumTicks) const [protected] πŸ’œ

Calculate minor/medium ticks for major ticks.

  • 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 1002 of file qwt_scale_engine.cpp.

πŸ’œ void QwtLogScaleEngine::buildTicks (const QwtInterval & interval, double stepSize, int maxMinorSteps, QList< double > ticks[QwtScaleDiv::NTickTypes]) const [protected] πŸ’œ

Calculate ticks for an interval.

  • interval β€” Interval.
  • maxMinorSteps β€” Maximum number of minor steps.
  • stepSize β€” Step size.
  • ticks β€” Arrays to be filled with the calculated ticks.

See also buildMajorTicks(), buildMinorTicks.

Definition at line 940 of file qwt_scale_engine.cpp.

πŸ’œ QwtScaleDiv QwtLogScaleEngine::divideScale (double x1, double x2, int maxMajorSteps, int maxMinorSteps, double stepSize = 0.0) const [override], [virtual] πŸ’œ

Calculate a scale division for an interval.

  • 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.

Definition at line 879 of file qwt_scale_engine.cpp.


🫢 Author 🫢

Generated automatically by Doxygen for Qwt User's Guide from the source code.

okay that's the whole page, bestie 🫢 β€” footer source/version is Qwt User's Guide and the manual is QwtLogScaleEngine(3); there's no date printed on this footer, so no invented date, periodt. πŸ’–

πŸ“¦ where this page comes from