Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / API_Bilat_Graph2D_FreeGlut / INC / freeglut / GLUTGraphWindow.h
1 #ifndef GLUT_GRAPHWINDOW_H_
2 #define GLUT_GRAPHWINDOW_H_
3 #include "envGraphFreeGlut.h"
4 #include "GLUTWindow.h"
5 #include "GLGraph.h"
6
7 /*----------------------------------------------------------------------*\
8 |* Declaration *|
9 \*---------------------------------------------------------------------*/
10
11 /*--------------------------------------*\
12 |* Public *|
13 \*-------------------------------------*/
14
15 /**
16 * Encapsulate Graph in a GLUTWindow with animation managment (idleFunc)
17 */
18 class CBI_GRAPH_FREE_GLUT GLUTGraphWindow: public GLUTWindow
19 {
20 public:
21 /*--------------------------------------*\
22 |* Constructor *|
23 \*-------------------------------------*/
24
25 GLUTGraphWindow(Graph* ptrGraph, string title, int width, int height, int pxFrame = 0, int pyFrame = 0);
26
27 /*--------------------------------------*\
28 |* Destructor *|
29 \*-------------------------------------*/
30
31 virtual ~GLUTGraphWindow();
32
33 /*--------------------------------------*\
34 |* Get *|
35 \*-------------------------------------*/
36
37 Graph* getGraph();
38
39 GLGraph* getGLGraph();
40
41 /*--------------------------------------*\
42 |* Surcharge *|
43 \*-------------------------------------*/
44
45 /**
46 * Call periodicaly by FreeGlut
47 */
48 virtual void idleFunc();
49
50 };
51
52 #endif
53
54 /*----------------------------------------------------------------------*\
55 |* End *|
56 \*---------------------------------------------------------------------*/