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:
Inheritance graph
[legend]

Public Member Functions

virtual uint locality () const
 The locality is always 2. More...
 
virtual QPainterPath painterPath (const QPolygonF &) const
 
 QwtSplineBasis ()
 Constructor. More...
 
virtual ~QwtSplineBasis ()
 Destructor. More...
 
- Public Member Functions inherited from QwtSpline
int boundaryCondition (BoundaryPosition) const
 
BoundaryType boundaryType () const
 
double boundaryValue (BoundaryPosition) const
 
const QwtSplineParametrizationparametrization () const
 
virtual QPolygonF polygon (const QPolygonF &, double tolerance) const
 Interpolate a curve by a polygon. More...
 
 QwtSpline ()
 Constructor. More...
 
void setBoundaryCondition (BoundaryPosition, int condition)
 Define the condition for an endpoint of the spline. More...
 
void setBoundaryConditions (int condition, double valueBegin=0.0, double valueEnd=0.0)
 Define the condition at the endpoints of a spline. More...
 
void setBoundaryType (BoundaryType)
 
void setBoundaryValue (BoundaryPosition, double value)
 Define the boundary value. More...
 
void setParametrization (int type)
 
void setParametrization (QwtSplineParametrization *)
 
virtual ~QwtSpline ()
 Destructor. More...
 

Additional Inherited Members

- Public Types inherited from QwtSpline
enum  BoundaryCondition { Clamped1, Clamped2, Clamped3, LinearRunout }
 Boundary condition. More...
 
enum  BoundaryPosition { AtBeginning, AtEnd }
 
enum  BoundaryType { ConditionalBoundaries, PeriodicPolygon, ClosedPolygon }
 

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.

Definition at line 24 of file qwt_spline_basis.h.

Constructor & Destructor Documentation

QwtSplineBasis::QwtSplineBasis ( )

Constructor.

Definition at line 215 of file qwt_spline_basis.cpp.

QwtSplineBasis::~QwtSplineBasis ( )
virtual

Destructor.

Definition at line 220 of file qwt_spline_basis.cpp.

Member Function Documentation

uint QwtSplineBasis::locality ( ) const
virtual

The locality is always 2.

Reimplemented from QwtSpline.

Definition at line 225 of file qwt_spline_basis.cpp.

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.

Definition at line 237 of file qwt_spline_basis.cpp.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Sat Jul 6 2019 03:44:19