A curve fitter using a spline interpolation. More...
#include <qwt_spline_curve_fitter.h>

Public Member Functions | |
| virtual QPolygonF | fitCurve (const QPolygonF &) const |
| virtual QPainterPath | fitCurvePath (const QPolygonF &) const |
| QwtSplineCurveFitter () | |
| Constructor. | |
| void | setSpline (QwtSpline *) |
| const QwtSpline * | spline () const |
| QwtSpline * | spline () |
| virtual | ~QwtSplineCurveFitter () |
| Destructor. | |
Private Attributes | |
| QwtSpline * | d_spline |
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.
Constructor.
Definition at line 15 of file qwt_spline_curve_fitter.cpp.
| QwtSplineCurveFitter::~QwtSplineCurveFitter | ( | ) | [virtual] |
Destructor.
Definition at line 23 of file qwt_spline_curve_fitter.cpp.
| QPolygonF QwtSplineCurveFitter::fitCurve | ( | const QPolygonF & | points | ) | const [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 72 of file qwt_spline_curve_fitter.cpp.
| QPainterPath QwtSplineCurveFitter::fitCurvePath | ( | const QPolygonF & | points | ) | const [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 91 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 37 of file qwt_spline_curve_fitter.cpp.
| const QwtSpline * QwtSplineCurveFitter::spline | ( | ) | const |
QwtSpline* QwtSplineCurveFitter::d_spline [private] |
Definition at line 40 of file qwt_spline_curve_fitter.h.