b311480e |
1 | // Created on: 1994-03-09 |
2 | // Created by: Isabelle GRIGNON |
3 | // Copyright (c) 1994-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 : SetOfSurfData |
19 | //purpose : |
20 | //======================================================================= |
b311480e |
21 | |
7fd59977 |
22 | inline const Handle(ChFiDS_HData)& ChFiDS_Stripe::SetOfSurfData() const |
23 | { |
24 | return myHdata; |
25 | } |
26 | |
27 | //======================================================================= |
28 | //function : Spine |
29 | //purpose : |
30 | //======================================================================= |
31 | |
32 | inline const Handle(ChFiDS_Spine)& ChFiDS_Stripe::Spine() const |
33 | { |
34 | return mySpine; |
35 | } |
36 | |
37 | //======================================================================= |
38 | //function : OrientationOnFace1 |
39 | //purpose : |
40 | //======================================================================= |
41 | |
42 | inline TopAbs_Orientation ChFiDS_Stripe::OrientationOnFace1() const |
43 | { |
44 | return myOr1; |
45 | } |
46 | |
47 | //======================================================================= |
48 | //function : OrientationOnFace2 |
49 | //purpose : |
50 | //======================================================================= |
51 | |
52 | inline TopAbs_Orientation ChFiDS_Stripe::OrientationOnFace2() const |
53 | { |
54 | return myOr2; |
55 | } |
56 | |
57 | //======================================================================= |
58 | //function : Choix |
59 | //purpose : |
60 | //======================================================================= |
61 | |
62 | inline Standard_Integer ChFiDS_Stripe::Choix() const |
63 | { |
64 | return myChoix; |
65 | } |
66 | |
67 | //======================================================================= |
68 | //function : ChangeSetOfSurfData |
69 | //purpose : |
70 | //======================================================================= |
71 | |
72 | inline Handle(ChFiDS_HData)& ChFiDS_Stripe::ChangeSetOfSurfData() |
73 | { |
74 | return myHdata; |
75 | } |
76 | |
77 | //======================================================================= |
78 | //function : ChangeSpine |
79 | //purpose : |
80 | //======================================================================= |
81 | |
82 | inline Handle(ChFiDS_Spine)& ChFiDS_Stripe::ChangeSpine() |
83 | { |
84 | return mySpine; |
85 | } |
86 | |
87 | //======================================================================= |
88 | //function : OrientationOnFace1 |
89 | //purpose : |
90 | //======================================================================= |
91 | |
92 | inline void ChFiDS_Stripe::OrientationOnFace1(const TopAbs_Orientation Or1) |
93 | { |
94 | myOr1 = Or1; |
95 | } |
96 | |
97 | //======================================================================= |
98 | //function : OrientationOnFace2 |
99 | //purpose : |
100 | //======================================================================= |
101 | |
102 | inline void ChFiDS_Stripe::OrientationOnFace2(const TopAbs_Orientation Or2) |
103 | { |
104 | myOr2 = Or2; |
105 | } |
106 | |
107 | |
108 | //======================================================================= |
109 | //function : Choix |
110 | //purpose : |
111 | //======================================================================= |
112 | |
113 | inline void ChFiDS_Stripe::Choix(const Standard_Integer C) |
114 | { |
115 | myChoix = C; |
116 | } |
117 | |
118 | //======================================================================= |
119 | //function : FirstParameters |
120 | //purpose : |
121 | //======================================================================= |
122 | |
123 | inline void ChFiDS_Stripe::FirstParameters(Standard_Real& Pdeb, |
124 | Standard_Real& Pfin) const |
125 | { |
126 | Pdeb = pardeb1; |
127 | Pfin = parfin1; |
128 | } |
129 | |
130 | //======================================================================= |
131 | //function : lastParameters |
132 | //purpose : |
133 | //======================================================================= |
134 | |
135 | inline void ChFiDS_Stripe::LastParameters(Standard_Real& Pdeb, |
136 | Standard_Real& Pfin) const |
137 | { |
138 | Pdeb = pardeb2; |
139 | Pfin = parfin2; |
140 | } |
141 | |
142 | |
143 | //======================================================================= |
144 | //function : ChangeFirstParameters |
145 | //purpose : |
146 | //======================================================================= |
147 | |
148 | inline void ChFiDS_Stripe::ChangeFirstParameters(const Standard_Real Pdeb, |
149 | const Standard_Real Pfin) |
150 | { |
151 | pardeb1 = Pdeb; |
152 | parfin1 = Pfin; |
153 | } |
154 | |
155 | //======================================================================= |
156 | //function : ChangeLastParameters |
157 | //purpose : |
158 | //======================================================================= |
159 | |
160 | inline void ChFiDS_Stripe::ChangeLastParameters(const Standard_Real Pdeb, |
161 | const Standard_Real Pfin) |
162 | { |
163 | pardeb2 = Pdeb; |
164 | parfin2 = Pfin; |
165 | } |
166 | |
167 | //======================================================================= |
168 | //function : FirstCurve |
169 | //purpose : |
170 | //======================================================================= |
171 | |
172 | inline Standard_Integer ChFiDS_Stripe::FirstCurve()const |
173 | { |
174 | return indexOfcurve1; |
175 | } |
176 | |
177 | //======================================================================= |
178 | //function : LastCurve |
179 | //purpose : |
180 | //======================================================================= |
181 | |
182 | inline Standard_Integer ChFiDS_Stripe::LastCurve()const |
183 | { |
184 | return indexOfcurve2; |
185 | } |
186 | |
187 | //======================================================================= |
188 | //function : ChangeFirstCurve |
189 | //purpose : |
190 | //======================================================================= |
191 | |
192 | inline void ChFiDS_Stripe::ChangeFirstCurve(const Standard_Integer Index) |
193 | { |
194 | indexOfcurve1 = Index; |
195 | } |
196 | |
197 | //======================================================================= |
198 | //function : ChangeLastCurve |
199 | //purpose : |
200 | //======================================================================= |
201 | |
202 | inline void ChFiDS_Stripe::ChangeLastCurve(const Standard_Integer Index) |
203 | { |
204 | indexOfcurve2 = Index; |
205 | } |
206 | |
207 | //======================================================================= |
208 | //function : FirstPCurve |
209 | //purpose : |
210 | //======================================================================= |
211 | |
212 | inline const Handle(Geom2d_Curve)& ChFiDS_Stripe::FirstPCurve()const |
213 | { |
214 | return pcrv1; |
215 | } |
216 | |
217 | //======================================================================= |
218 | //function : LastPCurve |
219 | //purpose : |
220 | //======================================================================= |
221 | |
222 | inline const Handle(Geom2d_Curve)& ChFiDS_Stripe::LastPCurve()const |
223 | { |
224 | return pcrv2; |
225 | } |
226 | |
227 | //======================================================================= |
228 | //function : ChangeFirstPCurve |
229 | //purpose : |
230 | //======================================================================= |
231 | |
232 | inline Handle(Geom2d_Curve)& ChFiDS_Stripe::ChangeFirstPCurve() |
233 | { |
234 | return pcrv1; |
235 | } |
236 | |
237 | //======================================================================= |
238 | //function : ChangeLastPCurve |
239 | //purpose : |
240 | //======================================================================= |
241 | |
242 | inline Handle(Geom2d_Curve)& ChFiDS_Stripe::ChangeLastPCurve() |
243 | { |
244 | return pcrv2; |
245 | } |
246 | |
247 | //======================================================================= |
248 | //function : IndexFirstPointOnS1 |
249 | //purpose : |
250 | //======================================================================= |
251 | |
252 | inline Standard_Integer ChFiDS_Stripe::IndexFirstPointOnS1() const |
253 | { |
254 | return indexfirstPOnS1; |
255 | } |
256 | |
257 | //======================================================================= |
258 | //function : IndexLastPointOnS1 |
259 | //purpose : |
260 | //======================================================================= |
261 | |
262 | inline Standard_Integer ChFiDS_Stripe::IndexLastPointOnS1() const |
263 | { |
264 | return indexlastPOnS1; |
265 | } |
266 | |
267 | //======================================================================= |
268 | //function : IndexFirstPointOnS2 |
269 | //purpose : |
270 | //======================================================================= |
271 | |
272 | inline Standard_Integer ChFiDS_Stripe::IndexFirstPointOnS2() const |
273 | { |
274 | return indexfirstPOnS2; |
275 | } |
276 | |
277 | //======================================================================= |
278 | //function : IndexLastPointOnS2 |
279 | //purpose : |
280 | //======================================================================= |
281 | |
282 | inline Standard_Integer ChFiDS_Stripe::IndexLastPointOnS2() const |
283 | { |
284 | return indexlastPOnS2; |
285 | } |
286 | |
287 | |
288 | //======================================================================= |
289 | //function : ChangeIndexFirstPointOnS1 |
290 | //purpose : |
291 | //======================================================================= |
292 | |
293 | inline void ChFiDS_Stripe::ChangeIndexFirstPointOnS1 |
294 | (const Standard_Integer Index) |
295 | { |
296 | indexfirstPOnS1 = Index; |
297 | } |
298 | |
299 | //======================================================================= |
300 | //function : ChangeIndexLastPointOnS1 |
301 | //purpose : |
302 | //======================================================================= |
303 | |
304 | inline void ChFiDS_Stripe::ChangeIndexLastPointOnS1 |
305 | (const Standard_Integer Index) |
306 | { |
307 | indexlastPOnS1 = Index; |
308 | } |
309 | |
310 | |
311 | //======================================================================= |
312 | //function : ChangeIndexFirstPointOnS2 |
313 | //purpose : |
314 | //======================================================================= |
315 | |
316 | inline void ChFiDS_Stripe::ChangeIndexFirstPointOnS2 |
317 | (const Standard_Integer Index) |
318 | { |
319 | indexfirstPOnS2 = Index; |
320 | } |
321 | |
322 | //======================================================================= |
323 | //function : ChangeIndexLastPointOnS2 |
324 | //purpose : |
325 | //======================================================================= |
326 | |
327 | inline void ChFiDS_Stripe::ChangeIndexLastPointOnS2 |
328 | (const Standard_Integer Index) |
329 | { |
330 | indexlastPOnS2 = Index; |
331 | } |
332 | |
333 | //======================================================================= |
334 | //function : FirstPCurveOrientation |
335 | //purpose : |
336 | //======================================================================= |
337 | |
338 | inline TopAbs_Orientation ChFiDS_Stripe::FirstPCurveOrientation()const |
339 | { |
340 | return orcurv1; |
341 | } |
342 | |
343 | //======================================================================= |
344 | //function : LastPCurveOrientation |
345 | //purpose : |
346 | //======================================================================= |
347 | |
348 | inline TopAbs_Orientation ChFiDS_Stripe::LastPCurveOrientation()const |
349 | { |
350 | return orcurv2; |
351 | } |
352 | |
353 | |
354 | //======================================================================= |
355 | //function : FirstPCurveOrientation |
356 | //purpose : |
357 | //======================================================================= |
358 | |
359 | inline void ChFiDS_Stripe::FirstPCurveOrientation |
360 | (const TopAbs_Orientation O) |
361 | { |
362 | orcurv1 = O; |
363 | } |
364 | |
365 | |
366 | //======================================================================= |
367 | //function : LastPCurveOrientation |
368 | //purpose : |
369 | //======================================================================= |
370 | |
371 | inline void ChFiDS_Stripe::LastPCurveOrientation |
372 | (const TopAbs_Orientation O) |
373 | { |
374 | orcurv2 = O; |
375 | } |
376 | |
377 | |