DGtal  1.1.0
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 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)
DGtal::TrueGlobalEstimatorOnPoints::operator=
TrueGlobalEstimatorOnPoints & operator=(const TrueGlobalEstimatorOnPoints &)=delete
DGtal::TrueGlobalEstimatorOnPoints::myFunctorPtr
const ParametricShapeFunctor * myFunctorPtr
Parametric quantity functor.
Definition: TrueGlobalEstimatorOnPoints.h:145
DGtal::TrueGlobalEstimatorOnPoints::eval
Quantity eval() const
DGtal::TrueGlobalEstimatorOnPoints::ParametricShape
TParametricShape ParametricShape
Definition: TrueGlobalEstimatorOnPoints.h:79
DGtal::TrueGlobalEstimatorOnPoints
Aim: Computes the true quantity associated to a parametric shape or to a subrange associated to a par...
Definition: TrueGlobalEstimatorOnPoints.h:72
DGtal::TrueGlobalEstimatorOnPoints::ParametricShapeFunctor
TParametricShapeFunctor ParametricShapeFunctor
Definition: TrueGlobalEstimatorOnPoints.h:82
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
Definition: ClosedIntegerHalfPlane.h:49
DGtal::TrueGlobalEstimatorOnPoints::Quantity
ParametricShapeFunctor::Quantity Quantity
Definition: TrueGlobalEstimatorOnPoints.h:83
DGtal::TrueGlobalEstimatorOnPoints::ConstIterator
TConstIteratorOnPoints ConstIterator
Definition: TrueGlobalEstimatorOnPoints.h:77
DGtal::TrueGlobalEstimatorOnPoints::eval
Quantity eval(const ConstIterator &itb, const ConstIterator &ite, const double h=1.) const
DGtal::TrueGlobalEstimatorOnPoints::~TrueGlobalEstimatorOnPoints
~TrueGlobalEstimatorOnPoints()
DGtal::TrueGlobalEstimatorOnPoints::TrueGlobalEstimatorOnPoints
TrueGlobalEstimatorOnPoints()
DGtal::TrueGlobalEstimatorOnPoints::isValid
bool isValid() const
DGtal::TrueGlobalEstimatorOnPoints::TrueGlobalEstimatorOnPoints
TrueGlobalEstimatorOnPoints(const TrueGlobalEstimatorOnPoints &)=delete
DGtal::TrueGlobalEstimatorOnPoints::attach
void attach(const ParametricShape &aShape)
DGtal::TrueGlobalEstimatorOnPoints::RealPoint
ParametricShape::RealPoint RealPoint
Definition: TrueGlobalEstimatorOnPoints.h:80
RealPoint
Z2i::RealPoint RealPoint
Definition: testAstroid2D.cpp:46