Début du TP convolution. Pour l'instant uniquement lecture d'une vidéo.
[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 virtual void fillImageGL(uchar4* ptrDevImageGL, int w, int h); // override
45 virtual void animationStep(bool& isNeedUpdateView); // override
46 virtual void paintPrimitives(Graphic2Ds& graphic2D); // override
47
48 /*--------------------------------------*\
49 |* Attributs *|
50 \*-------------------------------------*/
51
52 protected:
53 // Input
54 Animable_I* ptrAnimable;
55 ColorRGB_01* ptrColorTitreRGB;
56
57 std::vector<std::string> valueNames;
58 float* values;
59 };
60
61 #endif
62
63 /*----------------------------------------------------------------------*\
64 |* End *|
65 \*---------------------------------------------------------------------*/