X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=WCudaMSE%2FAPI_Bilat_Graph2D%2FINC%2Fmodel%2FGridApparance.h;fp=WCudaMSE%2FAPI_Bilat_Graph2D%2FINC%2Fmodel%2FGridApparance.h;h=569f13064269e48ade9856e4cc5b4693595c4029;hb=8d08c12b29c2a14684f35c023ee39e694bb80d25;hp=0000000000000000000000000000000000000000;hpb=226de81f7e1f1fbf4ac79d0d089e8a05ec7159a0;p=GPU.git diff --git a/WCudaMSE/API_Bilat_Graph2D/INC/model/GridApparance.h b/WCudaMSE/API_Bilat_Graph2D/INC/model/GridApparance.h new file mode 100755 index 0000000..569f130 --- /dev/null +++ b/WCudaMSE/API_Bilat_Graph2D/INC/model/GridApparance.h @@ -0,0 +1,47 @@ +#ifndef GRIDAPPARANCE_H_ +#define GRIDAPPARANCE_H_ +#include "envGraph.h" +#include "Color.h" + + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +/*--------------------------------------*\ + |* Public *| + \*-------------------------------------*/ + +class CBI_GRAPH GridApparance + { + public: + GridApparance(int nbrsLinesX=0,int nbrsLinesY=0,Color lineColor=Color::GRAY); + + void setColor(Color lineColor); + void setNbLinesX(int nbLinesX); + void setNbLinesY(int nbLinesY); + void setGrid(int nbLinesX,int nbLinesY); + + inline Color getColor() const { + return lineColor; + } + + inline int getNbLinesX() const { + return nbrLinesX; + } + + inline int getNbLinesY() const { + return nbrLinesY; + } + + private : + Color lineColor; + int nbrLinesX; + int nbrLinesY; + }; + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/