0022819: Redesign of OpenGl driver
[occt.git] / src / QADBMReflex / QADBMReflex_OCC749Prs.cxx
1 // File:        QADBMReflex_OCC749Prs.cxx
2 // Created:     Mon Oct  7 15:01:41 2002
3 // Author:      QA Admin
4 //              <qa@russox>
5
6
7 #include <QADBMReflex_OCC749Prs.ixx>
8
9 //=======================================================================
10 //function : QADBMReflex_OCC749Prs
11 //purpose  : 
12 //=======================================================================
13
14 QADBMReflex_OCC749Prs::QADBMReflex_OCC749Prs( const Standard_Boolean Reflection, 
15                                              const Quantity_Color& InteriorColor,
16                                              const Quantity_Color& EdgeColor,
17                                              const Quantity_Color& EdgeColor2,
18                                              const Standard_Integer XCount,
19                                              const Standard_Integer YCount,
20                                              const Standard_Integer BoxSize,
21                                              const Graphic3d_MaterialAspect& MaterialAspect,
22                                              const Standard_Boolean Material,
23                                              const Standard_Boolean Timer ) :
24        myReflection( Reflection ),
25        myInteriorColor( InteriorColor ),
26        myEdgeColor( EdgeColor ),
27        myEdgeColor2( EdgeColor2 ),
28        myXCount( XCount ),
29        myYCount( YCount ),
30        myBoxSize( BoxSize ),
31        myMaterialAspect( MaterialAspect ),
32        myMaterial( Material ),
33        myTimer( Timer )
34 {
35   SetHilightMode(0);
36   SetSelectionMode(0);
37 }
38
39 //=======================================================================
40 //function : ComputeSelection
41 //purpose  : 
42 //=======================================================================
43
44 void QADBMReflex_OCC749Prs::ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,
45                                              const Standard_Integer aMode)
46 {
47 }
48
49 //=======================================================================
50 //function : SetReflection
51 //purpose  : 
52 //=======================================================================
53
54 void QADBMReflex_OCC749Prs::SetReflection( const Standard_Boolean Reflection )
55 {
56   myReflection = Reflection;
57 }
58     
59 //=======================================================================
60 //function : SetColor
61 //purpose  : 
62 //=======================================================================
63
64 void QADBMReflex_OCC749Prs::SetColor(const Quantity_Color& InteriorColor,
65                                      const Quantity_Color& EdgeColor )
66 {
67   myInteriorColor = InteriorColor;
68   myEdgeColor = EdgeColor;
69 }
70     
71 //=======================================================================
72 //function : SetEdgeColor2
73 //purpose  : 
74 //=======================================================================
75
76 void QADBMReflex_OCC749Prs::SetEdgeColor2(const Quantity_Color& EdgeColor2 )
77 {
78   myEdgeColor2 = EdgeColor2;
79 }
80
81 //=======================================================================
82 //function : SetXYCount
83 //purpose  : 
84 //=======================================================================
85
86 void QADBMReflex_OCC749Prs::SetXYCount(const Standard_Integer XCount,
87                                        const Standard_Integer YCount)
88 {
89   myXCount = XCount;
90   myYCount = YCount;
91 }
92
93 //=======================================================================
94 //function : SetBoxSize
95 //purpose  : 
96 //=======================================================================
97
98 void QADBMReflex_OCC749Prs::SetBoxSize(const Standard_Integer BoxSize)
99 {
100   myBoxSize = BoxSize;
101 }
102
103
104 //=======================================================================
105 //function : SetMaterialAspect
106 //purpose  : 
107 //=======================================================================
108
109 void QADBMReflex_OCC749Prs::SetMaterialAspect(const Graphic3d_MaterialAspect& MaterialAspect)
110 {
111   myMaterialAspect = MaterialAspect;
112 }
113
114 //=======================================================================
115 //function : SetMaterial
116 //purpose  : 
117 //=======================================================================
118
119 void QADBMReflex_OCC749Prs::SetMaterial( const Standard_Boolean Material)
120 {
121   myMaterial = Material;
122 }
123
124 //=======================================================================
125 //function : SetTimer
126 //purpose  : 
127 //=======================================================================
128
129 void QADBMReflex_OCC749Prs::SetTimer( const Standard_Boolean Timer)
130 {
131   myTimer = Timer;
132 }
133
134 //=======================================================================
135 //function : GetReflection
136 //purpose  : 
137 //=======================================================================
138
139 Standard_Boolean QADBMReflex_OCC749Prs::GetReflection() const
140 {
141   return myReflection;
142 }
143
144 //=======================================================================
145 //function : GetInteriorColor
146 //purpose  : 
147 //=======================================================================
148
149 Quantity_Color QADBMReflex_OCC749Prs::GetInteriorColor() const
150 {
151   return myInteriorColor;
152 }
153
154 //=======================================================================
155 //function : GetEdgeColor
156 //purpose  : 
157 //=======================================================================
158
159 Quantity_Color QADBMReflex_OCC749Prs::GetEdgeColor() const
160 {
161   return myEdgeColor;
162 }
163
164 //=======================================================================
165 //function : GetEdgeColor2
166 //purpose  : 
167 //=======================================================================
168
169 Quantity_Color QADBMReflex_OCC749Prs::GetEdgeColor2() const
170 {
171   return myEdgeColor2;
172 }
173
174 //=======================================================================
175 //function : GetXCount
176 //purpose  : 
177 //=======================================================================
178
179 Standard_Integer QADBMReflex_OCC749Prs::GetXCount() const
180 {
181   return myXCount;
182 }
183
184 //=======================================================================
185 //function : GetYCount
186 //purpose  : 
187 //=======================================================================
188
189 Standard_Integer QADBMReflex_OCC749Prs::GetYCount() const
190 {
191   return myYCount;
192 }
193
194 //=======================================================================
195 //function : GetBoxSize
196 //purpose  : 
197 //=======================================================================
198
199 Standard_Integer QADBMReflex_OCC749Prs::GetBoxSize() const
200 {
201   return myBoxSize;
202 }
203
204 //=======================================================================
205 //function : GetMaterialAspect
206 //purpose  : 
207 //=======================================================================
208
209 Graphic3d_MaterialAspect QADBMReflex_OCC749Prs::GetMaterialAspect() const
210 {
211   return myMaterialAspect;
212 }
213
214 //=======================================================================
215 //function : GetMaterial
216 //purpose  : 
217 //=======================================================================
218
219 Standard_Boolean QADBMReflex_OCC749Prs::GetMaterial() const
220 {
221   return myMaterial;
222 }
223
224 //=======================================================================
225 //function : GetTimer
226 //purpose  : 
227 //=======================================================================
228
229 Standard_Boolean QADBMReflex_OCC749Prs::GetTimer() const
230 {
231   return myTimer;
232 }