Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / Student_Cuda_Image / src / cpp / core / 00_Rippling_warmup / 01_imageAPI / Rippling0Image.h
1 #ifndef RIPPLING_0_IMAGE_H_
2 #define RIPPLING_0_IMAGE_H_
3
4 #include "ImageMOOs_A.h"
5 #include "MathTools.h"
6
7 /*----------------------------------------------------------------------*\
8 |* Declaration *|
9 \*---------------------------------------------------------------------*/
10
11 /*--------------------------------------*\
12 |* Public *|
13 \*-------------------------------------*/
14
15 class Rippling0Image: public ImageMOOs_A
16 {
17 /*--------------------------------------*\
18 |* Constructeur *|
19 \*-------------------------------------*/
20
21 public:
22
23 Rippling0Image(unsigned int w, unsigned int h, float dt = 2 * PI / 10);
24 virtual ~Rippling0Image(void);
25
26 /*--------------------------------------*\
27 |* Methode *|
28 \*-------------------------------------*/
29
30 public:
31
32 /*----------------*\
33 |* Override *|
34 \*---------------*/
35
36 /**
37 * Override, call periodicly by the api
38 */
39 void fillImageGL(uchar4* ptrDevImageGL, int w, int h);
40
41 /**
42 * Override, call periodicly by the api
43 */
44 void animationStep(bool& isNeedUpdateView);
45
46 /**
47 * Override, call periodicly by the api
48 */
49 void paintPrimitives(Graphic2Ds& graphic2D);
50
51 /*--------------------------------------*\
52 |* Attribut *|
53 \*-------------------------------------*/
54
55 private:
56
57 // Input
58 double dt;
59
60 // Tools
61 double t;
62
63 };
64
65 #endif
66
67 /*----------------------------------------------------------------------*\
68 |* End *|
69 \*---------------------------------------------------------------------*/