QwtPolarFitter(3)

πŸ“¦
version 6.3.0 Β· 2 versions
, in alpine 3.24

πŸ’… QwtPolarFitter(3) β€” the polar curve fitter that eats

okay so bestie, welcome to QwtPolarFitter β€” a simple curve fitter for polar points ✨ It lives in the Qwt User's Guide library functions manual and honestly? it's giving main character energy for such a small class πŸ’–


🌸 NAME 🌸

QwtPolarFitter β€” a simple curve fitter for polar points. that's it, that's the vibe πŸŽ€


✨ SYNOPSIS ✨

#include <qwt_polar_fitter.h>

It inherits QwtCurveFitter (yes bestie, it's got a whole family tree 🫢).

πŸ’œ Public Member Functions πŸ’œ

  • QwtPolarFitter(int stepCount = 5) β€” the constructor, default stepCount is 5 fr fr
  • virtual ~QwtPolarFitter() β€” Destructor. she's done, she's logging off 😭
  • void setStepCount(int size) β€” tell her how many points to insert
  • int stepCount() const β€” ask her how many points she's inserting
  • virtual QPolygonF fitCurve(const QPolygonF &) const override β€” do the fitting, get a QPolygonF back
  • virtual QPainterPath fitCurvePath(const QPolygonF &) const override β€” do the fitting, get a QPainterPath back

πŸ¦‹ Public Member Functions inherited from QwtCurveFitter πŸ¦‹

  • virtual ~QwtCurveFitter() β€” Destructor. (again. her too πŸ’€)
  • Mode mode() const β€” returns the mode

🌈 Additional Inherited Members 🌈

πŸŽ€ Public Types inherited from QwtCurveFitter πŸŽ€

  • enum Mode { Polygon, Path } β€” preferred mode of the fitting algorithm πŸ‘‘

🧚 Protected Member Functions inherited from QwtCurveFitter 🧚

  • QwtCurveFitter(Mode mode) β€” the protected constructor, only for the inner circle

πŸ’– Detailed Description πŸ’–

QwtPolarFitter is a simple curve fitter for polar points. no cap, that's the whole thing πŸ“

The way that it works: QwtPolarFitter adds equidistant points between 2 curve points, so that the connection gets rounded according to the nature of a polar plot πŸ”₯ like, it literally just fills in the gaps so your curve looks smooth and cute instead of all jagged and aggressive πŸ’…

See also: QwtPolarCurve::setCurveFitter() β€” go look at her, she's the one who actually calls this thing 🫢

Definition at line 24 of file qwt_polar_fitter.h. (yes we cite our sources, we're not messy 🌸)


πŸŽ€ Constructor & Destructor Documentation πŸŽ€

QwtPolarFitter::QwtPolarFitter(int stepCount = 5) ⭐

Constructor. she's born ✨

Parameters:

  • stepCount β€” number of points that will be inserted between 2 points

See also: setStepCount()

Definition at line 30 of file qwt_polar_fitter.cpp.

QwtPolarFitter::~QwtPolarFitter() [virtual] πŸ’€

Destructor. she said bye bestie πŸ‘‹

Definition at line 38 of file qwt_polar_fitter.cpp.


πŸ¦‹ Member Function Documentation πŸ¦‹

QPolygonF QwtPolarFitter::fitCurve(const QPolygonF & points) const [override], [virtual] πŸ”₯

Insert stepCount() number of additional points between 2 elements of points. the way that it just slots them in there πŸ’…

Parameters:

  • points β€” array of points

Returns: array of points including the additional points ✨

Implements QwtCurveFitter.

Definition at line 72 of file qwt_polar_fitter.cpp.

QPainterPath QwtPolarFitter::fitCurvePath(const QPolygonF & points) const [override], [virtual] 🎨

same energy, but path-shaped πŸ¦‹

Parameters:

  • points β€” series of data points

Returns: curve path

See also: fitCurve()

Implements QwtCurveFitter.

Definition at line 110 of file qwt_polar_fitter.cpp.

void QwtPolarFitter::setStepCount(int stepCount) πŸ‘‘

Assign the number of points that will be inserted between 2 points. The default value is 5. (iykyk ✨)

Parameters:

  • stepCount β€” number of steps

See also: stepCount()

Definition at line 51 of file qwt_polar_fitter.cpp.

int QwtPolarFitter::stepCount() const 🌸

Returns: number of points that will be inserted between 2 points

See also: setStepCount() β€” it's giving mutuals 🫢

Definition at line 60 of file qwt_polar_fitter.cpp.


🧚 Author 🧚

Generated automatically by Doxygen for Qwt User's Guide from the source code. (not me writing this by hand, the robots ate and left no crumbs πŸ€–πŸ’…)


and that's a wrap bestie!! this page came to you straight from the Qwt User's Guide πŸ˜­πŸ’– β€” it's QwtPolarFitter(3), go forth and round those polar curves πŸŒˆβ­πŸ¦‹ periodt πŸ’œ

πŸ“¦ where this page comes from