X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=WCudaMSE%2FAPI_Bilat_Graph2D%2FINC%2Fview%2FGLCurveAnalytic.h;fp=WCudaMSE%2FAPI_Bilat_Graph2D%2FINC%2Fview%2FGLCurveAnalytic.h;h=46d36197b7332d62ad5607e9cb2a895d449a9428;hb=8d08c12b29c2a14684f35c023ee39e694bb80d25;hp=0000000000000000000000000000000000000000;hpb=226de81f7e1f1fbf4ac79d0d089e8a05ec7159a0;p=GPU.git diff --git a/WCudaMSE/API_Bilat_Graph2D/INC/view/GLCurveAnalytic.h b/WCudaMSE/API_Bilat_Graph2D/INC/view/GLCurveAnalytic.h new file mode 100755 index 0000000..46d3619 --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D/INC/view/GLCurveAnalytic.h @@ -0,0 +1,47 @@ +#ifndef GLCURVE_H_ +#define GLCURVE_H_ + +#include "GLFigure.h" +#include "CurveAnalytic.h" +#include "VertexBufferObject.h" + + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_GRAPH GLCurveAnalytic: public GLFigure + { + public: + GLCurveAnalytic(CurveAnalytic* ptrCurve, Domaine* ptrGraphDomaine); + virtual ~GLCurveAnalytic(); + + CurveAnalytic* getCurve() const; + + void init(Panel_A &panel); + void reshape(Panel_A &panel, const Viewport &viewport); + void display(Panel_A &panel); + void release(Panel_A &panel); + void updateGL(Panel_A &panel,const Domaine &domaineGraph); + protected: + void fillTabPoint(Point* ptrTabPoint,int nbPoint); + private: + // Inputs + Domaine* ptrGraphDomaine; + + // Tools + unsigned int nbPoint; + + // OpenGL + VertexBufferObject* vboVertex; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/