7fd59977 |
1 | // File: ChFiDS_SurfData.lxx |
2 | // Created: Fri Nov 26 17:25:21 1993 |
3 | // Author: Isabelle GRIGNON |
4 | // <isg@zerox> |
5 | |
6 | |
7 | //======================================================================= |
8 | //function : IndexOfS1 |
9 | //purpose : |
10 | //======================================================================= |
11 | |
12 | inline Standard_Integer ChFiDS_SurfData::IndexOfS1() const |
13 | { |
14 | return indexOfS1; |
15 | } |
16 | |
17 | //======================================================================= |
18 | //function : IsOnCurve1 |
19 | //purpose : |
20 | //======================================================================= |
21 | |
22 | inline Standard_Boolean ChFiDS_SurfData::IsOnCurve1() const |
23 | { |
24 | return isoncurv1; |
25 | } |
26 | |
27 | //======================================================================= |
28 | //function : IndexOfC1 |
29 | //purpose : |
30 | //======================================================================= |
31 | |
32 | inline Standard_Integer ChFiDS_SurfData::IndexOfC1() const |
33 | { |
34 | if(!isoncurv1) Standard_Failure::Raise("Interference pas sur courbe"); |
35 | return indexOfC1; |
36 | } |
37 | |
38 | //======================================================================= |
39 | //function : SetIndexOfC1 |
40 | //purpose : |
41 | //======================================================================= |
42 | |
43 | inline void ChFiDS_SurfData::SetIndexOfC1(const Standard_Integer Index) |
44 | { |
45 | indexOfC1 = isoncurv1 = Index; |
46 | } |
47 | |
48 | //======================================================================= |
49 | //function : IndexOfS2 |
50 | //purpose : |
51 | //======================================================================= |
52 | |
53 | inline Standard_Integer ChFiDS_SurfData::IndexOfS2() const |
54 | { |
55 | return indexOfS2; |
56 | } |
57 | |
58 | //======================================================================= |
59 | //function : IsOnCurve2 |
60 | //purpose : |
61 | //======================================================================= |
62 | |
63 | inline Standard_Boolean ChFiDS_SurfData::IsOnCurve2() const |
64 | { |
65 | return isoncurv2; |
66 | } |
67 | |
68 | //======================================================================= |
69 | //function : IndexOfC2 |
70 | //purpose : |
71 | //======================================================================= |
72 | |
73 | inline Standard_Integer ChFiDS_SurfData::IndexOfC2() const |
74 | { |
75 | if(!isoncurv2) Standard_Failure::Raise("Interference pas sur courbe"); |
76 | return indexOfC2; |
77 | } |
78 | |
79 | //======================================================================= |
80 | //function : SetIndexOfC2 |
81 | //purpose : |
82 | //======================================================================= |
83 | |
84 | inline void ChFiDS_SurfData::SetIndexOfC2(const Standard_Integer Index) |
85 | { |
86 | indexOfC2 = isoncurv2 = Index; |
87 | } |
88 | |
89 | //======================================================================= |
90 | //function : Surf |
91 | //purpose : |
92 | //======================================================================= |
93 | |
94 | inline Standard_Integer ChFiDS_SurfData::Surf()const |
95 | { |
96 | return indexOfConge; |
97 | } |
98 | |
99 | //======================================================================= |
100 | //function : Orientation |
101 | //purpose : |
102 | //======================================================================= |
103 | |
104 | inline TopAbs_Orientation ChFiDS_SurfData::Orientation()const |
105 | { |
106 | return orientation; |
107 | } |
108 | |
109 | //======================================================================= |
110 | //function : InterferenceOnS1 |
111 | //purpose : |
112 | //======================================================================= |
113 | |
114 | inline const ChFiDS_FaceInterference& ChFiDS_SurfData::InterferenceOnS1()const |
115 | { |
116 | return intf1; |
117 | } |
118 | |
119 | |
120 | //======================================================================= |
121 | //function : InterferenceOnS2 |
122 | //purpose : |
123 | //======================================================================= |
124 | |
125 | inline const ChFiDS_FaceInterference& ChFiDS_SurfData::InterferenceOnS2()const |
126 | { |
127 | return intf2; |
128 | } |
129 | |
130 | |
131 | //======================================================================= |
132 | //function : VertexFirstOnS1 |
133 | //purpose : |
134 | //======================================================================= |
135 | |
136 | inline const ChFiDS_CommonPoint& ChFiDS_SurfData::VertexFirstOnS1() const |
137 | { |
138 | return pfirstOnS1; |
139 | } |
140 | |
141 | //======================================================================= |
142 | //function : VertexLastOnS1 |
143 | //purpose : |
144 | //======================================================================= |
145 | |
146 | inline const ChFiDS_CommonPoint& ChFiDS_SurfData::VertexLastOnS1() const |
147 | { |
148 | return plastOnS1; |
149 | } |
150 | |
151 | //======================================================================= |
152 | //function : VertexFirstOnS2 |
153 | //purpose : |
154 | //======================================================================= |
155 | |
156 | inline const ChFiDS_CommonPoint& ChFiDS_SurfData::VertexFirstOnS2() const |
157 | { |
158 | return pfirstOnS2; |
159 | } |
160 | |
161 | //======================================================================= |
162 | //function : VertexLastOnS2 |
163 | //purpose : |
164 | //======================================================================= |
165 | |
166 | inline const ChFiDS_CommonPoint& ChFiDS_SurfData::VertexLastOnS2() const |
167 | { |
168 | return plastOnS2; |
169 | } |
170 | |
171 | |
172 | //======================================================================= |
173 | //function : ChangeIndexOfS1 |
174 | //purpose : |
175 | //======================================================================= |
176 | |
177 | inline void ChFiDS_SurfData::ChangeIndexOfS1(const Standard_Integer Index) |
178 | { |
179 | indexOfS1 = Index; |
180 | } |
181 | |
182 | //======================================================================= |
183 | //function : ChangeIndexOfS2 |
184 | //purpose : |
185 | //======================================================================= |
186 | |
187 | inline void ChFiDS_SurfData::ChangeIndexOfS2(const Standard_Integer Index) |
188 | { |
189 | indexOfS2 = Index; |
190 | } |
191 | |
192 | //======================================================================= |
193 | //function : ChangeSurf |
194 | //purpose : |
195 | //======================================================================= |
196 | |
197 | inline void ChFiDS_SurfData::ChangeSurf(const Standard_Integer Index) |
198 | { |
199 | indexOfConge = Index; |
200 | } |
201 | |
202 | |
203 | //======================================================================= |
204 | //function : ChangeOrientation |
205 | //purpose : |
206 | //======================================================================= |
207 | |
208 | inline TopAbs_Orientation& ChFiDS_SurfData::ChangeOrientation() |
209 | { |
210 | return orientation; |
211 | } |
212 | |
213 | //======================================================================= |
214 | //function : ChangeInterferenceOnS1 |
215 | //purpose : |
216 | //======================================================================= |
217 | |
218 | inline ChFiDS_FaceInterference& ChFiDS_SurfData::ChangeInterferenceOnS1() |
219 | { |
220 | return intf1; |
221 | } |
222 | |
223 | |
224 | //======================================================================= |
225 | //function : ChangeInterferenceOnS2 |
226 | //purpose : |
227 | //======================================================================= |
228 | |
229 | inline ChFiDS_FaceInterference& ChFiDS_SurfData::ChangeInterferenceOnS2() |
230 | { |
231 | return intf2; |
232 | } |
233 | |
234 | |
235 | //======================================================================= |
236 | //function : ChangeVertexFirstOnS1 |
237 | //purpose : |
238 | //======================================================================= |
239 | |
240 | inline ChFiDS_CommonPoint& ChFiDS_SurfData::ChangeVertexFirstOnS1() |
241 | { |
242 | return pfirstOnS1; |
243 | } |
244 | |
245 | //======================================================================= |
246 | //function : ChangeVertexLastOnS1 |
247 | //purpose : |
248 | //======================================================================= |
249 | |
250 | inline ChFiDS_CommonPoint& ChFiDS_SurfData::ChangeVertexLastOnS1() |
251 | { |
252 | return plastOnS1; |
253 | } |
254 | |
255 | //======================================================================= |
256 | //function : ChangeVertexFirstOnS2 |
257 | //purpose : |
258 | //======================================================================= |
259 | |
260 | inline ChFiDS_CommonPoint& ChFiDS_SurfData::ChangeVertexFirstOnS2() |
261 | { |
262 | return pfirstOnS2; |
263 | } |
264 | |
265 | //======================================================================= |
266 | //function : ChangeVertexLastOnS2 |
267 | //purpose : |
268 | //======================================================================= |
269 | |
270 | inline ChFiDS_CommonPoint& ChFiDS_SurfData::ChangeVertexLastOnS2() |
271 | { |
272 | return plastOnS2; |
273 | } |
274 | |
275 | //======================================================================= |
276 | //function : IsOnCurve |
277 | //purpose : |
278 | //======================================================================= |
279 | |
280 | inline Standard_Boolean ChFiDS_SurfData::IsOnCurve(const Standard_Integer OnS) const |
281 | { |
282 | if(OnS == 1) return isoncurv1; |
283 | return isoncurv2; |
284 | } |
285 | |
286 | //======================================================================= |
287 | //function : IndexOfC |
288 | //purpose : |
289 | //======================================================================= |
290 | |
291 | inline Standard_Integer ChFiDS_SurfData::IndexOfC(const Standard_Integer OnS) const |
292 | { |
293 | if(OnS == 1) { |
294 | if(!isoncurv1) Standard_Failure::Raise("Interference pas sur courbe"); |
295 | return indexOfC1; |
296 | } |
297 | if(!isoncurv2) Standard_Failure::Raise("Interference pas sur courbe"); |
298 | return indexOfC2; |
299 | } |
300 | |
301 | //======================================================================= |
302 | //function : Twist |
303 | //purpose : |
304 | //======================================================================= |
305 | |
306 | inline Standard_Boolean ChFiDS_SurfData::TwistOnS1() const |
307 | { |
308 | return twistons1; |
309 | } |
310 | inline Standard_Boolean ChFiDS_SurfData::TwistOnS2() const |
311 | { |
312 | return twistons2; |
313 | } |
314 | inline void ChFiDS_SurfData::TwistOnS1(const Standard_Boolean T) |
315 | { |
316 | twistons1 = T; |
317 | } |
318 | inline void ChFiDS_SurfData::TwistOnS2(const Standard_Boolean T) |
319 | { |
320 | twistons2 = T; |
321 | } |
322 | |