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