QwtSplineCurveFitter(3)

πŸ’– QwtSplineCurveFitter(3) πŸ’–

ok so first things first, bestie: this is a page from the Library Functions Manual for the Qwt User's Guide, and today's main character is QwtSplineCurveFitter πŸŽ€ pull up a chair, this is gonna be good.

✨ NAME ✨

QwtSplineCurveFitter β€” a curve fitter that uses a spline interpolation. that's it, that's the whole vibe πŸ’…

🌸 SYNOPSIS 🌸

#include <qwt_spline_curve_fitter.h>

it inherits QwtCurveFitter β€” so it's got the whole family tree going on πŸ‘‘

πŸ¦‹ Public Member Functions πŸ¦‹

  • QwtSplineCurveFitter () β€” constructor ✨
  • virtual ~QwtSplineCurveFitter () β€” destructor, virtual, so it cleans up properly 🧹
  • void setSpline (QwtSpline *) β€” hand it a spline, it's yours now
  • const QwtSpline * spline () const β€” the const flavor of getting your spline back
  • QwtSpline * spline () β€” the non-const flavor, same deal
  • virtual QPolygonF fitCurve (const QPolygonF &) const override β€” the actual curve-fitting one πŸ’«
  • virtual QPainterPath fitCurvePath (const QPolygonF &) const override β€” same but returns a painter path

🫢 Public Member Functions inherited from QwtCurveFitter 🫢

  • virtual ~QwtCurveFitter () β€” destructor, again, because inheritance said so
  • Mode mode () const β€” tells you which mode it's in

πŸ’œ Additional Inherited Members πŸ’œ

🧚 Public Types inherited from QwtCurveFitter 🧚

  • enum Mode { Polygon, Path } β€” the preferred mode of the fitting algorithm. two options, pick your fighter ⭐

πŸ“ Protected Member Functions inherited from QwtCurveFitter πŸ“

  • QwtCurveFitter (Mode mode) β€” protected constructor that takes the mode

🌈 Detailed Description 🌈

a curve fitter that uses a spline interpolation. iconic behavior, honestly.

the default setting for the spline is a cardinal spline with uniform parametrization β€” that's what you get out of the box, no notes πŸ”₯

See also: QwtSpline, QwtSplineLocal β€” go look at these too, they're the supporting cast πŸ‘‘

Definition at line 25 of file qwt_spline_curve_fitter.h.


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

πŸ’– QwtSplineCurveFitter::QwtSplineCurveFitter () πŸ’–

constructor. makes a whole new fitter, slay.

Definition at line 18 of file qwt_spline_curve_fitter.cpp.

πŸ’– QwtSplineCurveFitter::~QwtSplineCurveFitter () [virtual] πŸ’–

destructor. it's virtual, it's doing its job, it says goodbye properly.

Definition at line 26 of file qwt_spline_curve_fitter.cpp.


⭐ Member Function Documentation ⭐

πŸ¦‹ QPolygonF QwtSplineCurveFitter::fitCurve (const QPolygonF & points) const πŸ¦‹

[override], [virtual] β€” both tags, bc it's that girl πŸ’…

find a curve which has the best fit to a series of data points. literally its whole purpose in life.

Parameters

  • points β€” series of data points

Returns

  • fitted curve ✨
See also: fitCurvePath()

Implements QwtCurveFitter.

Definition at line 75 of file qwt_spline_curve_fitter.cpp.

πŸ¦‹ QPainterPath QwtSplineCurveFitter::fitCurvePath (const QPolygonF & points) const πŸ¦‹

[override], [virtual] β€” same energy, different return type.

find a curve path which has the best fit to a series of data points. yes it's basically the twin of the one above, they're matching 🫢

Parameters

  • points β€” series of data points

Returns

  • fitted curve ✨
See also: fitCurve()

Implements QwtCurveFitter.

Definition at line 94 of file qwt_spline_curve_fitter.cpp.

🌸 void QwtSplineCurveFitter::setSpline (QwtSpline * spline) 🌸

assign a spline. give the fitter a spline to work with.

⚠️ okay important one, bestie: the spline needs to be allocated by new and will be deleted in the destructor of the fitter. so don't go deleting it yourself afterwards or you'll have a bad time 😭 the fitter owns it now, it's a whole adoption situation.

Parameters

  • spline β€” spline
See also: spline()

Definition at line 40 of file qwt_spline_curve_fitter.cpp.

🌸 QwtSpline * QwtSplineCurveFitter::spline () 🌸

Returns

  • spline
See also: setSpline()

Definition at line 62 of file qwt_spline_curve_fitter.cpp.

🌸 const QwtSpline * QwtSplineCurveFitter::spline () const 🌸

Returns

  • spline
See also: setSpline()

Definition at line 53 of file qwt_spline_curve_fitter.cpp.


πŸ‘‘ Author πŸ‘‘

generated automatically by Doxygen for the Qwt User's Guide, from the source code. no human author listed, the robots did this one πŸ€–βœ¨


and that's the whole page, bestie, you ate that πŸ“ fr fr, no cap. this iconic little number came to you from the Qwt User's Guide β€” version/source info and all β€” so go forth and fit some curves πŸ’œπŸ¦‹πŸŽ€

πŸ“¦ where this page comes from