Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / API_Bilat_Graph2D / INC / model / Color.h
1 #ifndef COLORS_H_
2 #define COLORS_H_
3
4 #include "envGraph.h"
5 #include "Definitions.h"
6 /*----------------------------------------------------------------------*\
7 |* Declaration *|
8 \*---------------------------------------------------------------------*/
9
10 /*--------------------------------------*\
11 |* Public *|
12 \*-------------------------------------*/
13
14
15
16 class CBI_GRAPH Color
17 {
18 public:
19
20 Color(uchar r = 0, uchar g = 0, uchar b = 0, uchar a = 255);
21 //Color(const Color &source);//inutil car que des type simple, le compilo copie bit a bit les attributs
22
23 inline uchar getRed() const
24 {
25 return r;
26 }
27
28 inline uchar getGreen() const
29 {
30 return g;
31 }
32
33 inline uchar getBlue() const
34 {
35 return b;
36 }
37
38 inline uchar getAlpha() const
39 {
40 return a;
41 }
42
43 public:
44 static const Color RED;
45 static const Color BLUE;
46 static const Color GREEN;
47
48 static const Color WHITE;
49 static const Color BLACK;
50 static const Color GRAY;
51
52 static const Color YELLOW;
53 static const Color CYAN;
54 static const Color MAGANTA;
55 static const Color ORANGE;
56 static const Color LIME;
57 static const Color PINK;
58 static const Color PURPLE;
59
60 private:
61 uchar r;
62 uchar g;
63 uchar b;
64 uchar a;
65
66 };
67
68 #endif
69
70
71
72
73 /*----------------------------------------------------------------------*\
74 |* End *|
75 \*---------------------------------------------------------------------*/