|
QWT API (English) 7.0.1
Qt Widget Library for Technical Applications - English API Documentation
|
Base class for all splines. More...
#include <qwt_spline.h>
Classes | |
| class | PrivateData |
Public Types | |
| enum | BoundaryType { ConditionalBoundaries , PeriodicPolygon , ClosedPolygon } |
| Boundary type specifying the spline at its endpoints. More... | |
| enum | BoundaryPosition { AtBeginning , AtEnd } |
| position of a boundary condition More... | |
| enum | BoundaryCondition { Clamped1 , Clamped2 , Clamped3 , LinearRunout } |
| Boundary condition. More... | |
Public Member Functions | |
| 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. | |
| virtual QPainterPath | painterPath (const QPolygonF &) const =0 |
| Get painter path from polygon (pure virtual) | |
| virtual uint | locality () const |
| Get locality (number of points used for calculation) | |
Base class for all splines.
Boundary condition.
| Enumerator | |
|---|---|
| Clamped1 | The first derivative at the end point is given
|
| Clamped2 | The second derivative at the end point is given
|
| Clamped3 | The third derivative at the end point is given
|
| LinearRunout | The first derivate at the endpoint is related to the first derivative at its neighbour by the boundary value. F,e when the boundary value at the end is 1.0 then the slope at the last 2 points is the same.
|
Boundary type specifying the spline at its endpoints.
| Enumerator | |
|---|---|
| ConditionalBoundaries | The polynomials at the start/endpoint depend on specific conditions
|
| PeriodicPolygon | The polynomials at the start/endpoint are found by using imaginary additional points. Additional points at the end are found by translating points from the beginning or v.v. |
| ClosedPolygon | ClosedPolygon is similar to PeriodicPolygon beside, that the interpolation includes the connection between the last and the first control point.
|
| QwtSpline::QwtSpline | ( | ) |
Constructor.
|
virtual |
Destructor.
Destructor
.
| int QwtSpline::boundaryCondition | ( | BoundaryPosition | position | ) | const |
Get boundary condition.
| QwtSpline::BoundaryType QwtSpline::boundaryType | ( | ) | const |
Get boundary type.
| double QwtSpline::boundaryValue | ( | BoundaryPosition | position | ) | const |
Get boundary value.
|
virtual |
Get locality (number of points used for calculation)
Get the locality of the spline interpolation.
Reimplemented in QwtSplineBasis, QwtSplineCubic, QwtSplineLocal, and QwtSplinePleasing.
|
pure virtual |
Get painter path from polygon (pure virtual)
Approximates a polygon piecewise with cubic Bezier curves and returns them as QPainterPath.
| points | Control points |
Implemented in QwtSplineInterpolating, QwtSplineC1, QwtSplineC2, QwtSplineBasis, QwtSplineCubic, QwtSplineLocal, and QwtSplinePleasing.
| const QwtSplineParametrization * QwtSpline::parametrization | ( | ) | const |
Get parametrization.
|
virtual |
Get polygon approximation with tolerance.
Interpolate a curve by a polygon.
Reimplemented in QwtSplineInterpolating.
| void QwtSpline::setBoundaryCondition | ( | BoundaryPosition | position, |
| int | condition | ||
| ) |
Set boundary condition.
| void QwtSpline::setBoundaryConditions | ( | int | condition, |
| double | valueBegin = 0.0, |
||
| double | valueEnd = 0.0 |
||
| ) |
Set boundary conditions for both ends.
| void QwtSpline::setBoundaryType | ( | BoundaryType | boundaryType | ) |
Set boundary type.
| void QwtSpline::setBoundaryValue | ( | BoundaryPosition | position, |
| double | value | ||
| ) |
Set boundary value.
| void QwtSpline::setParametrization | ( | int | type | ) |
Set parametrization by type.
| void QwtSpline::setParametrization | ( | QwtSplineParametrization * | parametrization | ) |
Set parametrization object.