X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=WCudaMSE%2FAPI_Bilat_Graph2D%2FINC%2Fview%2FGLFigure.h;fp=WCudaMSE%2FAPI_Bilat_Graph2D%2FINC%2Fview%2FGLFigure.h;h=2e97084349156a78a9b5b350fd27fa2dd66073f6;hb=8d08c12b29c2a14684f35c023ee39e694bb80d25;hp=0000000000000000000000000000000000000000;hpb=226de81f7e1f1fbf4ac79d0d089e8a05ec7159a0;p=GPU.git diff --git a/WCudaMSE/API_Bilat_Graph2D/INC/view/GLFigure.h b/WCudaMSE/API_Bilat_Graph2D/INC/view/GLFigure.h new file mode 100755 index 0000000..2e97084 --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D/INC/view/GLFigure.h @@ -0,0 +1,42 @@ +#ifndef GLFIGURE_H_ +#define GLFIGURE_H_ +#include "envGraph.h" +#include "Viewport.h" +#include "Figure.h" +#include "Panel_A.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_GRAPH GLFigure + { + public: + GLFigure(Figure* ptrFigure); + virtual ~GLFigure(); + + virtual void init(Panel_A &panel); + virtual void reshape(Panel_A &panel, const Viewport &viewport)=0; + virtual void display(Panel_A &panel)=0; + virtual void release(Panel_A &panel)=0; + + Figure* getFigure() const; + + /** + * Will update the courbe after repaint + */ + virtual void updateGL(Panel_A &panel,const Domaine &domaineGraph)=0; + protected: + Figure* ptrFigure; + bool isInit; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/