69729c68af79cfc8f8cb90490ba7eff472791ddc
[GPU.git] / WCudaMSE / BilatTools_Cuda_Image / src / core / cudaImageTools / bitmap / header / Image.h
1 #ifndef IMAGE_H_
2 #define IMAGE_H_
3
4 #include "ImageMOOs_A.h"
5 #include "MathTools.h"
6 #include "ColorRGB_01.h"
7
8 #include "Animable_I.h"
9
10
11
12 /*----------------------------------------------------------------------*\
13 |* Declaration *|
14 \*---------------------------------------------------------------------*/
15
16 /*--------------------------------------*\
17 |* Public *|
18 \*-------------------------------------*/
19
20 class Image: public ImageMOOs_A
21 {
22 /*--------------------------------------*\
23 |* Constructor *|
24 \*-------------------------------------*/
25
26 public:
27
28 /**
29 * ptrColorRGB : color all titre
30 */
31 Image(Animable_I* ptrAnimable, ColorRGB_01* ptrColorTitreRGB = new ColorRGB_01(1, 0, 0));
32
33 /**
34 * Warning :delete ptrAnimable
35 */
36 virtual ~Image(void);
37
38 /*--------------------------------------*\
39 |* Methodes *|
40 \*-------------------------------------*/
41
42 public:
43
44 void fillImageGL(uchar4* ptrDevImageGL, int w, int h); // override
45 void animationStep(bool& isNeedUpdateView); // override
46 void paintPrimitives(Graphic2Ds& graphic2D); // override
47
48 /*--------------------------------------*\
49 |* Attributs *|
50 \*-------------------------------------*/
51
52 private:
53
54 // Input
55 Animable_I* ptrAnimable;
56 ColorRGB_01* ptrColorTitreRGB;
57 };
58
59 #endif
60
61 /*----------------------------------------------------------------------*\
62 |* End *|
63 \*---------------------------------------------------------------------*/