QWT API (English) 7.0.1
Qt Widget Library for Technical Applications - English API Documentation
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Protected Member Functions | List of all members
QwtCurveFitter Class Referenceabstract

Abstract base class for curve fitting algorithms . More...

#include <qwt_curve_fitter.h>

Inheritance diagram for QwtCurveFitter:
QwtPolarFitter QwtSplineCurveFitter QwtWeedingCurveFitter

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.
 

Detailed Description

Abstract base class for curve fitting algorithms .

Member Enumeration Documentation

◆ 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.

See also
QwtWeedingCurveFitter
Path 

The fitting algorithm creates a painter path - the implementation of fitCurve() extracts a polygon from the path.

See also
QwtSplineCurveFitter

Constructor & Destructor Documentation

◆ ~QwtCurveFitter()

QwtCurveFitter::~QwtCurveFitter ( )
virtual

Destructor .

◆ QwtCurveFitter()

QwtCurveFitter::QwtCurveFitter ( Mode  mode)
explicitprotected

Constructor.

Member Function Documentation

◆ fitCurve()

virtual QPolygonF QwtCurveFitter::fitCurve ( const QPolygonF &  polygon) const
pure virtual

◆ fitCurvePath()

virtual QPainterPath QwtCurveFitter::fitCurvePath ( const QPolygonF &  polygon) const
pure virtual

◆ mode()

QwtCurveFitter::Mode QwtCurveFitter::mode ( ) const

Get the preferred fitting mode.


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