Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / API_Bilat_Image_GL / INC / common / Rect2Ds.h
1 #ifndef RECT_2DS_H
2 #define RECT_2DS_H
3
4 #include "Primitives_A.h"
5
6 /*----------------------------------------------------------------------*\
7 |* Declaration *|
8 \*---------------------------------------------------------------------*/
9
10 /*--------------------------------------*\
11 |* Public *|
12 \*-------------------------------------*/
13
14 class CBI_GLIMAGE Rect2Ds: public Primitives_A
15 {
16 public:
17
18 /*--------------------------------------*\
19 |* Constructor *|
20 \*-------------------------------------*/
21
22 /*
23 * (x,y) coin superieur gauche
24 */
25 Rect2Ds(int x, int y, int width, int height);
26
27 /*--------------------------------------*\
28 |* Destructor *|
29 \*-------------------------------------*/
30
31 virtual ~Rect2Ds();
32
33 /*--------------------------------------*\
34 |* Methodes *|
35 \*-------------------------------------*/
36
37 public:
38
39 /**
40 * Override
41 */
42 virtual void accept(PrimitiveVisitors_I &visitor);
43
44 /*--------------------------------------*\
45 |* Get *|
46 \*-------------------------------------*/
47
48 inline int getX()
49 {
50 return x;
51 }
52
53 inline int getY()
54 {
55 return y;
56 }
57
58 inline int getWidth()
59 {
60 return width;
61 }
62
63 inline int getHeight()
64 {
65 return height;
66 }
67
68 /*--------------------------------------*\
69 |* Set *|
70 \*-------------------------------------*/
71
72 void setXY(int x, int y);
73 void setSize(int width, int height);
74
75 /*--------------------------------------*\
76 |* Attributs *|
77 \*-------------------------------------*/
78
79 public:
80
81 //Input
82 int x;
83 int y;
84 int width;
85 int height;
86 };
87
88 #endif
89
90 /*----------------------------------------------------------------------*\
91 |* End *|
92 \*---------------------------------------------------------------------*/