b311480e |
1 | // Created on: 1993-11-26 |
2 | // Created by: Isabelle GRIGNON |
3 | // Copyright (c) 1993-1999 Matra Datavision |
973c2be1 |
4 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
5 | // |
973c2be1 |
6 | // This file is part of Open CASCADE Technology software library. |
b311480e |
7 | // |
d5f74e42 |
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 |
973c2be1 |
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. |
b311480e |
13 | // |
973c2be1 |
14 | // Alternatively, this file may be used under the terms of Open CASCADE |
15 | // commercial license or contractual agreement. |
7fd59977 |
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 | { |
9775fa61 |
44 | if(!isoncurv1) throw Standard_Failure("Interference pas sur courbe"); |
7fd59977 |
45 | return indexOfC1; |
46 | } |
47 | |
48 | //======================================================================= |
49 | //function : SetIndexOfC1 |
50 | //purpose : |
51 | //======================================================================= |
52 | |
dde68833 |
53 | inline void ChFiDS_SurfData::SetIndexOfC1 (const Standard_Integer theIndex) |
7fd59977 |
54 | { |
dde68833 |
55 | indexOfC1 = theIndex; |
56 | isoncurv1 = (theIndex != 0); |
7fd59977 |
57 | } |
58 | |
59 | //======================================================================= |
60 | //function : IndexOfS2 |
61 | //purpose : |
62 | //======================================================================= |
63 | |
64 | inline Standard_Integer ChFiDS_SurfData::IndexOfS2() const |
65 | { |
66 | return indexOfS2; |
67 | } |
68 | |
69 | //======================================================================= |
70 | //function : IsOnCurve2 |
71 | //purpose : |
72 | //======================================================================= |
73 | |
74 | inline Standard_Boolean ChFiDS_SurfData::IsOnCurve2() const |
75 | { |
76 | return isoncurv2; |
77 | } |
78 | |
79 | //======================================================================= |
80 | //function : IndexOfC2 |
81 | //purpose : |
82 | //======================================================================= |
83 | |
84 | inline Standard_Integer ChFiDS_SurfData::IndexOfC2() const |
85 | { |
9775fa61 |
86 | if(!isoncurv2) throw Standard_Failure("Interference pas sur courbe"); |
7fd59977 |
87 | return indexOfC2; |
88 | } |
89 | |
90 | //======================================================================= |
91 | //function : SetIndexOfC2 |
92 | //purpose : |
93 | //======================================================================= |
94 | |
dde68833 |
95 | inline void ChFiDS_SurfData::SetIndexOfC2 (const Standard_Integer theIndex) |
7fd59977 |
96 | { |
dde68833 |
97 | indexOfC2 = theIndex; |
98 | isoncurv2 = (theIndex != 0); |
7fd59977 |
99 | } |
100 | |
101 | //======================================================================= |
102 | //function : Surf |
103 | //purpose : |
104 | //======================================================================= |
105 | |
106 | inline Standard_Integer ChFiDS_SurfData::Surf()const |
107 | { |
108 | return indexOfConge; |
109 | } |
110 | |
111 | //======================================================================= |
112 | //function : Orientation |
113 | //purpose : |
114 | //======================================================================= |
115 | |
116 | inline TopAbs_Orientation ChFiDS_SurfData::Orientation()const |
117 | { |
118 | return orientation; |
119 | } |
120 | |
121 | //======================================================================= |
122 | //function : InterferenceOnS1 |
123 | //purpose : |
124 | //======================================================================= |
125 | |
126 | inline const ChFiDS_FaceInterference& ChFiDS_SurfData::InterferenceOnS1()const |
127 | { |
128 | return intf1; |
129 | } |
130 | |
131 | |
132 | //======================================================================= |
133 | //function : InterferenceOnS2 |
134 | //purpose : |
135 | //======================================================================= |
136 | |
137 | inline const ChFiDS_FaceInterference& ChFiDS_SurfData::InterferenceOnS2()const |
138 | { |
139 | return intf2; |
140 | } |
141 | |
142 | |
143 | //======================================================================= |
144 | //function : VertexFirstOnS1 |
145 | //purpose : |
146 | //======================================================================= |
147 | |
148 | inline const ChFiDS_CommonPoint& ChFiDS_SurfData::VertexFirstOnS1() const |
149 | { |
150 | return pfirstOnS1; |
151 | } |
152 | |
153 | //======================================================================= |
154 | //function : VertexLastOnS1 |
155 | //purpose : |
156 | //======================================================================= |
157 | |
158 | inline const ChFiDS_CommonPoint& ChFiDS_SurfData::VertexLastOnS1() const |
159 | { |
160 | return plastOnS1; |
161 | } |
162 | |
163 | //======================================================================= |
164 | //function : VertexFirstOnS2 |
165 | //purpose : |
166 | //======================================================================= |
167 | |
168 | inline const ChFiDS_CommonPoint& ChFiDS_SurfData::VertexFirstOnS2() const |
169 | { |
170 | return pfirstOnS2; |
171 | } |
172 | |
173 | //======================================================================= |
174 | //function : VertexLastOnS2 |
175 | //purpose : |
176 | //======================================================================= |
177 | |
178 | inline const ChFiDS_CommonPoint& ChFiDS_SurfData::VertexLastOnS2() const |
179 | { |
180 | return plastOnS2; |
181 | } |
182 | |
183 | |
184 | //======================================================================= |
185 | //function : ChangeIndexOfS1 |
186 | //purpose : |
187 | //======================================================================= |
188 | |
189 | inline void ChFiDS_SurfData::ChangeIndexOfS1(const Standard_Integer Index) |
190 | { |
191 | indexOfS1 = Index; |
192 | } |
193 | |
194 | //======================================================================= |
195 | //function : ChangeIndexOfS2 |
196 | //purpose : |
197 | //======================================================================= |
198 | |
199 | inline void ChFiDS_SurfData::ChangeIndexOfS2(const Standard_Integer Index) |
200 | { |
201 | indexOfS2 = Index; |
202 | } |
203 | |
204 | //======================================================================= |
205 | //function : ChangeSurf |
206 | //purpose : |
207 | //======================================================================= |
208 | |
209 | inline void ChFiDS_SurfData::ChangeSurf(const Standard_Integer Index) |
210 | { |
211 | indexOfConge = Index; |
212 | } |
213 | |
214 | |
215 | //======================================================================= |
216 | //function : ChangeOrientation |
217 | //purpose : |
218 | //======================================================================= |
219 | |
220 | inline TopAbs_Orientation& ChFiDS_SurfData::ChangeOrientation() |
221 | { |
222 | return orientation; |
223 | } |
224 | |
225 | //======================================================================= |
226 | //function : ChangeInterferenceOnS1 |
227 | //purpose : |
228 | //======================================================================= |
229 | |
230 | inline ChFiDS_FaceInterference& ChFiDS_SurfData::ChangeInterferenceOnS1() |
231 | { |
232 | return intf1; |
233 | } |
234 | |
235 | |
236 | //======================================================================= |
237 | //function : ChangeInterferenceOnS2 |
238 | //purpose : |
239 | //======================================================================= |
240 | |
241 | inline ChFiDS_FaceInterference& ChFiDS_SurfData::ChangeInterferenceOnS2() |
242 | { |
243 | return intf2; |
244 | } |
245 | |
246 | |
247 | //======================================================================= |
248 | //function : ChangeVertexFirstOnS1 |
249 | //purpose : |
250 | //======================================================================= |
251 | |
252 | inline ChFiDS_CommonPoint& ChFiDS_SurfData::ChangeVertexFirstOnS1() |
253 | { |
254 | return pfirstOnS1; |
255 | } |
256 | |
257 | //======================================================================= |
258 | //function : ChangeVertexLastOnS1 |
259 | //purpose : |
260 | //======================================================================= |
261 | |
262 | inline ChFiDS_CommonPoint& ChFiDS_SurfData::ChangeVertexLastOnS1() |
263 | { |
264 | return plastOnS1; |
265 | } |
266 | |
267 | //======================================================================= |
268 | //function : ChangeVertexFirstOnS2 |
269 | //purpose : |
270 | //======================================================================= |
271 | |
272 | inline ChFiDS_CommonPoint& ChFiDS_SurfData::ChangeVertexFirstOnS2() |
273 | { |
274 | return pfirstOnS2; |
275 | } |
276 | |
277 | //======================================================================= |
278 | //function : ChangeVertexLastOnS2 |
279 | //purpose : |
280 | //======================================================================= |
281 | |
282 | inline ChFiDS_CommonPoint& ChFiDS_SurfData::ChangeVertexLastOnS2() |
283 | { |
284 | return plastOnS2; |
285 | } |
286 | |
287 | //======================================================================= |
288 | //function : IsOnCurve |
289 | //purpose : |
290 | //======================================================================= |
291 | |
292 | inline Standard_Boolean ChFiDS_SurfData::IsOnCurve(const Standard_Integer OnS) const |
293 | { |
294 | if(OnS == 1) return isoncurv1; |
295 | return isoncurv2; |
296 | } |
297 | |
298 | //======================================================================= |
299 | //function : IndexOfC |
300 | //purpose : |
301 | //======================================================================= |
302 | |
303 | inline Standard_Integer ChFiDS_SurfData::IndexOfC(const Standard_Integer OnS) const |
304 | { |
305 | if(OnS == 1) { |
9775fa61 |
306 | if(!isoncurv1) throw Standard_Failure("Interference pas sur courbe"); |
7fd59977 |
307 | return indexOfC1; |
308 | } |
9775fa61 |
309 | if(!isoncurv2) throw Standard_Failure("Interference pas sur courbe"); |
7fd59977 |
310 | return indexOfC2; |
311 | } |
312 | |
313 | //======================================================================= |
314 | //function : Twist |
315 | //purpose : |
316 | //======================================================================= |
317 | |
318 | inline Standard_Boolean ChFiDS_SurfData::TwistOnS1() const |
319 | { |
320 | return twistons1; |
321 | } |
322 | inline Standard_Boolean ChFiDS_SurfData::TwistOnS2() const |
323 | { |
324 | return twistons2; |
325 | } |
326 | inline void ChFiDS_SurfData::TwistOnS1(const Standard_Boolean T) |
327 | { |
328 | twistons1 = T; |
329 | } |
330 | inline void ChFiDS_SurfData::TwistOnS2(const Standard_Boolean T) |
331 | { |
332 | twistons2 = T; |
333 | } |
334 | |