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

de Casteljau 算法的 Bézier 曲线插值实现 更多...

#include <qwt_bezier.h>

Public 成员函数

 QwtBezier (double tolerance=0.5)
 Constructor with tolerance parameter
 
 ~QwtBezier ()
 Destructor
 
void setTolerance (double tolerance)
 Set the tolerance for curve subdivision
 
double tolerance () const
 Get the tolerance value
 
QPolygonF toPolygon (const QPointF &p1, const QPointF &cp1, const QPointF &cp2, const QPointF &p2) const
 Interpolate a Bézier curve as a polygon
 
void appendToPolygon (const QPointF &p1, const QPointF &cp1, const QPointF &cp2, const QPointF &p2, QPolygonF &polygon) const
 Append Bézier curve points to an existing polygon
 

静态 Public 成员函数

static QPointF pointAt (const QPointF &p1, const QPointF &cp1, const QPointF &cp2, const QPointF &p2, double t)
 Find a point on a Bézier curve at parameter t
 

详细描述

de Casteljau 算法的 Bézier 曲线插值实现

构造及析构函数说明

◆ QwtBezier()

QwtBezier::QwtBezier ( double  tolerance = 0.5)

Constructor with tolerance parameter

构造函数

◆ ~QwtBezier()

QwtBezier::~QwtBezier ( )

Destructor

析构函数

成员函数说明

◆ appendToPolygon()

void QwtBezier::appendToPolygon ( const QPointF &  p1,
const QPointF &  cp1,
const QPointF &  cp2,
const QPointF &  p2,
QPolygonF &  polygon 
) const

Append Bézier curve points to an existing polygon

通过将点添加到多边形来插值 Bézier 曲线

◆ pointAt()

QPointF QwtBezier::pointAt ( const QPointF &  p1,
const QPointF &  cp1,
const QPointF &  cp2,
const QPointF &  p2,
double  t 
)
static

Find a point on a Bézier curve at parameter t

查找 Bézier 曲线上的点

◆ setTolerance()

void QwtBezier::setTolerance ( double  tolerance)

Set the tolerance for curve subdivision

设置曲线细分的容差

◆ tolerance()

double QwtBezier::tolerance ( ) const
inline

Get the tolerance value

返回
Tolerance value used for subdivision

◆ toPolygon()

QPolygonF QwtBezier::toPolygon ( const QPointF &  p1,
const QPointF &  cp1,
const QPointF &  cp2,
const QPointF &  p2 
) const

Interpolate a Bézier curve as a polygon

用多边形插值 Bézier 曲线


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