QwtSplineBasis(3)
π 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 always2.
π
Public Member Functions inherited from QwtSpline
QwtSpline ()β Constructor.virtual ~QwtSpline ()β Destructor.void setParametrization (int type)void setParametrization (QwtSplineParametrization *)const QwtSplineParametrization * parametrization () constvoid setBoundaryType (BoundaryType)BoundaryType boundaryType () constvoid setBoundaryValue (BoundaryPosition, double value)β Define the boundary value.double boundaryValue (BoundaryPosition) constvoid setBoundaryCondition (BoundaryPosition, int condition)β Define the condition for an endpoint of the spline.int boundaryCondition (BoundaryPosition) constvoid 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
- alpine 3.24: qwt-doc 6.3.0-r0 Β· custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms