DGtal  1.1.0
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  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)
DGtal::concepts::CDrawableWithDisplay3D::myD3D
DGtal::Display3D< Sp, KSp > myD3D
Definition: CDrawableWithDisplay3D.h:121
DGtal::Display3D< Sp, KSp >
DGtal::concepts::CDrawableWithDisplay3D::myT
T myT
Definition: CDrawableWithDisplay3D.h:118
DGtal::concepts::Display3D
Aim: The concept CDrawableWithDisplay3D specifies what are the classes that admit an export with Disp...
Definition: CDrawableWithDisplay3D.h:99
DGtal::concepts::CDrawableWithDisplay3D::myS
std::string myS
Definition: CDrawableWithDisplay3D.h:122
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
Definition: ClosedIntegerHalfPlane.h:49
DGtal::concepts::CDrawableWithDisplay3D::myD
DrawableWithDisplay3D * myD
the drawable class
Definition: CDrawableWithDisplay3D.h:119
DGtal::concepts::ConceptUtils::sameType
void sameType(const T &, const T &)
Definition: ConceptUtils.h:117
DGtal::concepts::CDrawableWithDisplay3D
Definition: CDrawableWithDisplay3D.h:103
DGtal::DrawableWithDisplay3D
Definition: Common.h:203
DGtal::concepts::CDrawableWithDisplay3D::BOOST_CONCEPT_USAGE
BOOST_CONCEPT_USAGE(CDrawableWithDisplay3D)
Definition: CDrawableWithDisplay3D.h:105