Public Member Functions | Private Attributes | List of all members
QwtSplineCurveFitter Class Reference

A curve fitter using a spline interpolation. More...

#include <qwt_spline_curve_fitter.h>

Inheritance diagram for QwtSplineCurveFitter:
Inheritance graph
[legend]

Public Member Functions

virtual QPolygonF fitCurve (const QPolygonF &) const
 
virtual QPainterPath fitCurvePath (const QPolygonF &) const
 
 QwtSplineCurveFitter ()
 Constructor. More...
 
void setSpline (QwtSpline *)
 
const QwtSplinespline () const
 
QwtSplinespline ()
 
virtual ~QwtSplineCurveFitter ()
 Destructor. More...
 
- Public Member Functions inherited from QwtCurveFitter
Mode mode () const
 
virtual ~QwtCurveFitter ()
 Destructor. More...
 

Private Attributes

QwtSplined_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)
 

Detailed Description

A curve fitter using a spline interpolation.

The default setting for the spline is a cardinal spline with uniform parametrization.

See also
QwtSpline, QwtSplineLocal

Definition at line 25 of file qwt_spline_curve_fitter.h.

Constructor & Destructor Documentation

QwtSplineCurveFitter::QwtSplineCurveFitter ( )

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.

Member Function Documentation

QPolygonF QwtSplineCurveFitter::fitCurve ( const QPolygonF &  points) const
virtual

Find a curve which has the best fit to a series of data points

Parameters
pointsSeries of data points
Returns
Fitted Curve
See also
fitCurvePath()

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

Parameters
pointsSeries of data points
Returns
Fitted Curve
See also
fitCurve()

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.

Parameters
splineSpline
See also
spline()

Definition at line 37 of file qwt_spline_curve_fitter.cpp.

const QwtSpline * QwtSplineCurveFitter::spline ( ) const
Returns
Spline
See also
setSpline()

Definition at line 50 of file qwt_spline_curve_fitter.cpp.

QwtSpline * QwtSplineCurveFitter::spline ( )
Returns
Spline
See also
setSpline()

Definition at line 59 of file qwt_spline_curve_fitter.cpp.

Member Data Documentation

QwtSpline* QwtSplineCurveFitter::d_spline
private

Definition at line 40 of file qwt_spline_curve_fitter.h.


The documentation for this class was generated from the following files:


plotjuggler
Author(s): Davide Faconti
autogenerated on Sat Jul 6 2019 03:44:19