Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / API_Bilat_Graph2D / INC / model / GridApparance.h
1 #ifndef GRIDAPPARANCE_H_
2 #define GRIDAPPARANCE_H_
3 #include "envGraph.h"
4 #include "Color.h"
5
6
7 /*----------------------------------------------------------------------*\
8 |* Declaration *|
9 \*---------------------------------------------------------------------*/
10
11 /*--------------------------------------*\
12 |* Public *|
13 \*-------------------------------------*/
14
15 class CBI_GRAPH GridApparance
16 {
17 public:
18 GridApparance(int nbrsLinesX=0,int nbrsLinesY=0,Color lineColor=Color::GRAY);
19
20 void setColor(Color lineColor);
21 void setNbLinesX(int nbLinesX);
22 void setNbLinesY(int nbLinesY);
23 void setGrid(int nbLinesX,int nbLinesY);
24
25 inline Color getColor() const {
26 return lineColor;
27 }
28
29 inline int getNbLinesX() const {
30 return nbrLinesX;
31 }
32
33 inline int getNbLinesY() const {
34 return nbrLinesY;
35 }
36
37 private :
38 Color lineColor;
39 int nbrLinesX;
40 int nbrLinesY;
41 };
42
43 #endif
44
45 /*----------------------------------------------------------------------*\
46 |* End *|
47 \*---------------------------------------------------------------------*/