QWT 7.0.1
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QwtSplineBasis Class Reference

An approximation using a basis spline. More...

#include <qwt_spline_basis.h>

Inheritance diagram for QwtSplineBasis:
QwtSpline

Public Member Functions

 QwtSplineBasis ()
 Constructor.
 
virtual ~QwtSplineBasis ()
 Destructor.
 
virtual QPainterPath painterPath (const QPolygonF &) const QWT_OVERRIDE
 Approximates a polygon piecewise with cubic Bezier curves and returns them as QPainterPath.
 
virtual uint locality () const QWT_OVERRIDE
 The locality is always 2.
 
- Public Member Functions inherited from QwtSpline
 QwtSpline ()
 Constructor.
 
virtual ~QwtSpline ()
 Destructor.
 
void setParametrization (int type)
 Define the parametrization for a parametric spline approximation The default setting is a chordal parametrization.
 
void setParametrization (QwtSplineParametrization *)
 Define the parametrization for a parametric spline approximation The default setting is a chordal parametrization.
 
const QwtSplineParametrizationparametrization () const
 
void setBoundaryType (BoundaryType)
 Define the boundary type for the endpoints of the approximating spline.
 
BoundaryType boundaryType () const
 
void setBoundaryValue (BoundaryPosition, double value)
 Define the boundary value.
 
double boundaryValue (BoundaryPosition) const
 
void setBoundaryCondition (BoundaryPosition, int condition)
 Define the condition for an endpoint of the spline.
 
int boundaryCondition (BoundaryPosition) const
 
void setBoundaryConditions (int condition, double valueBegin=0.0, double valueEnd=0.0)
 Define the condition at the endpoints of a spline.
 
virtual QPolygonF polygon (const QPolygonF &, double tolerance) const
 Interpolate a curve by a polygon.
 

Additional Inherited Members

- Public Types inherited from QwtSpline
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...
 

Detailed Description

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.

Member Function Documentation

◆ locality()

uint QwtSplineBasis::locality ( ) const
virtual

The locality is always 2.

Reimplemented from QwtSpline.

◆ painterPath()

QPainterPath QwtSplineBasis::painterPath ( const QPolygonF &  points) const
virtual

Approximates a polygon piecewise with cubic Bezier curves and returns them as QPainterPath.

Parameters
pointsControl points
Returns
Painter path, that can be rendered by QPainter

Implements QwtSpline.


The documentation for this class was generated from the following files: