b311480e |
1 | -- Created on: 1994-12-16 |
2 | -- Created by: Laurent BUCHARD |
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 | -- Modified by skv - Fri Jul 14 16:46:18 2006 OCC12627 |
18 | |
19 | |
0b85f9a6 |
20 | class Elements from Geom2dHatch |
21 | |
7fd59977 |
22 | |
23 | uses |
24 | Orientation from TopAbs, |
25 | Lin2d from gp, |
0b85f9a6 |
26 | Pnt2d from gp, |
27 | Integer from Standard, |
28 | Element from Geom2dHatch, |
29 | MapIntegerHasher from TColStd, |
30 | Curve from Geom2dAdaptor, |
31 | MapOfElements from Geom2dHatch, |
32 | DataMapIteratorOfMapOfElements from Geom2dHatch |
7fd59977 |
33 | |
34 | raises |
35 | DomainError from Standard, |
36 | NoSuchObject from Standard |
37 | |
38 | |
7fd59977 |
39 | is |
40 | |
41 | Create |
0b85f9a6 |
42 | returns Elements from Geom2dHatch; |
7fd59977 |
43 | |
0b85f9a6 |
44 | Create(Other : Elements from Geom2dHatch) |
45 | returns Elements from Geom2dHatch; |
7fd59977 |
46 | |
47 | |
48 | |
49 | ---------------------------------------------------------------------- |
50 | -- E m u l a t i o n o f D a t a M a p |
51 | -- |
52 | -- f r o m T C o l l e c t i o n |
53 | ---------------------------------------------------------------------- |
54 | Clear(me : in out) |
55 | ---C++: alias ~ |
56 | is static; |
57 | |
0b85f9a6 |
58 | Bind(me : in out; K : Integer from Standard; I : Element from Geom2dHatch) returns Boolean |
7fd59977 |
59 | is static; |
60 | |
0b85f9a6 |
61 | IsBound(me; K : Integer from Standard) returns Boolean |
7fd59977 |
62 | is static; |
63 | |
0b85f9a6 |
64 | UnBind(me : in out; K : Integer from Standard) returns Boolean |
7fd59977 |
65 | is static; |
66 | |
0b85f9a6 |
67 | Find(me; K : Integer from Standard) returns any Element from Geom2dHatch |
7fd59977 |
68 | raises NoSuchObject from Standard -- when <K> is not in the map. |
69 | ---C++: alias operator() |
70 | ---C++: return const & |
71 | is static; |
72 | |
0b85f9a6 |
73 | ChangeFind(me : in out; K : Integer from Standard) returns any Element from Geom2dHatch |
7fd59977 |
74 | raises NoSuchObject from Standard -- when <K> is not in the map. |
75 | ---C++: alias operator() |
76 | ---C++: return & |
77 | is static; |
78 | |
79 | ---------------------------------------------------------------------- |
80 | -- M e t h o d s u s e d b y t h e C l a s s i f i e r |
81 | -- |
82 | -- see BRepClass_FaceExplorer for the Purposes |
83 | ---------------------------------------------------------------------- |
84 | |
85 | Reject(me; P : Pnt2d from gp) |
86 | returns Boolean from Standard |
87 | is static; |
88 | |
89 | -- Modified by skv - Fri Jul 14 16:46:18 2006 OCC12627 Begin |
90 | Segment(me: in out; P : Pnt2d from gp; |
91 | L : out Lin2d from gp; |
92 | Par : out Real) |
93 | returns Boolean from Standard |
94 | is static; |
95 | |
96 | OtherSegment(me: in out; P : Pnt2d from gp; |
97 | L : out Lin2d from gp; |
98 | Par : out Real) |
99 | returns Boolean from Standard |
100 | is static; |
101 | |
102 | -- Modified by skv - Fri Jul 14 16:46:18 2006 OCC12627 End |
103 | |
104 | InitWires(me : in out) |
105 | is static; |
106 | |
107 | MoreWires(me) returns |
108 | Boolean from Standard |
109 | is static; |
110 | |
111 | NextWire(me : in out) |
112 | is static; |
113 | |
114 | RejectWire(me; L : Lin2d from gp; |
115 | Par : Real from Standard) |
116 | returns Boolean from Standard |
117 | is static; |
118 | |
119 | InitEdges(me : in out) |
120 | is static; |
121 | |
122 | MoreEdges(me) |
123 | returns Boolean from Standard |
124 | is static; |
125 | |
126 | NextEdge(me : in out) |
127 | is static; |
128 | |
129 | RejectEdge(me; L : Lin2d from gp; |
130 | Par : Real from Standard) |
131 | returns Boolean from Standard |
132 | is static; |
133 | |
0b85f9a6 |
134 | CurrentEdge(me; E : out Curve from Geom2dAdaptor; |
7fd59977 |
135 | Or : out Orientation from TopAbs) |
136 | is static; |
137 | |
138 | |
139 | fields |
140 | |
0b85f9a6 |
141 | myMap : MapOfElements from Geom2dHatch; |
7fd59977 |
142 | Iter : DataMapIteratorOfMapOfElements; |
143 | NumWire : Integer from Standard; |
144 | NumEdge : Integer from Standard; |
145 | myCurEdge: Integer from Standard; |
146 | |
0b85f9a6 |
147 | end Elements from Geom2dHatch; |