Qwt User's Guide svn
Public Types | Public Member Functions
QwtSplineCurveFitter Class Reference

#include <qwt_curve_fitter.h>

Inherits QwtCurveFitter.

List of all members.

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 QwtSplinespline () const
QwtSplinespline ()
int splineSize () const
virtual ~QwtSplineCurveFitter ()

Detailed Description

A curve fitter using cubic splines.


Member Enumeration Documentation

Spline type The default setting is Auto

See also:
setFitMode(), FitMode()
Enumerator:
Auto 

Use the default spline algorithm for polygons with increasing x values ( p[i-1] < p[i] ), otherwise use a parametric spline algorithm.

Spline 

Use a default spline algorithm.

ParametricSpline 

Use a parametric spline algorithm.


Constructor & Destructor Documentation

QwtSplineCurveFitter::QwtSplineCurveFitter ( )

Constructor.

QwtSplineCurveFitter::~QwtSplineCurveFitter ( ) [virtual]

Destructor.


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:
Curve points

Implements QwtCurveFitter.

QwtSplineCurveFitter::FitMode QwtSplineCurveFitter::fitMode ( ) const
Returns:
Mode representing a spline algorithm
See also:
setFitMode()
void QwtSplineCurveFitter::setFitMode ( FitMode  mode)

Select the algorithm used for building the spline

Parameters:
modeMode representing a spline algorithm
See also:
fitMode()
void QwtSplineCurveFitter::setSpline ( const QwtSpline spline)

Assign a spline

Parameters:
splineSpline
See also:
spline()
void QwtSplineCurveFitter::setSplineSize ( int  splineSize)

Assign a spline size ( has to be at least 10 points )

Parameters:
splineSizeSpline size
See also:
splineSize()
const QwtSpline & QwtSplineCurveFitter::spline ( ) const
Returns:
Spline
See also:
setSpline()
QwtSpline & QwtSplineCurveFitter::spline ( )
Returns:
Spline
See also:
setSpline()
int QwtSplineCurveFitter::splineSize ( ) const
Returns:
Spline size
See also:
setSplineSize()
qmi style