Implémentation de RipplingMath.h
[GPU.git] / WCudaMSE / API_Bilat_Graph2D / INC / view / GLGraphRunnable.h
1 #ifndef GLGRAPHRUNNABLE_H_
2 #define GLGRAPHRUNNABLE_H_
3 #include "envGraph.h"
4 #include "Panel_A.h"
5 #include "Viewport.h"
6 #include "GLFigure.h"
7 /*----------------------------------------------------------------------*\
8 |* Declaration *|
9 \*---------------------------------------------------------------------*/
10
11 /*--------------------------------------*\
12 |* Public *|
13 \*-------------------------------------*/
14
15 class CBI_GRAPH GLGraphRunnable
16 {
17 public:
18 virtual ~GLGraphRunnable()
19 {
20 }
21 virtual void run(Panel_A &panel)=0;
22 };
23
24 /**
25 * Free GLResources
26 * delete ptrGLFigure
27 */
28 class CBI_GRAPH GLGraphRelease: public GLGraphRunnable
29 {
30 public:
31 GLGraphRelease(GLFigure* ptrGLFigure);
32 virtual ~GLGraphRelease();
33 virtual void run(Panel_A &panel);
34 private:
35 GLFigure* ptrGLFigure;
36 };
37
38 /**
39 * Initialize GLFigure
40 * call reshape GLFigure with given viewport
41 */
42 class CBI_GRAPH GLGraphInit: public GLGraphRunnable
43 {
44 public:
45 GLGraphInit(GLFigure* ptrGLFigure, Viewport* ptrViewport);
46 virtual ~GLGraphInit();
47 virtual void run(Panel_A &panel);
48 private:
49 GLFigure* ptrGLFigure;
50 Viewport* ptrViewport;
51 };
52
53 #endif
54
55 /*----------------------------------------------------------------------*\
56 |* End *|
57 \*---------------------------------------------------------------------*/