DGtal  0.6.devel
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ContourHelper.h
1 
17 #pragma once
18 
31 #if defined(ContourHelper_RECURSES)
32 #error Recursive header files inclusion detected in ContourHelper.h
33 #else // defined(ContourHelper_RECURSES)
34 
35 #define ContourHelper_RECURSES
36 
37 #if !defined ContourHelper_h
38 
39 #define ContourHelper_h
40 
42 // Inclusions
43 #include <iostream>
44 #include "DGtal/base/Common.h"
45 #include "DGtal/helpers/StdDefs.h"
46 
48 
49 namespace DGtal
50 {
51 
53 // class ContourHelper
60 {
61  // ----------------------- Static services ------------------------------
62 public:
63 
71  static Z2i::Point getMeanPoint(vector<Z2i::Point> contour);
72 
73 
74 
75  // ----------------------- Standard services ------------------------------
76 public:
77 
82 
83  // ----------------------- Interface --------------------------------------
84 public:
85 
90  void selfDisplay ( std::ostream & out ) const;
91 
96  bool isValid() const;
97 
98  // ------------------------- Protected Datas ------------------------------
99 private:
100  // ------------------------- Private Datas --------------------------------
101 private:
102 
103  // ------------------------- Hidden services ------------------------------
104 protected:
105 
110  ContourHelper();
111 
112 private:
113 
119  ContourHelper ( const ContourHelper & other );
120 
127  ContourHelper & operator= ( const ContourHelper & other );
128 
129  // ------------------------- Internals ------------------------------------
130 private:
131 
132 }; // end of class ContourHelper
133 
134 
141 std::ostream&
142 operator<< ( std::ostream & out, const ContourHelper & object );
143 
144 
145 } // namespace DGtal
146 
147 
149 // Includes inline functions/methods.
150 #include "DGtal/geometry/helpers/ContourHelper.ih"
151 
152 // //
154 
155 #endif // !defined ContourHelper_h
156 
157 #undef ContourHelper_RECURSES
158 #endif // else defined(ContourHelper_RECURSES)