DGtal 0.3.0

CDrawableWithDGtalQGLViewer.h

Go to the documentation of this file.
00001 
00017 #pragma once
00018 
00033 #if defined(CDrawableWithDGtalQGLViewer_RECURSES)
00034 #error Recursive header files inclusion detected in CDrawableWithDGtalQGLViewer.h
00035 #else // defined(CDrawableWithDGtalQGLViewer_RECURSES)
00036 
00037 #define CDrawableWithDGtalQGLViewer_RECURSES
00038 
00039 #if !defined CDrawableWithDGtalQGLViewer_h
00040 
00041 #define CDrawableWithDGtalQGLViewer_h
00042 
00044 
00045 // Inclusions
00046 
00047 #include <iostream>
00048 #include "boost/concept_check.hpp"
00049 #include "DGtal/3dViewer/DGtalQGLViewer.h"
00050 #include "DGtal/base/Common.h"
00051 
00052 
00053 
00054 
00055 
00056 
00057 
00058 
00059 
00060 
00061 
00063 
00064 namespace DGtal
00065 {
00066 
00067 
00068 
00069 
00070 
00072   // class CDrawableWithDGtalQGLViewer
00126   template <typename T>
00127   struct CDrawableWithDGtalQGLViewer
00128   {
00129     // ----------------------- Concept checks ------------------------------
00130   public:
00131     BOOST_CONCEPT_USAGE( CDrawableWithDGtalQGLViewer )
00132     {
00133       //Drawable model should have a defaultStyle() returning a DrawableWithDGtalBoard*
00134       ConceptUtils::sameType( myD, myT.defaultStyleQGL() );
00135       //Drawable model should have a defaultStyle( string ) returning a DrawableWithDGtalBoard*
00136       ConceptUtils::sameType( myD, myT.defaultStyleQGL( myS ) );
00137       //Drawable model should have a styleName() returning a string
00138       ConceptUtils::sameType( myS, myT.styleName() );
00139       //Drawable model should have a selfDraw()
00141       myT.selfDrawQGL( myB );
00142     }
00143 
00144     // ------------------------- Private Datas --------------------------------
00145   private:
00146     T myT;
00147     DrawableWithDGtalQGLViewer *myD;
00148 
00150     DGtalQGLViewer myB;
00151     std::string myS;
00152 
00153     // ------------------------- Internals ------------------------------------
00154   private:
00155 
00156   }; // end of concept CDrawableWithDGtalQGLViewer
00157 
00158 } // namespace DGtal
00159 
00160 
00161 //                                                                           //
00163 
00164 #endif // !defined CDrawableWithDGtalQGLViewer_h
00165 
00166 #undef CDrawableWithDGtalQGLViewer_RECURSES
00167 #endif // else defined(CDrawableWithDGtalQGLViewer_RECURSES)
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines