DGtal  0.9.2
CDigitalSurfaceLocalEstimator.h
1 
17 #pragma once
18 
31 #if defined(CDigitalSurfaceLocalEstimator_RECURSES)
32 #error Recursive header files inclusion detected in CDigitalSurfaceLocalEstimator.h
33 #else // defined(CDigitalSurfaceLocalEstimator_RECURSES)
34 
35 #define CDigitalSurfaceLocalEstimator_RECURSES
36 
37 #if !defined CDigitalSurfaceLocalEstimator_h
38 
39 #define CDigitalSurfaceLocalEstimator_h
40 
42 // Inclusions
43 #include <iostream>
44 #include "DGtal/base/Common.h"
45 #include "DGtal/topology/CDigitalSurfaceContainer.h"
46 #include "DGtal/geometry/surfaces/estimation/CSurfelLocalEstimator.h"
48 
49 // @since 0.8 In DGtal::concepts
50 namespace DGtal {
51  namespace concepts {
52 
54  // class CDigitalSurfaceLocalEstimator
101  template <typename T>
104  {
105 
106  // ----------------------- Concept checks ------------------------------
107  public:
108 
109  typedef typename T::Surface Surface;
110  typedef typename Surface::DigitalSurfaceContainer DigitalSurfaceContainer;
112  typedef typename T::Surfel Surfel;
115  {
116  myX.attach( myS );
117  }
118 
119  // ------------------------- Private Datas --------------------------------
120  private:
121  T myX;
122  Surface myS;
123 
124  // ------------------------- Internals ------------------------------------
125  private:
126 
127  }; // end of concept CDigitalSurfaceLocalEstimator
128 
129 } // namespace concepts
130 } // namespace DGtal
131 
132 // //
134 
135 #endif // !defined CDigitalSurfaceLocalEstimator_h
136 
137 #undef CDigitalSurfaceLocalEstimator_RECURSES
138 #endif // else defined(CDigitalSurfaceLocalEstimator_RECURSES)
DGtal is the top-level namespace which contains all DGtal functions and types.
Aim: This concept describes an object that can process a range of surfels (that are supposed to belon...
BOOST_CONCEPT_ASSERT((concepts::CDigitalSurfaceContainer< DigitalSurfaceContainer >))
BOOST_STATIC_ASSERT((ConceptUtils::SameType< Surfel, typename Surface::Surfel >::value))
Aim: This concept describes an object that can process a range over some generic digital surface so a...
Aim: The digital surface container concept describes a minimal set of inner types and methods so as t...