Abstract base class for a curve fitter. More...
#include <qwt_curve_fitter.h>
Public Types | |
enum | Mode { Polygon, Path } |
Preferred mode of the fitting algorithm. More... | |
Public Member Functions | |
virtual QPolygonF | fitCurve (const QPolygonF &polygon) const =0 |
virtual QPainterPath | fitCurvePath (const QPolygonF &polygon) const =0 |
Mode | mode () const |
virtual | ~QwtCurveFitter () |
Destructor. More... | |
Protected Member Functions | |
QwtCurveFitter (Mode mode) | |
Private Attributes | |
const Mode | d_mode |
Abstract base class for a curve fitter.
Definition at line 20 of file qwt_curve_fitter.h.
enum QwtCurveFitter::Mode |
Preferred mode of the fitting algorithm.
Even if a QPainterPath can always be created from a QPolygonF the overhead of the conversion can be avoided by indicating the preference of the implementation to the application code.
Enumerator | |
---|---|
Polygon |
The fitting algorithm creates a polygon - the implementation of fitCurvePath() simply wraps the polygon into a path.
|
Path |
The fitting algorithm creates a painter path - the implementation of fitCurve() extracts a polygon from the path.
|
Definition at line 31 of file qwt_curve_fitter.h.
|
virtual |
Destructor.
Definition at line 22 of file qwt_curve_fitter.cpp.
|
explicitprotected |
Constructor
mode | Preferred fitting mode |
Definition at line 16 of file qwt_curve_fitter.cpp.
|
pure virtual |
Find a curve which has the best fit to a series of data points
polygon | Series of data points |
Implemented in QwtWeedingCurveFitter, and QwtSplineCurveFitter.
|
pure virtual |
Find a curve path which has the best fit to a series of data points
polygon | Series of data points |
Implemented in QwtWeedingCurveFitter, and QwtSplineCurveFitter.
QwtCurveFitter::Mode QwtCurveFitter::mode | ( | ) | const |
Definition at line 27 of file qwt_curve_fitter.cpp.
|
private |
Definition at line 80 of file qwt_curve_fitter.h.