Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / Tuto_Image_Cuda / src / cpp / core / 03_Event / moo / host / Event.h
1 #ifndef EVENT_H_
2 #define EVENT_H_
3
4 #include "cudaTools.h"
5 #include "AnimableFonctionel_I.h"
6 #include "MathTools.h"
7
8 /*----------------------------------------------------------------------*\
9 |* Declaration *|
10 \*---------------------------------------------------------------------*/
11
12 /*--------------------------------------*\
13 |* Public *|
14 \*-------------------------------------*/
15
16 class Event: public AnimableFonctionel_I
17 {
18 /*--------------------------------------*\
19 |* Constructor *|
20 \*-------------------------------------*/
21
22 public:
23
24 Event(int w,int h,float dt= 2*PI/1000);
25 virtual ~Event(void);
26
27 /*--------------------------------------*\
28 |* Methodes *|
29 \*-------------------------------------*/
30
31 public:
32
33 void runGPU(uchar4* ptrDevPixels,const DomaineMath& domaineMath); // Override
34 void animationStep(void); // Overrideb
35
36 float getT(void);// Override
37 int getW(void);// Override
38 int getH(void);// Override
39 DomaineMath* getDomaineMathInit(void);// Override
40 string getTitle(void);// Override
41
42
43 private:
44
45 /*--------------------------------------*\
46 |* Attributs *|
47 \*-------------------------------------*/
48
49 private:
50
51 // Inputs
52 int w;
53 int h;
54 float dt;
55
56 // Tools
57 dim3 dg;
58 dim3 db;
59 float t;
60 DomaineMath* ptrDomaineMathInit;
61
62 //Outputs
63 string title;
64 };
65
66 #endif
67
68 /*----------------------------------------------------------------------*\
69 |* End *|
70 \*---------------------------------------------------------------------*/