DGtal
0.6.devel
Main Page
Related Pages
Modules
Namespaces
Data Structures
Examples
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
src
DGtal
geometry
curves
estimation
TrueGlobalEstimatorOnPoints.h
1
17
#pragma once
18
34
#if defined(TrueGlobalEstimatorOnPoints_RECURSES)
35
#error Recursive header files inclusion detected in TrueGlobalEstimatorOnPoints
36
#else // defined(TrueGlobalEstimatorOnPoints_RECURSES)
37
38
#define TrueGlobalEstimatorOnPoints_RECURSES
39
40
#if !defined TrueGlobalEstimatorOnPoints_h
41
42
#define TrueGlobalEstimatorOnPoints_h
43
45
// Inclusions
46
#include <iostream>
47
#include <list>
48
49
#include "DGtal/base/Exceptions.h"
50
#include "DGtal/base/Common.h"
52
53
namespace
DGtal
54
{
56
// template class TrueGlobalEstimatorOnPoints
68
template
<
typename
TConstIteratorOnPo
int
s,
typename
TParametricShape,
typename
TParametricShapeFunctor>
69
class
TrueGlobalEstimatorOnPoints
70
{
71
72
// ----------------------- Types ------------------------------
73
public
:
74
75
typedef
TConstIteratorOnPoints
ConstIteratorOnPoints
;
76
77
typedef
TParametricShape
ParametricShape
;
78
typedef
typename
ParametricShape::RealPoint
RealPoint
;
79
80
typedef
TParametricShapeFunctor
ParametricShapeFunctor
;
81
typedef
typename
ParametricShapeFunctor::Quantity
Quantity
;
82
83
84
// ----------------------- Standard services ------------------------------
85
public
:
86
90
TrueGlobalEstimatorOnPoints
()
91
{
92
myFlagIsInit
=
false
;
93
}
94
103
TrueGlobalEstimatorOnPoints
(
const
double
h,
104
const
ConstIteratorOnPoints
& itb,
105
const
ConstIteratorOnPoints
& ite,
106
ParametricShape
* aShape,
107
const
bool
& isClosed);
108
112
~TrueGlobalEstimatorOnPoints
() {};
113
114
// ----------------------- Interface --------------------------------------
115
public
:
116
125
void
init
(
const
double
h,
126
const
ConstIteratorOnPoints
& itb,
127
const
ConstIteratorOnPoints
& ite,
128
ParametricShape
* aShape,
129
const
bool
& isClosed);
130
134
Quantity
eval
() ;
135
140
Quantity
eval
(
const
ConstIteratorOnPoints
& itb,
141
const
ConstIteratorOnPoints
& ite);
142
143
148
bool
isValid
()
const
;
149
150
// ------------------------- Protected Datas ------------------------------
151
protected
:
152
153
// ------------------------- Private Datas --------------------------------
154
private
:
155
157
double
myH
;
158
160
bool
myFlagIsClosed
;
161
163
bool
myFlagIsInit
;
164
166
ParametricShapeFunctor
myFunctor
;
167
169
ConstIteratorOnPoints
myBegin
;
170
172
ConstIteratorOnPoints
myEnd
;
173
174
// ------------------------- Hidden services ------------------------------
175
private
:
176
182
TrueGlobalEstimatorOnPoints
(
const
TrueGlobalEstimatorOnPoints
& other );
183
190
TrueGlobalEstimatorOnPoints
&
operator=
(
const
TrueGlobalEstimatorOnPoints
& other );
191
192
193
};
// end of class TrueGlobalEstimatorOnPoints
194
195
}
// namespace DGtal
196
197
199
// Includes inline functions.
200
#include "DGtal/geometry/curves/estimation/TrueGlobalEstimatorOnPoints.ih"
201
202
// //
204
205
#endif // !defined TrueGlobalEstimatorOnPoints_h
206
207
#undef TrueGlobalEstimatorOnPoints_RECURSES
208
#endif // else defined(TrueGlobalEstimatorOnPoints_RECURSES)
Generated on Wed Dec 19 2012 19:10:42 for DGtal by
1.8.1.1