0024814: Avoid using explicit names of Handle classes
[occt.git] / src / ChFiDS / ChFiDS_SurfData.lxx
1 // Created on: 1993-11-26
2 // Created by: Isabelle GRIGNON
3 // Copyright (c) 1993-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 //=======================================================================
18 //function : IndexOfS1
19 //purpose  : 
20 //=======================================================================
21
22 inline Standard_Integer  ChFiDS_SurfData::IndexOfS1() const
23 {
24   return indexOfS1;
25 }
26
27 //=======================================================================
28 //function : IsOnCurve1
29 //purpose  : 
30 //=======================================================================
31
32 inline Standard_Boolean ChFiDS_SurfData::IsOnCurve1() const
33 {
34   return isoncurv1;
35 }
36
37 //=======================================================================
38 //function : IndexOfC1
39 //purpose  : 
40 //=======================================================================
41
42 inline Standard_Integer  ChFiDS_SurfData::IndexOfC1() const
43 {
44   if(!isoncurv1) Standard_Failure::Raise("Interference pas sur courbe");
45   return indexOfC1;
46 }
47
48 //=======================================================================
49 //function : SetIndexOfC1
50 //purpose  : 
51 //=======================================================================
52
53 inline void ChFiDS_SurfData::SetIndexOfC1(const Standard_Integer Index)
54 {
55   indexOfC1 = isoncurv1 = Index;
56 }
57
58 //=======================================================================
59 //function : IndexOfS2
60 //purpose  : 
61 //=======================================================================
62
63 inline Standard_Integer  ChFiDS_SurfData::IndexOfS2() const
64 {
65   return indexOfS2;
66 }
67
68 //=======================================================================
69 //function : IsOnCurve2
70 //purpose  : 
71 //=======================================================================
72
73 inline Standard_Boolean ChFiDS_SurfData::IsOnCurve2() const
74 {
75   return isoncurv2;
76 }
77
78 //=======================================================================
79 //function : IndexOfC2
80 //purpose  : 
81 //=======================================================================
82
83 inline Standard_Integer  ChFiDS_SurfData::IndexOfC2() const
84 {
85   if(!isoncurv2) Standard_Failure::Raise("Interference pas sur courbe");
86   return indexOfC2;
87 }
88
89 //=======================================================================
90 //function : SetIndexOfC2
91 //purpose  : 
92 //=======================================================================
93
94 inline void ChFiDS_SurfData::SetIndexOfC2(const Standard_Integer Index)
95 {
96   indexOfC2 = isoncurv2 = Index;
97 }
98
99 //=======================================================================
100 //function : Surf
101 //purpose  : 
102 //=======================================================================
103
104 inline Standard_Integer  ChFiDS_SurfData::Surf()const 
105 {
106   return indexOfConge;
107 }
108
109 //=======================================================================
110 //function : Orientation
111 //purpose  : 
112 //=======================================================================
113
114 inline TopAbs_Orientation  ChFiDS_SurfData::Orientation()const 
115 {
116   return orientation;
117 }
118
119 //=======================================================================
120 //function : InterferenceOnS1
121 //purpose  : 
122 //=======================================================================
123
124 inline const ChFiDS_FaceInterference& ChFiDS_SurfData::InterferenceOnS1()const 
125 {
126   return intf1;
127 }
128
129
130 //=======================================================================
131 //function : InterferenceOnS2
132 //purpose  : 
133 //=======================================================================
134
135 inline const ChFiDS_FaceInterference&  ChFiDS_SurfData::InterferenceOnS2()const 
136 {
137   return intf2;
138 }
139
140
141 //=======================================================================
142 //function : VertexFirstOnS1
143 //purpose  : 
144 //=======================================================================
145
146 inline const ChFiDS_CommonPoint&  ChFiDS_SurfData::VertexFirstOnS1() const
147 {
148   return pfirstOnS1;
149 }
150
151 //=======================================================================
152 //function : VertexLastOnS1
153 //purpose  : 
154 //=======================================================================
155
156 inline const ChFiDS_CommonPoint&  ChFiDS_SurfData::VertexLastOnS1() const
157 {
158   return plastOnS1;
159 }
160
161 //=======================================================================
162 //function : VertexFirstOnS2
163 //purpose  : 
164 //=======================================================================
165
166 inline const ChFiDS_CommonPoint&  ChFiDS_SurfData::VertexFirstOnS2() const
167 {
168   return pfirstOnS2;
169 }
170
171 //=======================================================================
172 //function : VertexLastOnS2
173 //purpose  : 
174 //=======================================================================
175
176 inline const ChFiDS_CommonPoint&  ChFiDS_SurfData::VertexLastOnS2() const
177 {
178   return plastOnS2;
179 }
180
181
182 //=======================================================================
183 //function : ChangeIndexOfS1
184 //purpose  : 
185 //=======================================================================
186
187 inline void ChFiDS_SurfData::ChangeIndexOfS1(const Standard_Integer Index) 
188 {
189   indexOfS1 = Index;
190 }
191
192 //=======================================================================
193 //function : ChangeIndexOfS2
194 //purpose  : 
195 //=======================================================================
196
197 inline void ChFiDS_SurfData::ChangeIndexOfS2(const Standard_Integer Index) 
198 {
199   indexOfS2 = Index;
200 }
201
202 //=======================================================================
203 //function : ChangeSurf
204 //purpose  : 
205 //=======================================================================
206
207 inline void ChFiDS_SurfData::ChangeSurf(const Standard_Integer Index)
208 {
209   indexOfConge = Index;
210 }
211
212
213 //=======================================================================
214 //function : ChangeOrientation
215 //purpose  : 
216 //=======================================================================
217
218 inline TopAbs_Orientation&  ChFiDS_SurfData::ChangeOrientation()
219 {
220   return orientation;
221 }
222
223 //=======================================================================
224 //function : ChangeInterferenceOnS1
225 //purpose  : 
226 //=======================================================================
227
228 inline ChFiDS_FaceInterference& ChFiDS_SurfData::ChangeInterferenceOnS1()
229 {
230   return intf1;
231 }
232
233
234 //=======================================================================
235 //function : ChangeInterferenceOnS2
236 //purpose  : 
237 //=======================================================================
238
239 inline ChFiDS_FaceInterference&  ChFiDS_SurfData::ChangeInterferenceOnS2()
240 {
241   return intf2;
242 }
243
244
245 //=======================================================================
246 //function : ChangeVertexFirstOnS1
247 //purpose  : 
248 //=======================================================================
249
250 inline ChFiDS_CommonPoint&  ChFiDS_SurfData::ChangeVertexFirstOnS1() 
251 {
252   return pfirstOnS1;
253 }
254
255 //=======================================================================
256 //function : ChangeVertexLastOnS1
257 //purpose  : 
258 //=======================================================================
259
260 inline ChFiDS_CommonPoint&  ChFiDS_SurfData::ChangeVertexLastOnS1() 
261 {
262   return plastOnS1;
263 }
264
265 //=======================================================================
266 //function : ChangeVertexFirstOnS2
267 //purpose  : 
268 //=======================================================================
269
270 inline ChFiDS_CommonPoint&  ChFiDS_SurfData::ChangeVertexFirstOnS2() 
271 {
272   return pfirstOnS2;
273 }
274
275 //=======================================================================
276 //function : ChangeVertexLastOnS2
277 //purpose  : 
278 //=======================================================================
279
280 inline ChFiDS_CommonPoint&  ChFiDS_SurfData::ChangeVertexLastOnS2() 
281 {
282   return plastOnS2;
283 }
284
285 //=======================================================================
286 //function : IsOnCurve
287 //purpose  : 
288 //=======================================================================
289
290 inline Standard_Boolean ChFiDS_SurfData::IsOnCurve(const Standard_Integer OnS) const
291 {
292   if(OnS == 1) return isoncurv1;
293   return isoncurv2;
294 }
295
296 //=======================================================================
297 //function : IndexOfC
298 //purpose  : 
299 //=======================================================================
300
301 inline Standard_Integer  ChFiDS_SurfData::IndexOfC(const Standard_Integer OnS) const
302 {
303   if(OnS == 1) {
304     if(!isoncurv1) Standard_Failure::Raise("Interference pas sur courbe");
305     return indexOfC1;
306   }
307   if(!isoncurv2) Standard_Failure::Raise("Interference pas sur courbe");
308   return indexOfC2;
309 }
310
311 //=======================================================================
312 //function : Twist
313 //purpose  : 
314 //=======================================================================
315
316 inline Standard_Boolean ChFiDS_SurfData::TwistOnS1() const
317 {
318   return twistons1;
319 }
320 inline Standard_Boolean ChFiDS_SurfData::TwistOnS2() const
321 {
322   return twistons2;
323 }
324 inline void ChFiDS_SurfData::TwistOnS1(const Standard_Boolean T)
325 {
326   twistons1 = T;
327 }
328 inline void ChFiDS_SurfData::TwistOnS2(const Standard_Boolean T)
329 {
330   twistons2 = T;
331 }
332