DGtal  0.6.devel
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CSegmentComputerEstimator.h
1 
17 #pragma once
18 
31 #if defined(CSegmentComputerEstimator_RECURSES)
32 #error Recursive header files inclusion detected in CSegmentComputerEstimator.h
33 #else // defined(CSegmentComputerEstimator_RECURSES)
34 
35 #define CSegmentComputerEstimator_RECURSES
36 
37 #if !defined CSegmentComputerEstimator_h
38 
39 #define CSegmentComputerEstimator_h
40 
42 // Inclusions
43 #include <iostream>
44 #include "DGtal/base/Common.h"
45 #include "DGtal/geometry/curves/estimation/CLocalCurveGeometricEstimator.h"
46 #include "DGtal/geometry/curves/CSegment.h"
48 
49 namespace DGtal
50 {
51 
53  // class CSegmentComputerEstimator
94  template <typename T>
96  CLocalGeometricEstimator<T>, boost::CopyConstructible<T>, boost::Assignable<T>
97  {
98  // ----------------------- Concept checks ------------------------------
99  public:
100 
101  typedef typename T::SegmentComputer SegmentComputer;
103 
105  {
106 
107  myX.attach(mySC);
108 
109  }
110 
111  // ------------------------- Private Datas --------------------------------
112  private:
113  T myX;
115 
116  // ------------------------- Internals ------------------------------------
117  private:
118 
119  }; // end of concept CSegmentComputerEstimator
120 
121 } // namespace DGtal
122 
123 // //
125 
126 #endif // !defined CSegmentComputerEstimator_h
127 
128 #undef CSegmentComputerEstimator_RECURSES
129 #endif // else defined(CSegmentComputerEstimator_RECURSES)