Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
qwt
src
qwt_spline_approximation.cpp
Go to the documentation of this file.
1
/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
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
10
#include "
qwt_spline_approximation.h
"
11
#include "
qwt_spline_parametrization.h
"
12
13
class
QwtSplineApproximation::PrivateData
14
{
15
public
:
16
PrivateData
():
17
boundaryType
(
QwtSplineApproximation
::
ConditionalBoundaries
)
18
{
19
parametrization
=
new
QwtSplineParametrization
(
20
QwtSplineParametrization::ParameterChordal
);
21
}
22
23
~PrivateData
()
24
{
25
delete
parametrization
;
26
}
27
28
QwtSplineParametrization
*
parametrization
;
29
QwtSplineApproximation::BoundaryType
boundaryType
;
30
};
31
39
QwtSplineApproximation::QwtSplineApproximation
()
40
{
41
d_data
=
new
PrivateData
;
42
}
43
45
QwtSplineApproximation::~QwtSplineApproximation
()
46
{
47
delete
d_data
;
48
}
49
63
uint
QwtSplineApproximation::locality
()
const
64
{
65
return
0;
66
}
67
68
void
QwtSplineApproximation::setParametrization
(
int
type
)
69
{
70
if
(
d_data
->
parametrization
->
type
() !=
type
)
71
{
72
delete
d_data
->
parametrization
;
73
d_data
->
parametrization
=
new
QwtSplineParametrization
( type );
74
}
75
}
76
77
void
QwtSplineApproximation::setParametrization
(
QwtSplineParametrization
*
parametrization
)
78
{
79
if
( ( parametrization != NULL ) && (
d_data
->
parametrization
!= parametrization ) )
80
{
81
delete
d_data
->
parametrization
;
82
d_data
->
parametrization
=
parametrization
;
83
}
84
}
85
86
const
QwtSplineParametrization
*
QwtSplineApproximation::parametrization
()
const
87
{
88
return
d_data
->
parametrization
;
89
}
90
91
void
QwtSplineApproximation::setBoundaryType
(
BoundaryType
boundaryType
)
92
{
93
d_data
->
boundaryType
=
boundaryType
;;
94
}
95
96
QwtSplineApproximation::BoundaryType
QwtSplineApproximation::boundaryType
()
const
97
{
98
return
d_data
->
boundaryType
;
99
}
QwtSplineParametrization
Curve parametrization used for a spline interpolation.
Definition:
qwt_spline_parametrization.h:43
qwt_spline_parametrization.h
QwtSplineApproximation::setParametrization
void setParametrization(int type)
Definition:
qwt_spline_approximation.cpp:68
QwtSplineApproximation::parametrization
const QwtSplineParametrization * parametrization() const
Definition:
qwt_spline_approximation.cpp:86
QwtSplineApproximation::boundaryType
BoundaryType boundaryType() const
Definition:
qwt_spline_approximation.cpp:96
QwtSplineApproximation::setBoundaryType
void setBoundaryType(BoundaryType)
Definition:
qwt_spline_approximation.cpp:91
QwtSplineApproximation
Definition:
qwt_spline_approximation.h:18
QwtSplineParametrization::type
int type() const
Definition:
qwt_spline_parametrization.cpp:72
QwtSplineApproximation::BoundaryType
BoundaryType
Definition:
qwt_spline_approximation.h:21
qwt_spline_approximation.h
QwtSplineApproximation::PrivateData::PrivateData
PrivateData()
Definition:
qwt_spline_approximation.cpp:16
backward::Color::type
type
Definition:
backward.hpp:1710
QwtSplineApproximation::d_data
PrivateData * d_data
Definition:
qwt_spline_approximation.h:56
QwtSplineApproximation::ConditionalBoundaries
Definition:
qwt_spline_approximation.h:23
QwtSplineApproximation::PrivateData
Definition:
qwt_spline_approximation.cpp:13
QwtSplineApproximation::QwtSplineApproximation
QwtSplineApproximation()
Constructor.
Definition:
qwt_spline_approximation.cpp:39
QwtSplineApproximation::PrivateData::~PrivateData
~PrivateData()
Definition:
qwt_spline_approximation.cpp:23
QwtSplineParametrization::ParameterChordal
Definition:
qwt_spline_parametrization.h:81
QwtSplineApproximation::PrivateData::parametrization
QwtSplineParametrization * parametrization
Definition:
qwt_spline_approximation.cpp:28
QwtSplineApproximation::~QwtSplineApproximation
virtual ~QwtSplineApproximation()
Destructor.
Definition:
qwt_spline_approximation.cpp:45
QwtSplineApproximation::PrivateData::boundaryType
QwtSplineApproximation::BoundaryType boundaryType
Definition:
qwt_spline_approximation.cpp:29
QwtSplineApproximation::locality
virtual uint locality() const
Definition:
qwt_spline_approximation.cpp:63
plotjuggler
Author(s): Davide Faconti
autogenerated on Sat Jul 6 2019 03:44:18