QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
载入中...
搜索中...
未找到
Public 类型 | Public 成员函数 | Protected 成员函数 | 所有成员列表
QwtCurveFitter类 参考abstract

Abstract base class for curve fitting algorithms 更多...

#include <qwt_curve_fitter.h>

类 QwtCurveFitter 继承关系图:
QwtPolarFitter QwtSplineCurveFitter QwtWeedingCurveFitter

Public 类型

enum  Mode { Polygon , Path }
 Preferred mode of the fitting algorithm 更多...
 

Public 成员函数

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 成员函数

 QwtCurveFitter (Mode mode)
 Constructor
 

详细描述

Abstract base class for curve fitting algorithms

成员枚举类型说明

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

枚举值
Polygon 

The fitting algorithm creates a polygon - the implementation of fitCurvePath() simply wraps the polygon into a path.

参见
QwtWeedingCurveFitter
Path 

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

参见
QwtSplineCurveFitter

构造及析构函数说明

◆ QwtCurveFitter()

QwtCurveFitter::QwtCurveFitter ( Mode  mode)
explicitprotected

Constructor

参数
modePreferred fitting mode

成员函数说明

◆ 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

返回
Preferred fitting mode

该类的文档由以下文件生成: