10#ifndef QWT_SPLINE_PARAMETRIZATION_H
11#define QWT_SPLINE_PARAMETRIZATION_H
13#include "qwt_global.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() );
Curve parametrization used for a spline interpolation.
static double valueIncrementChordal(const QPointF &, const QPointF &)
Calculate the ParameterChordal value increment for 2 points.
static double valueIncrementCentripetal(const QPointF &, const QPointF &)
Calculate the ParameterCentripetal value increment for 2 points.
static double valueIncrementX(const QPointF &, const QPointF &)
Calculate the ParameterX value increment for 2 points.
static double valueIncrementUniform(const QPointF &, const QPointF &)
Calculate the ParameterUniform value increment.
Type
Parametrization type.
static double valueIncrementManhattan(const QPointF &, const QPointF &)
Calculate the ParameterManhattan value increment for 2 points.
static double valueIncrementY(const QPointF &, const QPointF &)
Calculate the ParameterY value increment for 2 points.