|
QWT API (English) 7.0.1
Qt Widget Library for Technical Applications - English API Documentation
|
Abstract base class for curve fitting algorithms . More...
#include <qwt_curve_fitter.h>
Public Types | |
| enum | Mode { Polygon , Path } |
Public Member Functions | |
| virtual | ~QwtCurveFitter () |
| Destructor . | |
| Mode | mode () const |
| Get the preferred fitting mode. | |
| virtual QPolygonF | fitCurve (const QPolygonF &polygon) const =0 |
| virtual QPainterPath | fitCurvePath (const QPolygonF &polygon) const =0 |
Protected Member Functions | |
| QwtCurveFitter (Mode mode) | |
| Constructor. | |
Abstract base class for curve fitting algorithms .
| 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.
|
|
virtual |
Destructor .
|
explicitprotected |
Constructor.
|
pure virtual |
Implemented in QwtPolarFitter, QwtSplineCurveFitter, and QwtWeedingCurveFitter.
|
pure virtual |
Implemented in QwtPolarFitter, QwtSplineCurveFitter, and QwtWeedingCurveFitter.
| QwtCurveFitter::Mode QwtCurveFitter::mode | ( | ) | const |
Get the preferred fitting mode.