X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=WCudaMSE%2FAPI_Bilat_Graph2D_FreeGlut%2FINC%2Ffreeglut%2FGLUTGraphWindow.h;fp=WCudaMSE%2FAPI_Bilat_Graph2D_FreeGlut%2FINC%2Ffreeglut%2FGLUTGraphWindow.h;h=d168ad4275bf8de56e3f04aa3e836cf35df4b9e6;hb=8d08c12b29c2a14684f35c023ee39e694bb80d25;hp=0000000000000000000000000000000000000000;hpb=226de81f7e1f1fbf4ac79d0d089e8a05ec7159a0;p=GPU.git diff --git a/WCudaMSE/API_Bilat_Graph2D_FreeGlut/INC/freeglut/GLUTGraphWindow.h b/WCudaMSE/API_Bilat_Graph2D_FreeGlut/INC/freeglut/GLUTGraphWindow.h new file mode 100755 index 0000000..d168ad4 --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D_FreeGlut/INC/freeglut/GLUTGraphWindow.h @@ -0,0 +1,56 @@ +#ifndef GLUT_GRAPHWINDOW_H_ +#define GLUT_GRAPHWINDOW_H_ +#include "envGraphFreeGlut.h" +#include "GLUTWindow.h" +#include "GLGraph.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +/** + * Encapsulate Graph in a GLUTWindow with animation managment (idleFunc) + */ +class CBI_GRAPH_FREE_GLUT GLUTGraphWindow: public GLUTWindow + { + public: + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + GLUTGraphWindow(Graph* ptrGraph, string title, int width, int height, int pxFrame = 0, int pyFrame = 0); + + /*--------------------------------------*\ + |* Destructor *| + \*-------------------------------------*/ + + virtual ~GLUTGraphWindow(); + + /*--------------------------------------*\ + |* Get *| + \*-------------------------------------*/ + + Graph* getGraph(); + + GLGraph* getGLGraph(); + + /*--------------------------------------*\ + |* Surcharge *| + \*-------------------------------------*/ + + /** + * Call periodicaly by FreeGlut + */ + virtual void idleFunc(); + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/