QwtSplinePleasing(3)
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 withequidistant"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 () 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.
π 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:
QPainterPathPainter path, that can be rendered byQPainter
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
- 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