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

A simple curve fitter for polar points 更多...

#include <qwt_polar_fitter.h>

类 QwtPolarFitter 继承关系图:
QwtCurveFitter

class  PrivateData
 

Public 成员函数

 QwtPolarFitter (int stepCount=5)
 Constructor
 
 ~QwtPolarFitter () override
 Destructor
 
void setStepCount (int size)
 Set the step count
 
int stepCount () const
 Get the step count
 
virtual QPolygonF fitCurve (const QPolygonF &) const override
 Fit a curve
 
virtual QPainterPath fitCurvePath (const QPolygonF &) const override
 Fit a curve path
 
- Public 成员函数 继承自 QwtCurveFitter
virtual ~QwtCurveFitter ()
 Destructor
 
Mode mode () const
 Get the preferred fitting mode
 

额外继承的成员函数

- Public 类型 继承自 QwtCurveFitter
enum  Mode { Polygon , Path }
 Preferred mode of the fitting algorithm 更多...
 
- Protected 成员函数 继承自 QwtCurveFitter
 QwtCurveFitter (Mode mode)
 Constructor
 

详细描述

A simple curve fitter for polar points

QwtPolarFitter adds equidistant points between 2 curve points, so that the connection gets rounded according to the nature of a polar plot.

参见
QwtPolarCurve::setCurveFitter()

构造及析构函数说明

◆ QwtPolarFitter()

QwtPolarFitter::QwtPolarFitter ( int  stepCount = 5)

Constructor

参数
stepCountNumber of points that will be inserted between 2 points
参见
setStepCount()

Destructor

成员函数说明

◆ fitCurve()

QPolygonF QwtPolarFitter::fitCurve ( const QPolygonF &  points) const
overridevirtual

Fit a curve

Insert stepCount() number of additional points between 2 elements of points

参数
pointsArray of points
返回
Array of points including the additional points

实现了 QwtCurveFitter.

◆ fitCurvePath()

QPainterPath QwtPolarFitter::fitCurvePath ( const QPolygonF &  points) const
overridevirtual

Fit a curve path

Create a curve path from the data points

参数
pointsSeries of data points
返回
Curve path
参见
fitCurve()

实现了 QwtCurveFitter.

◆ setStepCount()

void QwtPolarFitter::setStepCount ( int  stepCount)

Set the step count

Assign the number of points that will be inserted between 2 points

The default value is 5.

参数
stepCountNumber of steps
参见
stepCount()

◆ stepCount()

int QwtPolarFitter::stepCount ( ) const

Get the step count

Get the number of points that will be inserted between 2 points

返回
Number of points that will be inserted between 2 points
参见
setStepCount()

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