/Users/enrico/Ricerca/develop/PINS/pins-mechatronix/LibSources/submodules/Splines/src/Splines/SplineQuintic.hxx Source FileΒΆ

Splines: /Users/enrico/Ricerca/develop/PINS/pins-mechatronix/LibSources/submodules/Splines/src/Splines/SplineQuintic.hxx Source File
Splines
SplineQuintic.hxx
1/*--------------------------------------------------------------------------*\
2 | |
3 | Copyright (C) 2016 |
4 | |
5 | , __ , __ |
6 | /|/ \ /|/ \ |
7 | | __/ _ ,_ | __/ _ ,_ |
8 | | \|/ / | | | | \|/ / | | | |
9 | |(__/|__/ |_/ \_/|/|(__/|__/ |_/ \_/|/ |
10 | /| /| |
11 | \| \| |
12 | |
13 | Enrico Bertolazzi |
14 | Dipartimento di Ingegneria Industriale |
15 | Universita` degli Studi di Trento |
16 | email: enrico.bertolazzi@unitn.it |
17 | |
18\*--------------------------------------------------------------------------*/
19
20/*\
21 | ___ _ _ _ ____ _ _
22 | / _ \ _ _(_)_ __ | |_(_) ___/ ___| _ __ | (_)_ __ ___
23 | | | | | | | | | '_ \| __| |/ __\___ \| '_ \| | | '_ \ / _ \
24 | | |_| | |_| | | | | | |_| | (__ ___) | |_) | | | | | | __/
25 | \__\_\\__,_|_|_| |_|\__|_|\___|____/| .__/|_|_|_| |_|\___|
26 | |_|
27 |
28\*/
29
30namespace Splines {
31
32 #ifndef DOXYGEN_SHOULD_SKIP_THIS
33
34 using QuinticSpline_sub_type = enum class QuinticSpline_sub_type : integer {
35 CUBIC = 0,
36 PCHIP = 1,
37 AKIMA = 2,
38 BESSEL = 3
39 };
40
41 #endif
42
45 QuinticSpline_sub_type m_q_sub_type{QuinticSpline_sub_type::CUBIC};
46 public:
47
52
53 #ifndef DOXYGEN_SHOULD_SKIP_THIS
56 #endif
57
63 QuinticSpline( string const & name = "Spline" )
65 {}
66
70 ~QuinticSpline() override {}
71
73
82 void
83 setQuinticType( QuinticSpline_sub_type qt )
84 { m_q_sub_type = qt; }
85
86 // --------------------------- VIRTUALS -----------------------------------
88 void build() override;
90 void setup( GenericContainer const & gc ) override;
91 };
92
93}
94
95// EOF: SplineQuintic.hxx
Definition SplineQuinticBase.hxx:34
void reserve(integer npts) override
Definition SplineQuinticBase.cc:64
Quintic spline class.
Definition SplineQuintic.hxx:44
~QuinticSpline() override
Definition SplineQuintic.hxx:70
void setQuinticType(QuinticSpline_sub_type qt)
Definition SplineQuintic.hxx:83
QuinticSpline(string const &name="Spline")
Definition SplineQuintic.hxx:63
void setup(GenericContainer const &gc) override
Build a Monotone quintic spline from data from gc
Definition SplineQuintic.cc:295
void build() override
Build a Monotone quintic spline from previously inserted points.
Definition SplineQuintic.cc:262
virtual void build()=0
string const & name() const
Definition Splines.hh:438
Definition SplineAkima.cc:50
int integer
Signed integer type for splines.
Definition Splines.hh:58