DGtal  0.6.devel
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CDrawableWithDisplay3D.h
1 
17 #pragma once
18 
31 #if defined(CDrawableWithDisplay3D_RECURSES)
32 #error Recursive header files inclusion detected in CDrawableWithDisplay3D.h
33 #else // defined(CDrawableWithDisplay3D_RECURSES)
34 
35 #define CDrawableWithDisplay3D_RECURSES
36 
37 #if !defined CDrawableWithDisplay3D_h
38 
39 #define CDrawableWithDisplay3D_h
40 
42 // Inclusions
43 #include <iostream>
44 #include "boost/concept_check.hpp"
45 #include "DGtal/base/Common.h"
46 #include "DGtal/io/Display3D.h"
48 
49 namespace DGtal
50 {
51 
53  // class CDrawableWithDisplay3D
54 
56  // class CDrawableWithBoard3DTo2D template <typename T>
111  {
112 
114  {
115  //Drawable model should have a className() returning a string
116  ConceptUtils::sameType( myS, myT.className() );
117 
118  //Drawable model should be associated to global functions draw and defaultStyle.
119  //draw(myD3D, myT);
120  //ConceptUtils::sameType( myD, defaultStyle( myT) );
121  }
122 
123  // ------------------------- Private Datas --------------------------------
124  private:
125  T myT;
127 
129  std::string myS;
130 
131  // ------------------------- Internals ------------------------------------
132  private:
133 
134  }; // end of concept CDrawableWithDisplay3D
135 
136 } // namespace DGtal
137 
138 
139 
140 // //
142 
143 #endif // !defined CDrawableWithDisplay3D_h
144 
145 #undef CDrawableWithDisplay3D_RECURSES
146 #endif // else defined(CDrawableWithDisplay3D_RECURSES)