Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / API_Bilat_Graph2D / INC / model / Apparance.h
1 #ifndef APPARANCE_H_
2 #define APPARANCE_H_
3 #include "envGraph.h"
4 #include "Color.h"
5
6 #include <string>
7 using std::string;
8
9 /*----------------------------------------------------------------------*\
10 |* Declaration *|
11 \*---------------------------------------------------------------------*/
12
13 /**
14 * @enum TypeConnector
15 * Define only for ploylines the appearance of the figure.
16 */
17 enum TypeConnector
18 {
19 TYPE_LINES,
20 TYPE_POINTS
21 };
22
23
24 /*--------------------------------------*\
25 |* Public *|
26 \*-------------------------------------*/
27
28 class CBI_GRAPH Apparance
29 {
30 public:
31 Apparance(Color foreground=Color::WHITE,Color background=Color::BLACK,TypeConnector connectorType=TYPE_LINES);
32
33 Color getForeground() const;
34 Color getBackground() const;
35 TypeConnector getConnectorType() const;
36
37 void setForeground(Color color);
38 void setBackground(Color color);
39 void setConnectorType(TypeConnector connectorType);
40
41 private :
42 Color foreground;
43 Color background;
44 TypeConnector connectorType;
45
46 };
47
48 #endif
49
50 /*----------------------------------------------------------------------*\
51 |* End *|
52 \*---------------------------------------------------------------------*/