X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=WCudaMSE%2FTuto_Image_Cuda%2Fsrc%2Fcpp%2Fcore%2F03_Event%2Fmoo%2Fhost%2FEvent.h;fp=WCudaMSE%2FTuto_Image_Cuda%2Fsrc%2Fcpp%2Fcore%2F03_Event%2Fmoo%2Fhost%2FEvent.h;h=2298e095f84459b84cc46ca90c8735ea4059a8cc;hb=8d08c12b29c2a14684f35c023ee39e694bb80d25;hp=0000000000000000000000000000000000000000;hpb=226de81f7e1f1fbf4ac79d0d089e8a05ec7159a0;p=GPU.git diff --git a/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/03_Event/moo/host/Event.h b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/03_Event/moo/host/Event.h new file mode 100755 index 0000000..2298e09 --- /dev/null +++ b/WCudaMSE/Tuto_Image_Cuda/src/cpp/core/03_Event/moo/host/Event.h @@ -0,0 +1,70 @@ +#ifndef EVENT_H_ +#define EVENT_H_ + +#include "cudaTools.h" +#include "AnimableFonctionel_I.h" +#include "MathTools.h" + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class Event: public AnimableFonctionel_I + { + /*--------------------------------------*\ + |* Constructor *| + \*-------------------------------------*/ + + public: + + Event(int w,int h,float dt= 2*PI/1000); + virtual ~Event(void); + + /*--------------------------------------*\ + |* Methodes *| + \*-------------------------------------*/ + + public: + + void runGPU(uchar4* ptrDevPixels,const DomaineMath& domaineMath); // Override + void animationStep(void); // Overrideb + + float getT(void);// Override + int getW(void);// Override + int getH(void);// Override + DomaineMath* getDomaineMathInit(void);// Override + string getTitle(void);// Override + + + private: + + /*--------------------------------------*\ + |* Attributs *| + \*-------------------------------------*/ + + private: + + // Inputs + int w; + int h; + float dt; + + // Tools + dim3 dg; + dim3 db; + float t; + DomaineMath* ptrDomaineMathInit; + + //Outputs + string title; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/