X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=WCudaMSE%2FAPI_Bilat_Graph2D%2FINC%2Fmodel%2FApparance.h;fp=WCudaMSE%2FAPI_Bilat_Graph2D%2FINC%2Fmodel%2FApparance.h;h=763f1957c8e0f67940a790fbbd4438be4fee5b09;hb=8d08c12b29c2a14684f35c023ee39e694bb80d25;hp=0000000000000000000000000000000000000000;hpb=226de81f7e1f1fbf4ac79d0d089e8a05ec7159a0;p=GPU.git diff --git a/WCudaMSE/API_Bilat_Graph2D/INC/model/Apparance.h b/WCudaMSE/API_Bilat_Graph2D/INC/model/Apparance.h new file mode 100755 index 0000000..763f195 --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D/INC/model/Apparance.h @@ -0,0 +1,52 @@ +#ifndef APPARANCE_H_ +#define APPARANCE_H_ +#include "envGraph.h" +#include "Color.h" + +#include +using std::string; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/** + * @enum TypeConnector + * Define only for ploylines the appearance of the figure. + */ +enum TypeConnector + { + TYPE_LINES, + TYPE_POINTS + }; + + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_GRAPH Apparance + { + public: + Apparance(Color foreground=Color::WHITE,Color background=Color::BLACK,TypeConnector connectorType=TYPE_LINES); + + Color getForeground() const; + Color getBackground() const; + TypeConnector getConnectorType() const; + + void setForeground(Color color); + void setBackground(Color color); + void setConnectorType(TypeConnector connectorType); + + private : + Color foreground; + Color background; + TypeConnector connectorType; + + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/