X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=WCudaMSE%2FTuto_Image%2Fsrc%2Fcpp%2Fcore%2F02_Damier_Zoomable%2Fa_image%2FDamierImage.h;fp=WCudaMSE%2FTuto_Image%2Fsrc%2Fcpp%2Fcore%2F02_Damier_Zoomable%2Fa_image%2FDamierImage.h;h=146b871daffe0ac6865588816cf34e29d15440f9;hb=8d08c12b29c2a14684f35c023ee39e694bb80d25;hp=0000000000000000000000000000000000000000;hpb=226de81f7e1f1fbf4ac79d0d089e8a05ec7159a0;p=GPU.git diff --git a/WCudaMSE/Tuto_Image/src/cpp/core/02_Damier_Zoomable/a_image/DamierImage.h b/WCudaMSE/Tuto_Image/src/cpp/core/02_Damier_Zoomable/a_image/DamierImage.h new file mode 100755 index 0000000..146b871 --- /dev/null +++ b/WCudaMSE/Tuto_Image/src/cpp/core/02_Damier_Zoomable/a_image/DamierImage.h @@ -0,0 +1,68 @@ +#ifndef DAMIER_IMAGE_H_ +#define DAMIER_IMAGE_H_ + +#include "ImageFonctionelMOOs_A.h" +#include "DamierMOO.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class DamierImage: public ImageFonctionelMOOs_A + { + /*--------------------------------------*\ + |* Constructeur *| + \*-------------------------------------*/ + + public: + + DamierImage(unsigned int w, unsigned int h, float dt, int n); + virtual ~DamierImage(void); + + /*--------------------------------------*\ + |* Methode *| + \*-------------------------------------*/ + + protected: + + /*----------------*\ + |* Override *| + \*---------------*/ + + /** + * Override, call periodicly by the api + */ + virtual void fillImageGL(uchar4* ptrTabPixels, int w, int h, const DomaineMath& domaineMath); + + /** + * Override, call periodicly by the api + */ + virtual void animationStep(bool& isNeedUpdateView); + + /** + * Override, call periodicly by the api + */ + virtual void paintPrimitives(Graphic2Ds& graphic2D); + + + /*--------------------------------------*\ + |* Attribut *| + \*-------------------------------------*/ + + protected: + + // Tools + DamierMOO* ptrDamierMOO; + + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/