QwtLinearScaleEngine(3)

πŸ“¦ version 5.2.3a, in epel 9, fedora 43, fedora 44

πŸ’– 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) const
  • virtual QwtScaleDiv divideScale (double x1, double x2, int numMajorSteps, int numMinorSteps, double stepSize=0.0) const
  • virtual 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 β€” Interval
  • stepSize β€” 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 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.


πŸ’œ 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 limit
  • x2 β€” Second interval limit
  • maxMajSteps β€” Maximum for the number of major steps
  • maxMinSteps β€” Maximum number of minor steps
  • stepSize β€” Step size. If stepSize == 0, the scaleEngine calculates 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