|
QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
|
A spline with G1 continuity 更多...
#include <qwt_spline_pleasing.h>
Public 成员函数 | |
| QwtSplinePleasing () | |
| Constructor | |
| ~QwtSplinePleasing () override | |
| Destructor | |
| virtual uint | locality () const override |
| Get locality | |
| virtual QPainterPath | painterPath (const QPolygonF &) const override |
| Interpolate a curve with Bezier curves | |
| virtual QVector< QLineF > | bezierControlLines (const QPolygonF &) const override |
| Interpolate a curve with Bezier curves | |
Public 成员函数 继承自 QwtSplineG1 | |
| QwtSplineG1 () | |
| Constructor | |
| ~QwtSplineG1 () override | |
| Destructor | |
Public 成员函数 继承自 QwtSplineInterpolating | |
| QwtSplineInterpolating () | |
| Constructor | |
| ~QwtSplineInterpolating () override | |
| Destructor | |
| virtual QPolygonF | equidistantPolygon (const QPolygonF &, double distance, bool withNodes) const |
| Find an interpolated polygon with "equidistant" points | |
| virtual QPolygonF | polygon (const QPolygonF &, double tolerance) const override |
| Interpolate a curve by a polygon | |
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 | |
额外继承的成员函数 | |
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 更多... | |
A spline with G1 continuity
QwtSplinePleasing is some sort of cardinal spline, with non C1 continuous extra rules for narrow angles. It has a locality of 2.
| QwtSplinePleasing::QwtSplinePleasing | ( | ) |
Constructor
The default setting is a non closing spline with uniform parametrization. ( QwtSplineParametrization::ParameterUniform ).
|
overridevirtual |
Interpolate a curve with Bezier curves
Interpolates a polygon piecewise with cubic Bezier curves and returns the 2 control points of each curve as QLineF.
| points | Control points |
|
overridevirtual |
|
overridevirtual |
Interpolate a curve with Bezier curves
Interpolates a polygon piecewise with cubic Bezier curves and returns them as QPainterPath.
| points | Control points |