|
QWT API (中文) 7.0.1
Qt绘图库 - 中文API文档
|
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 | ( | double | tolerance = 0.5 | ) |
Constructor with tolerance parameter
构造函数
| QwtBezier::~QwtBezier | ( | ) |
Destructor
析构函数
| 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 曲线
|
static |
Find a point on a Bézier curve at parameter t
查找 Bézier 曲线上的点
| void QwtBezier::setTolerance | ( | double | tolerance | ) |
Set the tolerance for curve subdivision
设置曲线细分的容差
|
inline |
Get the tolerance value
| 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 曲线