|
QWT API (English) 7.3.0
Qt Widget Library for Technical Applications - English API Documentation
|
A curve fitter using a spline interpolation. More...
#include <qwt_spline_curve_fitter.h>
Public Member Functions | |
| QwtSplineCurveFitter () | |
| Constructor. | |
| ~QwtSplineCurveFitter () override | |
| Destructor. | |
| void | setSpline (QwtSpline *) |
| Assign a spline. | |
| const QwtSpline * | spline () const |
| Get the spline (const version) | |
| QwtSpline * | spline () |
| Get the spline (non-const version) | |
| virtual QPolygonF | fitCurve (const QPolygonF &) const override |
| Find a curve which has the best fit to a series of data points. | |
| virtual QPainterPath | fitCurvePath (const QPolygonF &) const override |
| Find a curve path which has the best fit to a series of data points. | |
Public Member Functions inherited from QwtCurveFitter | |
| virtual | ~QwtCurveFitter () |
| Destructor. | |
| Mode | mode () const |
| Get the preferred fitting mode. | |
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) | |
| Constructor. | |
A curve fitter using a spline interpolation.
The default setting for the spline is a cardinal spline with uniform parametrization.
| QwtSplineCurveFitter::QwtSplineCurveFitter | ( | ) |
Constructor.
Creates a spline curve fitter with a cardinal spline using uniform parametrization.
|
override |
Destructor.
Deletes the internal spline object.
|
overridevirtual |
Find a curve which has the best fit to a series of data points.
| points | Series of data points |
Implements QwtCurveFitter.
|
overridevirtual |
Find a curve path which has the best fit to a series of data points.
| points | Series of data points |
Implements QwtCurveFitter.
| 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 |
| QwtSpline * QwtSplineCurveFitter::spline | ( | ) |
| const QwtSpline * QwtSplineCurveFitter::spline | ( | ) | const |