DGtal  1.4.beta
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)
38 #define TrueGlobalEstimatorOnPoints_RECURSES
39 
40 #if !defined TrueGlobalEstimatorOnPoints_h
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 TConstIteratorOnPoints,
69  typename TParametricShape,
70  typename TParametricShapeFunctor>
72  {
73 
74  // ----------------------- Types ------------------------------
75  public:
76 
77  typedef TConstIteratorOnPoints ConstIterator;
78 
79  typedef TParametricShape ParametricShape;
81 
82  typedef TParametricShapeFunctor ParametricShapeFunctor;
83  typedef typename ParametricShapeFunctor::Quantity Quantity;
84 
85 
86  // ----------------------- Standard services ------------------------------
87  public:
88 
93 
98 
103 
108 
109  // ----------------------- Interface --------------------------------------
110  public:
111 
116  void attach(const ParametricShape& aShape);
117 
122  Quantity eval() const;
123 
132  const ConstIterator& ite,
133  const double h = 1.) const;
134 
139  bool isValid() const;
140 
141  // ------------------------- Private Datas --------------------------------
142  private:
143 
146 
147  }; // end of class TrueGlobalEstimatorOnPoints
148 
149 } // namespace DGtal
150 
151 
153 // Includes inline functions.
154 #include "DGtal/geometry/curves/estimation/TrueGlobalEstimatorOnPoints.ih"
155 
156 // //
158 
159 #endif // !defined TrueGlobalEstimatorOnPoints_h
160 
161 #undef TrueGlobalEstimatorOnPoints_RECURSES
162 #endif // else defined(TrueGlobalEstimatorOnPoints_RECURSES)
Aim: Computes the true quantity associated to a parametric shape or to a subrange associated to a par...
TrueGlobalEstimatorOnPoints(const TrueGlobalEstimatorOnPoints &)=delete
ParametricShapeFunctor::Quantity Quantity
const ParametricShapeFunctor * myFunctorPtr
Parametric quantity functor.
void attach(const ParametricShape &aShape)
Quantity eval(const ConstIterator &itb, const ConstIterator &ite, const double h=1.) const
TrueGlobalEstimatorOnPoints & operator=(const TrueGlobalEstimatorOnPoints &)=delete
DGtal is the top-level namespace which contains all DGtal functions and types.
PointVector< 3, double > RealPoint