1 #ifndef GLUT_GRAPHWINDOW_H_
2 #define GLUT_GRAPHWINDOW_H_
3 #include "envGraphFreeGlut.h"
4 #include "GLUTWindow.h"
7 /*----------------------------------------------------------------------*\
9 \*---------------------------------------------------------------------*/
11 /*--------------------------------------*\
13 \*-------------------------------------*/
16 * Encapsulate Graph in a GLUTWindow with animation managment (idleFunc)
18 class CBI_GRAPH_FREE_GLUT GLUTGraphWindow
: public GLUTWindow
21 /*--------------------------------------*\
23 \*-------------------------------------*/
25 GLUTGraphWindow(Graph
* ptrGraph
, string title
, int width
, int height
, int pxFrame
= 0, int pyFrame
= 0);
27 /*--------------------------------------*\
29 \*-------------------------------------*/
31 virtual ~GLUTGraphWindow();
33 /*--------------------------------------*\
35 \*-------------------------------------*/
39 GLGraph
* getGLGraph();
41 /*--------------------------------------*\
43 \*-------------------------------------*/
46 * Call periodicaly by FreeGlut
48 virtual void idleFunc();
54 /*----------------------------------------------------------------------*\
56 \*---------------------------------------------------------------------*/