Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / API_Bilat_Graph2D / INC / view / GLFigure.h
diff --git a/WCudaMSE/API_Bilat_Graph2D/INC/view/GLFigure.h b/WCudaMSE/API_Bilat_Graph2D/INC/view/GLFigure.h
new file mode 100755 (executable)
index 0000000..2e97084
--- /dev/null
@@ -0,0 +1,42 @@
+#ifndef GLFIGURE_H_\r
+#define GLFIGURE_H_\r
+#include "envGraph.h"\r
+#include "Viewport.h"\r
+#include "Figure.h"\r
+#include "Panel_A.h"\r
+\r
+/*----------------------------------------------------------------------*\\r
+ |*                    Declaration                                     *|\r
+ \*---------------------------------------------------------------------*/\r
+\r
+/*--------------------------------------*\\r
+ |*            Public                  *|\r
+ \*-------------------------------------*/\r
+\r
+class CBI_GRAPH GLFigure\r
+    {\r
+    public:\r
+       GLFigure(Figure* ptrFigure);\r
+       virtual ~GLFigure();\r
+\r
+       virtual void init(Panel_A &panel);\r
+       virtual void reshape(Panel_A &panel, const Viewport &viewport)=0;\r
+       virtual void display(Panel_A &panel)=0;\r
+       virtual void release(Panel_A &panel)=0;\r
+\r
+       Figure* getFigure() const;\r
+\r
+       /**\r
+        * Will update the courbe after repaint\r
+        */\r
+       virtual void updateGL(Panel_A &panel,const Domaine &domaineGraph)=0;\r
+    protected:\r
+       Figure* ptrFigure;\r
+       bool isInit;\r
+    };\r
+\r
+#endif \r
+\r
+/*----------------------------------------------------------------------*\\r
+ |*                    End                                             *|\r
+ \*---------------------------------------------------------------------*/\r