4e57c75e |
1 | -- Created by: Peter KURNEV |
2 | -- Copyright (c) 1999-2012 OPEN CASCADE SAS |
3 | -- |
4 | -- The content of this file is subject to the Open CASCADE Technology Public |
5 | -- License Version 6.5 (the "License"). You may not use the content of this file |
6 | -- except in compliance with the License. Please obtain a copy of the License |
7 | -- at http://www.opencascade.org and read it completely before using this file. |
8 | -- |
9 | -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its |
10 | -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. |
11 | -- |
12 | -- The Original Code and all software distributed under the License is |
13 | -- distributed on an "AS IS" basis, without warranty of any kind, and the |
14 | -- Initial Developer hereby disclaims all such warranties, including without |
15 | -- limitation, any warranties of merchantability, fitness for a particular |
16 | -- purpose or non-infringement. Please see the License for the specific terms |
17 | -- and conditions governing the rights and limitations under the License. |
18 | |
19 | class EdgeSet from BOPTools |
20 | |
21 | |
22 | uses |
23 | Shape from TopoDS, |
24 | Edge from TopoDS, |
25 | ShapeEnum from TopAbs, |
26 | BaseAllocator from BOPCol, |
27 | MapOfShape from BOPCol, |
28 | ListOfShape from BOPCol |
29 | |
30 | --raises |
31 | |
32 | is |
33 | Create |
34 | returns EdgeSet from BOPTools; |
35 | ---C++: alias "virtual ~BOPTools_EdgeSet();" |
36 | ---C++: inline |
37 | |
38 | Create (theAllocator: BaseAllocator from BOPCol) |
39 | returns EdgeSet from BOPTools; |
40 | ---C++: inline |
41 | |
42 | SetShape(me:out; |
43 | theS:Shape from TopoDS); |
44 | ---C++: inline |
45 | |
46 | Shape(me) |
47 | returns Shape from TopoDS; |
48 | ---C++: return const & |
49 | ---C++: inline |
50 | |
51 | AddEdge(me:out; |
52 | theEdge:Edge from TopoDS); |
53 | ---C++: inline |
54 | |
55 | AddEdges(me:out; |
56 | theLS:ListOfShape from BOPCol); |
57 | |
58 | AddEdges(me:out; |
59 | theFace:Shape from TopoDS); |
60 | ---C++: inline |
61 | |
62 | Clear(me:out); |
63 | ---C++: inline |
64 | |
65 | Get(me; |
66 | theLS:out ListOfShape from BOPCol); |
67 | ---C++: inline |
68 | |
69 | Contains(me; |
70 | theSet:EdgeSet from BOPTools) |
71 | returns Boolean from Standard; |
72 | ---C++: inline |
73 | |
74 | |
75 | fields |
76 | myShape : Shape from TopoDS is protected; |
77 | myMap : MapOfShape from BOPCol is protected; |
78 | myEdges : ListOfShape from BOPCol is protected; |
79 | |
80 | end EdgeSet; |