7fd59977 |
1 | -- File: BRepMAT2d_LinkTopoBilo.cdl |
2 | -- Created: Fri Oct 7 14:30:11 1994 |
3 | -- Author: Yves FRICAUD |
4 | -- <yfr@nonox> |
5 | ---Copyright: Matra Datavision 1994 |
6 | |
7 | |
8 | |
9 | class LinkTopoBilo from BRepMAT2d |
10 | |
11 | ---Purpose:Constucts links between the Face of the explorer and |
12 | -- the BasicElts contained in the bisecting locus. |
13 | |
14 | uses |
15 | Shape from TopoDS, |
16 | Wire from TopoDS, |
17 | Explorer from BRepMAT2d, |
18 | DataMapOfShapeSequenceOfBasicElt from BRepMAT2d, |
19 | DataMapOfBasicEltShape from BRepMAT2d, |
20 | BisectingLocus from BRepMAT2d, |
21 | BasicElt from MAT |
22 | |
23 | raises |
24 | ConstructionError from Standard |
25 | |
26 | is |
27 | |
28 | Create returns LinkTopoBilo from BRepMAT2d; |
29 | |
30 | Create( Explo : Explorer from BRepMAT2d; |
31 | BiLo : BisectingLocus from BRepMAT2d) |
32 | returns LinkTopoBilo from BRepMAT2d |
33 | ---Purpose: Constructs the links Between S and BiLo. |
34 | -- |
35 | raises |
36 | ConstructionError from Standard; |
37 | ---Purpose: raises if <S> is not a face. |
38 | |
39 | |
40 | Perform( me : in out; |
41 | Explo : Explorer from BRepMAT2d; |
42 | BiLo : BisectingLocus from BRepMAT2d) |
43 | ---Purpose: Constructs the links Between S and BiLo. |
44 | -- |
45 | raises |
46 | ConstructionError from Standard |
47 | ---Purpose: raises if <S> is not a face or a wire. |
48 | is static; |
49 | |
50 | |
51 | Init (me : in out; S : Shape from TopoDS) |
52 | ---Purpose: Initialise the Iterator on <S> |
53 | -- <S> is an edge or a vertex of the initial |
54 | -- wire or face. |
55 | raises |
56 | ConstructionError from Standard |
57 | ---Purpose: raises if <S> is not an edge or a vertex. |
58 | is static; |
59 | |
60 | |
61 | More (me : in out) returns Boolean from Standard |
62 | ---Purpose: Returns True if there is a current BasicElt. |
63 | is static; |
64 | |
65 | |
66 | Next (me : in out) |
67 | ---Purpose: Proceed to the next BasicElt. |
68 | is static; |
69 | |
70 | |
71 | Value(me) returns BasicElt from MAT |
72 | ---Purpose: Returns the current BasicElt. |
73 | is static; |
74 | |
75 | GeneratingShape (me ; aBE : BasicElt from MAT) |
76 | ---Purpose: Returns the Shape linked to <aBE>. |
77 | returns Shape from TopoDS |
78 | is static; |
79 | |
80 | LinkToWire (me : in out; |
81 | W : Wire from TopoDS; |
82 | Explo : Explorer from BRepMAT2d; |
83 | IndexContour : Integer from Standard; |
84 | BiLo : BisectingLocus from BRepMAT2d) |
85 | is static private; |
86 | |
87 | |
88 | fields |
89 | myMap : DataMapOfShapeSequenceOfBasicElt from BRepMAT2d; |
90 | myBEShape : DataMapOfBasicEltShape from BRepMAT2d; |
91 | myKey : Shape from TopoDS; |
92 | current : Integer from Standard; |
93 | isEmpty : Boolean from Standard; |
94 | |
95 | end ; |
96 | |
97 | |
98 | |