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 nowconst QwtSpline * spline () constβ the const flavor of getting your spline backQwtSpline * spline ()β the non-const flavor, same dealvirtual 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 soMode 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
- alpine 3.24: qwt-doc 6.3.0-r0 Β· custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms