10 #ifndef QWT_SPLINE_PARAMETRIZATION_H 11 #define QWT_SPLINE_PARAMETRIZATION_H 1 112 virtual double valueIncrement(
const QPointF &,
const QPointF & )
const;
114 static double valueIncrementX(
const QPointF &,
const QPointF & );
115 static double valueIncrementY(
const QPointF &,
const QPointF & );
116 static double valueIncrementUniform(
const QPointF &,
const QPointF & );
117 static double valueIncrementChordal(
const QPointF &,
const QPointF & );
118 static double valueIncrementCentripetal(
const QPointF &,
const QPointF & );
119 static double valueIncrementManhattan(
const QPointF &,
const QPointF & );
134 const QPointF &point1,
const QPointF &point2 )
136 return point2.x() - point1.x();
148 const QPointF &point1,
const QPointF &point2 )
150 return point2.y() - point1.y();
162 const QPointF &point1,
const QPointF &point2 )
179 const QPointF &point1,
const QPointF &point2 )
181 const double dx = point2.x() - point1.x();
182 const double dy = point2.y() - point1.y();
184 return qSqrt( dx * dx + dy * dy );
196 const QPointF &point1,
const QPointF &point2 )
198 return qSqrt( valueIncrementChordal( point1, point2 ) );
210 const QPointF &point1,
const QPointF &point2 )
212 return qAbs( point2.x() - point1.x() ) + qAbs( point2.y() - point1.y() );
Curve parametrization used for a spline interpolation.
static double valueIncrementCentripetal(const QPointF &, const QPointF &)
Calculate the ParameterCentripetal value increment for 2 points.
static double valueIncrementChordal(const QPointF &, const QPointF &)
Calculate the ParameterChordal value increment for 2 points.
Type
Parametrization type.
static double valueIncrementY(const QPointF &, const QPointF &)
Calculate the ParameterY value increment for 2 points.
static double valueIncrementUniform(const QPointF &, const QPointF &)
Calculate the ParameterUniform value increment.
static double valueIncrementX(const QPointF &, const QPointF &)
Calculate the ParameterX value increment for 2 points.
static double valueIncrementManhattan(const QPointF &, const QPointF &)
Calculate the ParameterManhattan value increment for 2 points.