QwtSplineBasis(3)

πŸ“¦
version 6.3.0 Β· 2 versions
, in alpine 3.24

πŸ’– NAME πŸ’–

okay so welcome to QwtSplineBasis(3) from the Library Functions Manual, bestie πŸ’– β€” this page is all about QwtSplineBasis, aka an approximation using a basis spline. it’s giving β€œcute little spline class with main character energy,” and we’re gonna go through every single detail together, no cap.


✨ SYNOPSIS ✨

#include <qwt_spline_basis.h>

Inherits QwtSpline.

🫢 Public Member Functions

  • QwtSplineBasis () β€” Constructor. iconic beginning behavior.
  • virtual ~QwtSplineBasis () β€” Destructor. goodbye bestie.
  • virtual QPainterPath painterPath (const QPolygonF &) const override β€” the painter-path-making member, living its override life.
  • virtual uint locality () const override β€” The locality is always 2.

πŸ’… Public Member Functions inherited from QwtSpline

  • QwtSpline () β€” Constructor.
  • virtual ~QwtSpline () β€” Destructor.
  • void setParametrization (int type)
  • void setParametrization (QwtSplineParametrization *)
  • const QwtSplineParametrization * parametrization () const
  • void setBoundaryType (BoundaryType)
  • 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 }
  • enum BoundaryPosition { AtBeginning, AtEnd }
  • enum BoundaryCondition { Clamped1, Clamped2, Clamped3, LinearRunout } β€” Boundary condition.

πŸ¦‹ Detailed Description πŸ¦‹

QwtSplineBasis approximates a set of points by polynomials with C2 continuity ( = first and second derivatives are equal ) at the end points.

⚠️ bestie, important: 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 227 of file qwt_spline_basis.cpp.

QwtSplineBasis::~QwtSplineBasis () [virtual]

Destructor.

Definition at line 232 of file qwt_spline_basis.cpp.


πŸ”₯ Member Function Documentation πŸ”₯

uint QwtSplineBasis::locality () const [override], [virtual]

The locality is always 2.

Reimplemented from QwtSpline.

Definition at line 237 of file qwt_spline_basis.cpp.

QPainterPath QwtSplineBasis::painterPath (const QPolygonF & points) const [override], [virtual]

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

Parameters

  • points β€” Control points

Returns

  • Painter path, that can be rendered by QPainter

Implements QwtSpline.

Definition at line 249 of file qwt_spline_basis.cpp.


πŸ’œ Author πŸ’œ

Generated automatically by Doxygen for Qwt User's Guide from the source code.


πŸ’– that’s the whole page, bestie! source/version vibes: Qwt User's Guide Β· page: QwtSplineBasis(3) Β· date: the footer didn’t hand us one, so we’re not inventing it β€” mwah πŸ’…βœ¨

πŸ“¦ where this page comes from