Implémentation de RipplingMath.h
[GPU.git] / WCudaMSE / API_Bilat_Graph2D / INC / view / GLFigure.h
1 #ifndef GLFIGURE_H_
2 #define GLFIGURE_H_
3 #include "envGraph.h"
4 #include "Viewport.h"
5 #include "Figure.h"
6 #include "Panel_A.h"
7
8 /*----------------------------------------------------------------------*\
9 |* Declaration *|
10 \*---------------------------------------------------------------------*/
11
12 /*--------------------------------------*\
13 |* Public *|
14 \*-------------------------------------*/
15
16 class CBI_GRAPH GLFigure
17 {
18 public:
19 GLFigure(Figure* ptrFigure);
20 virtual ~GLFigure();
21
22 virtual void init(Panel_A &panel);
23 virtual void reshape(Panel_A &panel, const Viewport &viewport)=0;
24 virtual void display(Panel_A &panel)=0;
25 virtual void release(Panel_A &panel)=0;
26
27 Figure* getFigure() const;
28
29 /**
30 * Will update the courbe after repaint
31 */
32 virtual void updateGL(Panel_A &panel,const Domaine &domaineGraph)=0;
33 protected:
34 Figure* ptrFigure;
35 bool isInit;
36 };
37
38 #endif
39
40 /*----------------------------------------------------------------------*\
41 |* End *|
42 \*---------------------------------------------------------------------*/