QwtSplinePleasing(3)

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

QwtSplinePleasing(3) πŸ¦‹βœ¨

okay bestie, welcome to the Library Functions Manual page for QwtSplinePleasing β€” it's giving fancy curve energy and I'm obsessed. πŸ’…

🌸 NAME 🌸

QwtSplinePleasing β€” a spline with G1 continuity.

✨ SYNOPSIS ✨

#include <qwt_spline_pleasing.h>

Inherits QwtSplineG1.

πŸ’– Public Member Functions πŸ’–

  • QwtSplinePleasing () β€” Constructor.
  • virtual ~QwtSplinePleasing () β€” Destructor.
  • virtual uint locality () const override β€” listed as-is in the original, bestie.
  • virtual QPainterPath painterPath (const QPolygonF &) const override β€” Interpolate a curve with Bezier curves.
  • virtual QVector< QLineF > bezierControlLines (const QPolygonF &) const override β€” Interpolate a curve with Bezier curves.

🫢 Public Member Functions inherited from QwtSplineG1 🫢

  • QwtSplineG1 () β€” Constructor.
  • virtual ~QwtSplineG1 () β€” Destructor.

🧚 Public Member Functions inherited from QwtSplineInterpolating 🧚

  • QwtSplineInterpolating () β€” Constructor.
  • virtual ~QwtSplineInterpolating () β€” Destructor.
  • virtual QPolygonF equidistantPolygon (const QPolygonF &, double distance, bool withNodes) const β€” Find an interpolated polygon with equidistant"points.
  • virtual QPolygonF polygon (const QPolygonF &, double tolerance) const override β€” Interpolate a curve by a polygon.

πŸ’œ Public Member Functions inherited from QwtSpline πŸ’œ

some of these are just signatures in the original, so I'm leaving them exactly as-is, no invented extras:

  • 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.

πŸŽ€ 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 🌈

A spline with G1 continuity.

okay so QwtSplinePleasing is some sort of cardinal spline, with non C1 continuous 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 265 of file qwt_spline_pleasing.cpp.

πŸ’€ QwtSplinePleasing::~QwtSplinePleasing () [virtual] πŸ’€

Destructor.

Definition at line 271 of file qwt_spline_pleasing.cpp.

πŸ”₯ Member Function Documentation πŸ”₯

🌸 QVector< QLineF > QwtSplinePleasing::bezierControlLines (const QPolygonF & points) const [override], [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: points β€” Control points
  • Returns: Control points of the interpolating Bezier curves

Implements QwtSplineInterpolating.

Definition at line 327 of file qwt_spline_pleasing.cpp.

⭐ uint QwtSplinePleasing::locality () const [override], [virtual] ⭐

  • Returns: 2

Reimplemented from QwtSpline.

Definition at line 276 of file qwt_spline_pleasing.cpp.

πŸ¦‹ QPainterPath QwtSplinePleasing::painterPath (const QPolygonF & points) const [override], [virtual] πŸ¦‹

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

  • Parameters: points β€” Control points
  • Returns: QPainterPath Painter path, that can be rendered by QPainter

Reimplemented from QwtSplineInterpolating.

Definition at line 290 of file qwt_spline_pleasing.cpp.

✨ Author ✨

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


okay bye bestie! this page lives in the Qwt User's Guide, and the footer points back to QwtSplinePleasing(3) β€” the original didn't print a date, so I'm not inventing one. πŸ’–βœ¨

πŸ“¦ where this page comes from