Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / API_Bilat_Graph2D / INC / model / Color.h
diff --git a/WCudaMSE/API_Bilat_Graph2D/INC/model/Color.h b/WCudaMSE/API_Bilat_Graph2D/INC/model/Color.h
new file mode 100755 (executable)
index 0000000..fb57e23
--- /dev/null
@@ -0,0 +1,75 @@
+#ifndef COLORS_H_
+#define COLORS_H_
+
+#include "envGraph.h"
+#include "Definitions.h"
+/*----------------------------------------------------------------------*\
+ |*                    Declaration                                     *|
+ \*---------------------------------------------------------------------*/
+
+/*--------------------------------------*\
+ |*            Public                  *|
+ \*-------------------------------------*/
+
+
+
+class CBI_GRAPH Color
+    {
+    public:
+
+       Color(uchar r = 0, uchar g = 0, uchar b = 0, uchar a = 255);
+       //Color(const Color &source);//inutil car que des type simple, le compilo copie bit a bit les attributs
+
+       inline uchar getRed() const
+           {
+           return r;
+           }
+
+       inline uchar getGreen() const
+           {
+           return g;
+           }
+
+       inline uchar getBlue() const
+           {
+           return b;
+           }
+
+       inline uchar getAlpha() const
+           {
+           return a;
+           }
+
+    public:
+       static const Color RED;
+       static const Color BLUE;
+       static const Color GREEN;
+
+       static const Color WHITE;
+       static const Color BLACK;
+       static const Color GRAY;
+
+       static const Color YELLOW;
+       static const Color CYAN;
+       static const Color MAGANTA;
+       static const Color ORANGE;
+       static const Color LIME;
+       static const Color PINK;
+       static const Color PURPLE;
+
+    private:
+       uchar r;
+       uchar g;
+       uchar b;
+       uchar a;
+
+    };
+
+#endif
+
+
+
+
+/*----------------------------------------------------------------------*\
+ |*                    End                                             *|
+ \*---------------------------------------------------------------------*/