Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / API_Bilat_Graph2D / INC / model / Apparance.h
diff --git a/WCudaMSE/API_Bilat_Graph2D/INC/model/Apparance.h b/WCudaMSE/API_Bilat_Graph2D/INC/model/Apparance.h
new file mode 100755 (executable)
index 0000000..763f195
--- /dev/null
@@ -0,0 +1,52 @@
+#ifndef APPARANCE_H_\r
+#define APPARANCE_H_\r
+#include "envGraph.h"\r
+#include "Color.h"\r
+\r
+#include <string>\r
+using std::string;\r
+\r
+/*----------------------------------------------------------------------*\\r
+ |*                    Declaration                                     *|\r
+ \*---------------------------------------------------------------------*/\r
+\r
+/**\r
+ * @enum TypeConnector\r
+ * Define only for ploylines the appearance of the figure.\r
+ */\r
+enum TypeConnector\r
+    {\r
+    TYPE_LINES,\r
+    TYPE_POINTS\r
+    };\r
+\r
+\r
+/*--------------------------------------*\\r
+ |*            Public                  *|\r
+ \*-------------------------------------*/\r
+\r
+class CBI_GRAPH Apparance\r
+    {\r
+    public:\r
+       Apparance(Color foreground=Color::WHITE,Color background=Color::BLACK,TypeConnector connectorType=TYPE_LINES);\r
+\r
+       Color getForeground() const;\r
+       Color getBackground() const;\r
+       TypeConnector getConnectorType() const;\r
+\r
+       void setForeground(Color color);\r
+       void setBackground(Color color);\r
+       void setConnectorType(TypeConnector connectorType);\r
+\r
+    private :\r
+       Color foreground;\r
+       Color background;\r
+       TypeConnector connectorType;\r
+\r
+    };\r
+\r
+#endif \r
+\r
+/*----------------------------------------------------------------------*\\r
+ |*                    End                                             *|\r
+ \*---------------------------------------------------------------------*/\r