b311480e |
1 | // Created on: 1994-03-09 |
2 | // Created by: Isabelle GRIGNON |
3 | // Copyright (c) 1994-1999 Matra Datavision |
4 | // Copyright (c) 1999-2012 OPEN CASCADE SAS |
5 | // |
6 | // The content of this file is subject to the Open CASCADE Technology Public |
7 | // License Version 6.5 (the "License"). You may not use the content of this file |
8 | // except in compliance with the License. Please obtain a copy of the License |
9 | // at http://www.opencascade.org and read it completely before using this file. |
10 | // |
11 | // The Initial Developer of the Original Code is Open CASCADE S.A.S., having its |
12 | // main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. |
13 | // |
14 | // The Original Code and all software distributed under the License is |
15 | // distributed on an "AS IS" basis, without warranty of any kind, and the |
16 | // Initial Developer hereby disclaims all such warranties, including without |
17 | // limitation, any warranties of merchantability, fitness for a particular |
18 | // purpose or non-infringement. Please see the License for the specific terms |
19 | // and conditions governing the rights and limitations under the License. |
20 | |
7fd59977 |
21 | |
22 | |
23 | //======================================================================= |
24 | //function : SetOfSurfData |
25 | //purpose : |
26 | //======================================================================= |
b311480e |
27 | |
7fd59977 |
28 | inline const Handle(ChFiDS_HData)& ChFiDS_Stripe::SetOfSurfData() const |
29 | { |
30 | return myHdata; |
31 | } |
32 | |
33 | //======================================================================= |
34 | //function : Spine |
35 | //purpose : |
36 | //======================================================================= |
37 | |
38 | inline const Handle(ChFiDS_Spine)& ChFiDS_Stripe::Spine() const |
39 | { |
40 | return mySpine; |
41 | } |
42 | |
43 | //======================================================================= |
44 | //function : OrientationOnFace1 |
45 | //purpose : |
46 | //======================================================================= |
47 | |
48 | inline TopAbs_Orientation ChFiDS_Stripe::OrientationOnFace1() const |
49 | { |
50 | return myOr1; |
51 | } |
52 | |
53 | //======================================================================= |
54 | //function : OrientationOnFace2 |
55 | //purpose : |
56 | //======================================================================= |
57 | |
58 | inline TopAbs_Orientation ChFiDS_Stripe::OrientationOnFace2() const |
59 | { |
60 | return myOr2; |
61 | } |
62 | |
63 | //======================================================================= |
64 | //function : Choix |
65 | //purpose : |
66 | //======================================================================= |
67 | |
68 | inline Standard_Integer ChFiDS_Stripe::Choix() const |
69 | { |
70 | return myChoix; |
71 | } |
72 | |
73 | //======================================================================= |
74 | //function : ChangeSetOfSurfData |
75 | //purpose : |
76 | //======================================================================= |
77 | |
78 | inline Handle(ChFiDS_HData)& ChFiDS_Stripe::ChangeSetOfSurfData() |
79 | { |
80 | return myHdata; |
81 | } |
82 | |
83 | //======================================================================= |
84 | //function : ChangeSpine |
85 | //purpose : |
86 | //======================================================================= |
87 | |
88 | inline Handle(ChFiDS_Spine)& ChFiDS_Stripe::ChangeSpine() |
89 | { |
90 | return mySpine; |
91 | } |
92 | |
93 | //======================================================================= |
94 | //function : OrientationOnFace1 |
95 | //purpose : |
96 | //======================================================================= |
97 | |
98 | inline void ChFiDS_Stripe::OrientationOnFace1(const TopAbs_Orientation Or1) |
99 | { |
100 | myOr1 = Or1; |
101 | } |
102 | |
103 | //======================================================================= |
104 | //function : OrientationOnFace2 |
105 | //purpose : |
106 | //======================================================================= |
107 | |
108 | inline void ChFiDS_Stripe::OrientationOnFace2(const TopAbs_Orientation Or2) |
109 | { |
110 | myOr2 = Or2; |
111 | } |
112 | |
113 | |
114 | //======================================================================= |
115 | //function : Choix |
116 | //purpose : |
117 | //======================================================================= |
118 | |
119 | inline void ChFiDS_Stripe::Choix(const Standard_Integer C) |
120 | { |
121 | myChoix = C; |
122 | } |
123 | |
124 | //======================================================================= |
125 | //function : FirstParameters |
126 | //purpose : |
127 | //======================================================================= |
128 | |
129 | inline void ChFiDS_Stripe::FirstParameters(Standard_Real& Pdeb, |
130 | Standard_Real& Pfin) const |
131 | { |
132 | Pdeb = pardeb1; |
133 | Pfin = parfin1; |
134 | } |
135 | |
136 | //======================================================================= |
137 | //function : lastParameters |
138 | //purpose : |
139 | //======================================================================= |
140 | |
141 | inline void ChFiDS_Stripe::LastParameters(Standard_Real& Pdeb, |
142 | Standard_Real& Pfin) const |
143 | { |
144 | Pdeb = pardeb2; |
145 | Pfin = parfin2; |
146 | } |
147 | |
148 | |
149 | //======================================================================= |
150 | //function : ChangeFirstParameters |
151 | //purpose : |
152 | //======================================================================= |
153 | |
154 | inline void ChFiDS_Stripe::ChangeFirstParameters(const Standard_Real Pdeb, |
155 | const Standard_Real Pfin) |
156 | { |
157 | pardeb1 = Pdeb; |
158 | parfin1 = Pfin; |
159 | } |
160 | |
161 | //======================================================================= |
162 | //function : ChangeLastParameters |
163 | //purpose : |
164 | //======================================================================= |
165 | |
166 | inline void ChFiDS_Stripe::ChangeLastParameters(const Standard_Real Pdeb, |
167 | const Standard_Real Pfin) |
168 | { |
169 | pardeb2 = Pdeb; |
170 | parfin2 = Pfin; |
171 | } |
172 | |
173 | //======================================================================= |
174 | //function : FirstCurve |
175 | //purpose : |
176 | //======================================================================= |
177 | |
178 | inline Standard_Integer ChFiDS_Stripe::FirstCurve()const |
179 | { |
180 | return indexOfcurve1; |
181 | } |
182 | |
183 | //======================================================================= |
184 | //function : LastCurve |
185 | //purpose : |
186 | //======================================================================= |
187 | |
188 | inline Standard_Integer ChFiDS_Stripe::LastCurve()const |
189 | { |
190 | return indexOfcurve2; |
191 | } |
192 | |
193 | //======================================================================= |
194 | //function : ChangeFirstCurve |
195 | //purpose : |
196 | //======================================================================= |
197 | |
198 | inline void ChFiDS_Stripe::ChangeFirstCurve(const Standard_Integer Index) |
199 | { |
200 | indexOfcurve1 = Index; |
201 | } |
202 | |
203 | //======================================================================= |
204 | //function : ChangeLastCurve |
205 | //purpose : |
206 | //======================================================================= |
207 | |
208 | inline void ChFiDS_Stripe::ChangeLastCurve(const Standard_Integer Index) |
209 | { |
210 | indexOfcurve2 = Index; |
211 | } |
212 | |
213 | //======================================================================= |
214 | //function : FirstPCurve |
215 | //purpose : |
216 | //======================================================================= |
217 | |
218 | inline const Handle(Geom2d_Curve)& ChFiDS_Stripe::FirstPCurve()const |
219 | { |
220 | return pcrv1; |
221 | } |
222 | |
223 | //======================================================================= |
224 | //function : LastPCurve |
225 | //purpose : |
226 | //======================================================================= |
227 | |
228 | inline const Handle(Geom2d_Curve)& ChFiDS_Stripe::LastPCurve()const |
229 | { |
230 | return pcrv2; |
231 | } |
232 | |
233 | //======================================================================= |
234 | //function : ChangeFirstPCurve |
235 | //purpose : |
236 | //======================================================================= |
237 | |
238 | inline Handle(Geom2d_Curve)& ChFiDS_Stripe::ChangeFirstPCurve() |
239 | { |
240 | return pcrv1; |
241 | } |
242 | |
243 | //======================================================================= |
244 | //function : ChangeLastPCurve |
245 | //purpose : |
246 | //======================================================================= |
247 | |
248 | inline Handle(Geom2d_Curve)& ChFiDS_Stripe::ChangeLastPCurve() |
249 | { |
250 | return pcrv2; |
251 | } |
252 | |
253 | //======================================================================= |
254 | //function : IndexFirstPointOnS1 |
255 | //purpose : |
256 | //======================================================================= |
257 | |
258 | inline Standard_Integer ChFiDS_Stripe::IndexFirstPointOnS1() const |
259 | { |
260 | return indexfirstPOnS1; |
261 | } |
262 | |
263 | //======================================================================= |
264 | //function : IndexLastPointOnS1 |
265 | //purpose : |
266 | //======================================================================= |
267 | |
268 | inline Standard_Integer ChFiDS_Stripe::IndexLastPointOnS1() const |
269 | { |
270 | return indexlastPOnS1; |
271 | } |
272 | |
273 | //======================================================================= |
274 | //function : IndexFirstPointOnS2 |
275 | //purpose : |
276 | //======================================================================= |
277 | |
278 | inline Standard_Integer ChFiDS_Stripe::IndexFirstPointOnS2() const |
279 | { |
280 | return indexfirstPOnS2; |
281 | } |
282 | |
283 | //======================================================================= |
284 | //function : IndexLastPointOnS2 |
285 | //purpose : |
286 | //======================================================================= |
287 | |
288 | inline Standard_Integer ChFiDS_Stripe::IndexLastPointOnS2() const |
289 | { |
290 | return indexlastPOnS2; |
291 | } |
292 | |
293 | |
294 | //======================================================================= |
295 | //function : ChangeIndexFirstPointOnS1 |
296 | //purpose : |
297 | //======================================================================= |
298 | |
299 | inline void ChFiDS_Stripe::ChangeIndexFirstPointOnS1 |
300 | (const Standard_Integer Index) |
301 | { |
302 | indexfirstPOnS1 = Index; |
303 | } |
304 | |
305 | //======================================================================= |
306 | //function : ChangeIndexLastPointOnS1 |
307 | //purpose : |
308 | //======================================================================= |
309 | |
310 | inline void ChFiDS_Stripe::ChangeIndexLastPointOnS1 |
311 | (const Standard_Integer Index) |
312 | { |
313 | indexlastPOnS1 = Index; |
314 | } |
315 | |
316 | |
317 | //======================================================================= |
318 | //function : ChangeIndexFirstPointOnS2 |
319 | //purpose : |
320 | //======================================================================= |
321 | |
322 | inline void ChFiDS_Stripe::ChangeIndexFirstPointOnS2 |
323 | (const Standard_Integer Index) |
324 | { |
325 | indexfirstPOnS2 = Index; |
326 | } |
327 | |
328 | //======================================================================= |
329 | //function : ChangeIndexLastPointOnS2 |
330 | //purpose : |
331 | //======================================================================= |
332 | |
333 | inline void ChFiDS_Stripe::ChangeIndexLastPointOnS2 |
334 | (const Standard_Integer Index) |
335 | { |
336 | indexlastPOnS2 = Index; |
337 | } |
338 | |
339 | //======================================================================= |
340 | //function : FirstPCurveOrientation |
341 | //purpose : |
342 | //======================================================================= |
343 | |
344 | inline TopAbs_Orientation ChFiDS_Stripe::FirstPCurveOrientation()const |
345 | { |
346 | return orcurv1; |
347 | } |
348 | |
349 | //======================================================================= |
350 | //function : LastPCurveOrientation |
351 | //purpose : |
352 | //======================================================================= |
353 | |
354 | inline TopAbs_Orientation ChFiDS_Stripe::LastPCurveOrientation()const |
355 | { |
356 | return orcurv2; |
357 | } |
358 | |
359 | |
360 | //======================================================================= |
361 | //function : FirstPCurveOrientation |
362 | //purpose : |
363 | //======================================================================= |
364 | |
365 | inline void ChFiDS_Stripe::FirstPCurveOrientation |
366 | (const TopAbs_Orientation O) |
367 | { |
368 | orcurv1 = O; |
369 | } |
370 | |
371 | |
372 | //======================================================================= |
373 | //function : LastPCurveOrientation |
374 | //purpose : |
375 | //======================================================================= |
376 | |
377 | inline void ChFiDS_Stripe::LastPCurveOrientation |
378 | (const TopAbs_Orientation O) |
379 | { |
380 | orcurv2 = O; |
381 | } |
382 | |
383 | |