|
QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
|
An approximation using a basis spline 更多...
#include <qwt_spline_basis.h>
Public 成员函数 | |
| QwtSplineBasis () | |
| Constructor | |
| ~QwtSplineBasis () override | |
| Destructor | |
| virtual QPainterPath | painterPath (const QPolygonF &) const override |
| Get painter path from polygon | |
| virtual uint | locality () const override |
| Get locality (always 2) | |
Public 成员函数 继承自 QwtSpline | |
| QwtSpline () | |
| Constructor | |
| virtual | ~QwtSpline () |
| Destructor | |
| void | setParametrization (int type) |
| Set parametrization by type | |
| void | setParametrization (QwtSplineParametrization *) |
| Set parametrization object | |
| const QwtSplineParametrization * | parametrization () const |
| Get parametrization | |
| void | setBoundaryType (BoundaryType) |
| Set boundary type | |
| BoundaryType | boundaryType () const |
| Get boundary type | |
| void | setBoundaryValue (BoundaryPosition, double value) |
| Set boundary value | |
| double | boundaryValue (BoundaryPosition) const |
| Get boundary value | |
| void | setBoundaryCondition (BoundaryPosition, int condition) |
| Set boundary condition | |
| int | boundaryCondition (BoundaryPosition) const |
| Get boundary condition | |
| void | setBoundaryConditions (int condition, double valueBegin=0.0, double valueEnd=0.0) |
| Set boundary conditions for both ends | |
| virtual QPolygonF | polygon (const QPolygonF &, double tolerance) const |
| Get polygon approximation with tolerance | |
额外继承的成员函数 | |
Public 类型 继承自 QwtSpline | |
| enum | BoundaryType { ConditionalBoundaries , PeriodicPolygon , ClosedPolygon } |
| Boundary type specifying the spline at its endpoints 更多... | |
| enum | BoundaryPosition { AtBeginning , AtEnd } |
| position of a boundary condition 更多... | |
| enum | BoundaryCondition { Clamped1 , Clamped2 , Clamped3 , LinearRunout } |
| Boundary condition 更多... | |
An approximation using a basis spline
QwtSplineBasis approximates a set of points by a polynomials with C2 continuity ( = first and second derivatives are equal ) at the end points.
The end points of the spline do not match the original points.
|
overridevirtual |
Get locality (always 2)
Get locality
The locality is always 2, meaning changing one control point affects 2 polynomials before and 2 polynomials after.
重载 QwtSpline .
|
overridevirtual |
Get painter path from polygon
Approximate a polygon with cubic Bezier curves
Approximates a polygon piecewise with cubic Bezier curves and returns them as QPainterPath.
| [in] | points | Control points |
实现了 QwtSpline.