11 #define QWT_SPLINE_H 1 17 #include <qpainterpath.h> 155 void setParametrization(
int type );
168 void setBoundaryConditions(
int condition,
169 double valueBegin = 0.0,
double valueEnd = 0.0 );
171 virtual QPolygonF polygon(
const QPolygonF &,
double tolerance )
const;
172 virtual QPainterPath painterPath(
const QPolygonF & )
const = 0;
174 virtual uint locality()
const;
195 virtual QPolygonF equidistantPolygon(
const QPolygonF &,
196 double distance,
bool withNodes )
const;
198 virtual QPolygonF polygon(
const QPolygonF &,
double tolerance )
const;
200 virtual QPainterPath painterPath(
const QPolygonF & )
const;
201 virtual QVector<QLineF> bezierControlLines(
const QPolygonF &points )
const = 0;
236 virtual QPainterPath
painterPath(
const QPolygonF & )
const;
240 double distance,
bool withNodes )
const;
243 virtual QVector<QwtSplinePolynomial> polynomials(
const QPolygonF & )
const;
244 virtual QVector<double> slopes(
const QPolygonF & )
const = 0;
246 virtual double slopeAtBeginning(
const QPolygonF &,
double slopeNext )
const;
247 virtual double slopeAtEnd(
const QPolygonF &,
double slopeBefore )
const;
278 CubicRunout = LinearRunout + 1,
293 virtual QPainterPath
painterPath(
const QPolygonF & )
const;
297 double distance,
bool withNodes )
const;
300 virtual QVector<QwtSplinePolynomial>
polynomials(
const QPolygonF & )
const;
301 virtual QVector<double>
slopes(
const QPolygonF & )
const;
302 virtual QVector<double> curvatures(
const QPolygonF & )
const = 0;
Curve parametrization used for a spline interpolation.
virtual QPainterPath painterPath(const QPolygonF &) const
Interpolate a curve with Bezier curves.
virtual QPainterPath painterPath(const QPolygonF &) const
Calculate an interpolated painter path.
virtual QPolygonF equidistantPolygon(const QPolygonF &, double distance, bool withNodes) const
Find an interpolated polygon with "equidistant" points.
virtual QVector< double > slopes(const QPolygonF &) const =0
Find the first derivative at the control points.
Base class for all splines.
TFSIMD_FORCE_INLINE tfScalar distance(const Vector3 &v) const
BoundaryCondition
Boundary condition.
virtual QPolygonF equidistantPolygon(const QPolygonF &, double distance, bool withNodes) const
Find an interpolated polygon with "equidistant" points.
Base class for spline interpolations providing a first order parametric continuity ( C1 ) between adj...
the condiation is at the beginning of the polynomial
virtual QVector< QLineF > bezierControlLines(const QPolygonF &points) const =0
Interpolate a curve with Bezier curves.
Base class for spline interpolations providing a first order geometric continuity ( G1 ) between adjo...
Base class for spline interpolations providing a second order parametric continuity ( C2 ) between ad...
Base class for a spline interpolation.
virtual QVector< QwtSplinePolynomial > polynomials(const QPolygonF &) const
Calculate the interpolating polynomials for a non parametric spline.
virtual QVector< QLineF > bezierControlLines(const QPolygonF &) const
Interpolate a curve with Bezier curves.