Qwt User's Guide
svn
|
#include <qwt_curve_fitter.h>
Inherits QwtCurveFitter.
Public Types | |
enum | FitMode { Auto, Spline, ParametricSpline } |
Public Member Functions | |
virtual QPolygonF | fitCurve (const QPolygonF &) const |
FitMode | fitMode () const |
QwtSplineCurveFitter () | |
void | setFitMode (FitMode) |
void | setSpline (const QwtSpline &) |
void | setSplineSize (int size) |
const QwtSpline & | spline () const |
QwtSpline & | spline () |
int | splineSize () const |
virtual | ~QwtSplineCurveFitter () |
A curve fitter using cubic splines.
Spline type The default setting is Auto
QwtSplineCurveFitter::QwtSplineCurveFitter | ( | ) |
Constructor.
QwtSplineCurveFitter::~QwtSplineCurveFitter | ( | ) | [virtual] |
Destructor.
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.
QwtSplineCurveFitter::FitMode QwtSplineCurveFitter::fitMode | ( | ) | const |
void QwtSplineCurveFitter::setFitMode | ( | FitMode | mode | ) |
Select the algorithm used for building the spline
mode | Mode representing a spline algorithm |
void QwtSplineCurveFitter::setSpline | ( | const QwtSpline & | spline | ) |
void QwtSplineCurveFitter::setSplineSize | ( | int | splineSize | ) |
Assign a spline size ( has to be at least 10 points )
splineSize | Spline size |
const QwtSpline & QwtSplineCurveFitter::spline | ( | ) | const |
QwtSpline & QwtSplineCurveFitter::spline | ( | ) |
int QwtSplineCurveFitter::splineSize | ( | ) | const |