DGtal  1.4.beta
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)
35 #define CDrawableWithDisplay3D_RECURSES
36 
37 #if !defined CDrawableWithDisplay3D_h
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  namespace concepts
52  {
54  // class CDrawableWithDisplay3D
99  template < class S, class KS> class Display3D;
100 
101  template <typename T, typename Sp, typename KSp>
103  {
104 
106  {
107  //Drawable model should have a className() returning a string
108  concepts::ConceptUtils::sameType( myS, myT.className() );
109 
110  //Drawable model should be associated to global functions draw and defaultStyle.
111  //draw(myD3D, myT);
112  //concepts::ConceptUtils::sameType( myD, defaultStyle( myT) );
113  }
114 
115  // ------------------------- Private Datas --------------------------------
116  private:
117 
118  T myT;
120 
122  std::string myS;
123 
124  // ------------------------- Internals ------------------------------------
125  private:
126 
127  }; // end of concept CDrawableWithDisplay3D
128  }//namespace concepts
129 } // namespace DGtal
130 
131 
132 
133 // //
135 
136 #endif // !defined CDrawableWithDisplay3D_h
137 
138 #undef CDrawableWithDisplay3D_RECURSES
139 #endif // else defined(CDrawableWithDisplay3D_RECURSES)
Aim: The concept CDrawableWithDisplay3D specifies what are the classes that admit an export with Disp...
void sameType(const T &, const T &)
Definition: ConceptUtils.h:117
DGtal is the top-level namespace which contains all DGtal functions and types.
DrawableWithDisplay3D * myD
the drawable class