A curve fitter using a spline interpolation. More...
#include <qwt_spline_curve_fitter.h>
Public Member Functions | |
virtual QPolygonF | fitCurve (const QPolygonF &) const QWT_OVERRIDE |
virtual QPainterPath | fitCurvePath (const QPolygonF &) const QWT_OVERRIDE |
QwtSplineCurveFitter () | |
Constructor. More... | |
void | setSpline (QwtSpline *) |
QwtSpline * | spline () |
const QwtSpline * | spline () const |
virtual | ~QwtSplineCurveFitter () |
Destructor. More... | |
Public Member Functions inherited from QwtCurveFitter | |
Mode | mode () const |
virtual | ~QwtCurveFitter () |
Destructor. More... | |
Private Attributes | |
QwtSpline * | m_spline |
Additional Inherited Members | |
Public Types inherited from QwtCurveFitter | |
enum | Mode { Polygon, Path } |
Preferred mode of the fitting algorithm. More... | |
Protected Member Functions inherited from QwtCurveFitter | |
QwtCurveFitter (Mode mode) | |
A curve fitter using a spline interpolation.
The default setting for the spline is a cardinal spline with uniform parametrization.
Definition at line 25 of file qwt_spline_curve_fitter.h.
QwtSplineCurveFitter::QwtSplineCurveFitter | ( | ) |
Constructor.
Definition at line 18 of file qwt_spline_curve_fitter.cpp.
|
virtual |
Destructor.
Definition at line 26 of file qwt_spline_curve_fitter.cpp.
|
virtual |
Find a curve which has the best fit to a series of data points
points | Series of data points |
Implements QwtCurveFitter.
Definition at line 75 of file qwt_spline_curve_fitter.cpp.
|
virtual |
Find a curve path which has the best fit to a series of data points
points | Series of data points |
Implements QwtCurveFitter.
Definition at line 94 of file qwt_spline_curve_fitter.cpp.
void QwtSplineCurveFitter::setSpline | ( | QwtSpline * | spline | ) |
Assign a spline
The spline needs to be allocated by new and will be deleted in the destructor of the fitter.
spline | Spline |
Definition at line 40 of file qwt_spline_curve_fitter.cpp.
QwtSpline* QwtSplineCurveFitter::spline | ( | ) |
QwtSpline * QwtSplineCurveFitter::spline | ( | ) | const |
|
private |
Definition at line 40 of file qwt_spline_curve_fitter.h.