qwt_spline_parametrization.cpp
Go to the documentation of this file.
1 /******************************************************************************
2  * Qwt Widget Library
3  * Copyright (C) 1997 Josef Wilgen
4  * Copyright (C) 2002 Uwe Rathmann
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the Qwt License, Version 1.0
8  *****************************************************************************/
9 
11 
18  : m_type( type )
19 {
20 }
21 
24 {
25 }
26 
36  const QPointF& point1, const QPointF& point2 ) const
37 {
38  switch( m_type )
39  {
41  {
42  return valueIncrementX( point1, point2 );
43  }
45  {
46  return valueIncrementY( point1, point2 );
47  }
49  {
50  return valueIncrementCentripetal( point1, point2 );
51  }
53  {
54  return valueIncrementChordal( point1, point2 );
55  }
57  {
58  return valueIncrementManhattan( point1, point2 );
59  }
61  {
62  return valueIncrementUniform( point1, point2 );
63  }
64  default:
65  {
66  return 1;
67  }
68  }
69 }
70 
73 {
74  return m_type;
75 }
QwtSplineParametrization::valueIncrementY
static double valueIncrementY(const QPointF &, const QPointF &)
Calculate the ParameterY value increment for 2 points.
Definition: qwt_spline_parametrization.h:148
QwtSplineParametrization::valueIncrementUniform
static double valueIncrementUniform(const QPointF &, const QPointF &)
Calculate the ParameterUniform value increment.
Definition: qwt_spline_parametrization.h:162
backward::ColorMode::type
type
Definition: backward.hpp:3600
QwtSplineParametrization::ParameterCentripetal
@ ParameterCentripetal
Definition: qwt_spline_parametrization.h:108
QwtSplineParametrization::valueIncrementManhattan
static double valueIncrementManhattan(const QPointF &, const QPointF &)
Calculate the ParameterManhattan value increment for 2 points.
Definition: qwt_spline_parametrization.h:210
QwtSplineParametrization::type
int type() const
Definition: qwt_spline_parametrization.cpp:72
QwtSplineParametrization::QwtSplineParametrization
QwtSplineParametrization(int type)
Definition: qwt_spline_parametrization.cpp:17
QwtSplineParametrization::valueIncrementX
static double valueIncrementX(const QPointF &, const QPointF &)
Calculate the ParameterX value increment for 2 points.
Definition: qwt_spline_parametrization.h:134
QwtSplineParametrization::ParameterY
@ ParameterY
Definition: qwt_spline_parametrization.h:74
QwtSplineParametrization::valueIncrementCentripetal
static double valueIncrementCentripetal(const QPointF &, const QPointF &)
Calculate the ParameterCentripetal value increment for 2 points.
Definition: qwt_spline_parametrization.h:196
QwtSplineParametrization::ParameterManhattan
@ ParameterManhattan
Definition: qwt_spline_parametrization.h:119
QwtSplineParametrization::ParameterX
@ ParameterX
Definition: qwt_spline_parametrization.h:68
QwtSplineParametrization::~QwtSplineParametrization
virtual ~QwtSplineParametrization()
Destructor.
Definition: qwt_spline_parametrization.cpp:23
QwtSplineParametrization::m_type
const int m_type
Definition: qwt_spline_parametrization.h:130
QwtSplineParametrization::valueIncrementChordal
static double valueIncrementChordal(const QPointF &, const QPointF &)
Calculate the ParameterChordal value increment for 2 points.
Definition: qwt_spline_parametrization.h:179
QwtSplineParametrization::valueIncrement
virtual double valueIncrement(const QPointF &, const QPointF &) const
Calculate the parameter value increment for 2 points.
Definition: qwt_spline_parametrization.cpp:35
QwtSplineParametrization::ParameterChordal
@ ParameterChordal
Definition: qwt_spline_parametrization.h:96
qwt_spline_parametrization.h
QwtSplineParametrization::ParameterUniform
@ ParameterUniform
Definition: qwt_spline_parametrization.h:86


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:46