X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=WCudaMSE%2FAPI_Bilat_Image_GL%2FINC%2Fcommon%2FGLPrimitiveDrawers.h;fp=WCudaMSE%2FAPI_Bilat_Image_GL%2FINC%2Fcommon%2FGLPrimitiveDrawers.h;h=fcd16a81504a0a094d6aecfda00e97ba293025a6;hb=8d08c12b29c2a14684f35c023ee39e694bb80d25;hp=0000000000000000000000000000000000000000;hpb=226de81f7e1f1fbf4ac79d0d089e8a05ec7159a0;p=GPU.git diff --git a/WCudaMSE/API_Bilat_Image_GL/INC/common/GLPrimitiveDrawers.h b/WCudaMSE/API_Bilat_Image_GL/INC/common/GLPrimitiveDrawers.h new file mode 100755 index 0000000..fcd16a8 --- /dev/null +++ b/WCudaMSE/API_Bilat_Image_GL/INC/common/GLPrimitiveDrawers.h @@ -0,0 +1,89 @@ +#ifndef GL_PRIMITIVE_DRAWERS_H +#define GL_PRIMITIVE_DRAWERS_H + +#include "envGLImage.h" +#include "PrimitiveVisitors_I.h" +#include "TextRenderer_A.h" +#include "Line2Ds.h" +#include "Rect2Ds.h" +#include "Text2Ds.h" +#include "WiredRect2Ds.h" +#include "Graphic2Ds.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_GLIMAGE GLPrimitiveDrawers: public PrimitiveVisitors_I + + { + public: + + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + GLPrimitiveDrawers(); + + /*--------------------------------------*\ + |* Destructor *| + \*-------------------------------------*/ + + virtual ~GLPrimitiveDrawers(); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + void display(Graphic2Ds* graphic2D, TextRenderer_A* textRenderer); + + private: + + /** + * Override + */ + virtual void visite(Graphic2Ds* graphic2D); + + /** + * Override + */ + virtual void visite(Line2Ds* ptrLine2D); + + /** + * Override + */ + virtual void visite(Rect2Ds* ptrRect2D); + + /** + * Override + */ + virtual void visite(Text2Ds* ptrTexte2D); + + /** + * Override + */ + virtual void visite(WiredRect2Ds* ptrWiredRect2D); + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + /** + * setBy display ! + */ + TextRenderer_A* ptrTextRenderer; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ +