DGtal  1.5.beta
CDrawableWithBoard3DTo2D.h
1 
17 #pragma once
18 
30 #if defined(CDrawableWithBoard3DTo2D_RECURSES)
31 #error Recursive header files inclusion detected in CDrawableWithBoard3DTo2D.h
32 #else // defined(CDrawableWithBoard3DTo2D_RECURSES)
34 #define CDrawableWithBoard3DTo2D_RECURSES
35 
36 #if !defined CDrawableWithBoard3DTo2D_h
38 #define CDrawableWithBoard3DTo2D_h
39 
41 // Inclusions
42 #include <iostream>
43 #include "boost/concept_check.hpp"
44 #include "DGtal/base/Common.h"
45 #include "DGtal/io/CDrawableWithDisplay3D.h"
47 
48 namespace DGtal
49 {
50  namespace concepts
51  {
53  // class CDrawableWithBoard3DTo2D
98  template < class S, class KS> class Board3DTo2D;
99 
100  template <typename T, typename S, typename KS >
102  {
103 
105  {
106  //Drawable model should have a className() returning a string
107  concepts::ConceptUtils::sameType( myS, myT.className() );
108 
109  //Drawable model should be associated to global functions draw and defaultStyle.
110  //draw(myD3D, myT);
111  //concepts::ConceptUtils::sameType( myD, defaultStyle( myT) );
112  }
113 
114  // ------------------------- Private Datas --------------------------------
115  private:
116 
117  T myT;
119 
121  std::string myS;
122 
123  // ------------------------- Internals ------------------------------------
124  private:
125 
126  }; // end of concept CDrawableWithBoard3DTo2D
127  } // namespace concepts
128 } // namespace DGtal
129 
130 
131 
132 // //
134 
135 #endif // !defined CDrawableWithBoard3DTo2D_h
136 
137 #undef CDrawableWithBoard3DTo2D_RECURSES
138 #endif // else defined(CDrawableWithBoard3DTo2D_RECURSES)
Aim: The concept CDrawableWithBoard3DTo2D specifies what are the classes that admit an export with Bo...
void sameType(const T &, const T &)
Definition: ConceptUtils.h:117
DGtal is the top-level namespace which contains all DGtal functions and types.
DrawableWithBoard3DTo2D * myD
the drawable object