Classes | Public Types | Public Member Functions | Private Attributes | List of all members
QwtSplineApproximation Class Referenceabstract

#include <qwt_spline_approximation.h>

Classes

class  PrivateData
 

Public Types

enum  BoundaryType { ConditionalBoundaries, PeriodicPolygon, ClosedPolygon }
 

Public Member Functions

BoundaryType boundaryType () const
 
virtual uint locality () const
 
virtual QPainterPath painterPath (const QPolygonF &) const =0
 
const QwtSplineParametrizationparametrization () const
 
 QwtSplineApproximation ()
 Constructor. More...
 
void setBoundaryType (BoundaryType)
 
void setParametrization (int type)
 
void setParametrization (QwtSplineParametrization *)
 
virtual ~QwtSplineApproximation ()
 Destructor. More...
 

Private Attributes

PrivateDatad_data
 

Detailed Description

Definition at line 18 of file qwt_spline_approximation.h.

Member Enumeration Documentation

Enumerator
ConditionalBoundaries 
PeriodicPolygon 
ClosedPolygon 

ClosedPolygon is similar to PeriodicPolygon beside, that the interpolation includes the connection between the last and the first control point.

Note
Only works for parametrizations, where the parameter increment for the the final closing line is positive. This excludes QwtSplineParametrization::ParameterX and QwtSplineParametrization::ParameterY

Definition at line 21 of file qwt_spline_approximation.h.

Constructor & Destructor Documentation

QwtSplineApproximation::QwtSplineApproximation ( )

Constructor.

The default setting is a non closing spline with chordal parametrization

See also
setParametrization(), setClosing()

Definition at line 39 of file qwt_spline_approximation.cpp.

QwtSplineApproximation::~QwtSplineApproximation ( )
virtual

Destructor.

Definition at line 45 of file qwt_spline_approximation.cpp.

Member Function Documentation

QwtSplineApproximation::BoundaryType QwtSplineApproximation::boundaryType ( ) const

Definition at line 96 of file qwt_spline_approximation.cpp.

uint QwtSplineApproximation::locality ( ) const
virtual

The locality of an spline interpolation identifies how many adjacent polynoms are affected, when changing the position of one point.

A locality of 'n' means, that changing the coordinates of a point has an effect on 'n' leading and 'n' following polynoms. Those polynoms can be calculated from a local subpolygon.

A value of 0 means, that the interpolation is not local and any modification of the polygon requires to recalculate all polynoms ( f.e cubic splines ).

Returns
Order of locality

Definition at line 63 of file qwt_spline_approximation.cpp.

virtual QPainterPath QwtSplineApproximation::painterPath ( const QPolygonF &  ) const
pure virtual
const QwtSplineParametrization * QwtSplineApproximation::parametrization ( ) const

Definition at line 86 of file qwt_spline_approximation.cpp.

void QwtSplineApproximation::setBoundaryType ( BoundaryType  boundaryType)

Definition at line 91 of file qwt_spline_approximation.cpp.

void QwtSplineApproximation::setParametrization ( int  type)

Definition at line 68 of file qwt_spline_approximation.cpp.

void QwtSplineApproximation::setParametrization ( QwtSplineParametrization parametrization)

Definition at line 77 of file qwt_spline_approximation.cpp.

Member Data Documentation

PrivateData* QwtSplineApproximation::d_data
private

Definition at line 56 of file qwt_spline_approximation.h.


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