Go to the documentation of this file.
10 #ifndef QWT_SPLINE_PARAMETRIZATION_H
11 #define QWT_SPLINE_PARAMETRIZATION_H
113 virtual double valueIncrement(
const QPointF&,
const QPointF& )
const;
115 static double valueIncrementX(
const QPointF&,
const QPointF& );
116 static double valueIncrementY(
const QPointF&,
const QPointF& );
117 static double valueIncrementUniform(
const QPointF&,
const QPointF& );
118 static double valueIncrementChordal(
const QPointF&,
const QPointF& );
119 static double valueIncrementCentripetal(
const QPointF&,
const QPointF& );
120 static double valueIncrementManhattan(
const QPointF&,
const QPointF& );
135 const QPointF& point1,
const QPointF& point2 )
137 return point2.x() - point1.x();
149 const QPointF& point1,
const QPointF& point2 )
151 return point2.y() - point1.y();
163 const QPointF& point1,
const QPointF& point2 )
180 const QPointF& point1,
const QPointF& point2 )
182 const double dx = point2.x() - point1.x();
183 const double dy = point2.y() - point1.y();
185 return std::sqrt( dx * dx + dy * dy );
197 const QPointF& point1,
const QPointF& point2 )
211 const QPointF& point1,
const QPointF& point2 )
213 return qAbs( point2.x() - point1.x() ) + qAbs( point2.y() - point1.y() );
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 valueIncrementManhattan(const QPointF &, const QPointF &)
Calculate the ParameterManhattan value increment for 2 points.
Curve parametrization used for a spline interpolation.
static double valueIncrementX(const QPointF &, const QPointF &)
Calculate the ParameterX value increment for 2 points.
static double valueIncrementCentripetal(const QPointF &, const QPointF &)
Calculate the ParameterCentripetal value increment for 2 points.
Type
Parametrization type.
static double valueIncrementChordal(const QPointF &, const QPointF &)
Calculate the ParameterChordal value increment for 2 points.
plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:46