Public Member Functions | List of all members
QwtSplinePleasing Class Reference

A spline with G1 continuity. More...

#include <qwt_spline_pleasing.h>

Inheritance diagram for QwtSplinePleasing:
Inheritance graph
[legend]

Public Member Functions

virtual QVector< QLineF > bezierControlLines (const QPolygonF &points) const
 Interpolate a curve with Bezier curves. More...
 
virtual uint locality () const
 
virtual QPainterPath painterPath (const QPolygonF &) const
 Interpolate a curve with Bezier curves. More...
 
 QwtSplinePleasing ()
 Constructor. More...
 
virtual ~QwtSplinePleasing ()
 Destructor. More...
 
- Public Member Functions inherited from QwtSplineG1
 QwtSplineG1 ()
 Constructor. More...
 
virtual ~QwtSplineG1 ()
 Destructor. More...
 
- Public Member Functions inherited from QwtSplineInterpolating
virtual QPolygonF equidistantPolygon (const QPolygonF &, double distance, bool withNodes) const
 Find an interpolated polygon with "equidistant" points. More...
 
virtual QPolygonF polygon (const QPolygonF &, double tolerance) const
 Interpolate a curve by a polygon. More...
 
 QwtSplineInterpolating ()
 Constructor. More...
 
virtual ~QwtSplineInterpolating ()
 Destructor. More...
 
- Public Member Functions inherited from QwtSpline
int boundaryCondition (BoundaryPosition) const
 
BoundaryType boundaryType () const
 
double boundaryValue (BoundaryPosition) const
 
const QwtSplineParametrizationparametrization () const
 
 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

A spline with G1 continuity.

QwtSplinePleasing is some sort of cardinal spline, with non C1 continous extra rules for narrow angles. It has a locality of 2.

Note
The algorithm is the one offered by a popular office package.

Definition at line 23 of file qwt_spline_pleasing.h.

Constructor & Destructor Documentation

QwtSplinePleasing::QwtSplinePleasing ( )

Constructor.

The default setting is a non closing spline with uniform parametrization. ( QwtSplineParametrization::ParameterUniform ).

See also
QwtSpline::setParametrization(), QwtSpline::setBoundaryType()

Definition at line 263 of file qwt_spline_pleasing.cpp.

QwtSplinePleasing::~QwtSplinePleasing ( )
virtual

Destructor.

Definition at line 269 of file qwt_spline_pleasing.cpp.

Member Function Documentation

QVector< QLineF > QwtSplinePleasing::bezierControlLines ( const QPolygonF &  points) const
virtual

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.

Parameters
pointsControl points
Returns
Control points of the interpolating Bezier curves

Implements QwtSplineInterpolating.

Definition at line 325 of file qwt_spline_pleasing.cpp.

uint QwtSplinePleasing::locality ( ) const
virtual
Returns
2

Reimplemented from QwtSpline.

Definition at line 274 of file qwt_spline_pleasing.cpp.

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

Interpolate a curve with Bezier curves.

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

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

Reimplemented from QwtSplineInterpolating.

Definition at line 288 of file qwt_spline_pleasing.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