b311480e |
1 | -- Created on: 1997-01-09 |
2 | -- Created by: Yves FRICAUD |
3 | -- Copyright (c) 1997-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 | private class ShapesSet from TNaming |
18 | |
19 | ---Purpose: |
20 | |
21 | uses |
22 | Shape from TopoDS, |
23 | ShapeEnum from TopAbs, |
24 | MapOfShape from TopTools |
25 | |
26 | is |
27 | Create returns ShapesSet from TNaming; |
28 | ---C++: inline |
29 | |
30 | Create (S : Shape from TopoDS; |
31 | Type : ShapeEnum from TopAbs = TopAbs_SHAPE) |
32 | returns ShapesSet from TNaming; |
33 | |
34 | ---Category: Modification |
35 | |
36 | Clear(me : in out) |
37 | ---Level: Public |
38 | ---Purpose: Removes all Shapes |
39 | ---C++: inline |
40 | is static; |
41 | |
42 | Add(me : in out; S : Shape from TopoDS) returns Boolean |
43 | ---Level: Public |
44 | ---Purpose: Adds the Shape <S> |
45 | ---C++: inline |
46 | is static; |
47 | |
48 | Contains(me; S : Shape ) returns Boolean |
49 | ---Level: Public |
50 | ---Purpose: Returns True if <S> is in <me> |
51 | ---C++: inline |
52 | is static; |
53 | |
54 | Remove(me : in out; S : Shape ) returns Boolean |
55 | ---Level: Public |
56 | ---Purpose: Removes <S> in <me>. |
57 | ---C++: inline |
58 | is static; |
59 | |
60 | |
61 | -- Modification with an other ShapesSet-- |
62 | |
63 | Add (me : in out; Shapes : ShapesSet from TNaming); |
64 | ---Purpose: Adds the shapes contained in <Shapes>. |
65 | |
66 | Filter (me : in out; Shapes : ShapesSet from TNaming); |
67 | ---Purpose: Erases in <me> the shapes not |
68 | -- contained in <Shapes> |
69 | |
70 | |
71 | Remove (me : in out; Shapes : ShapesSet from TNaming); |
72 | ---Purpose: Removes in <me> the shapes contained in <Shapes> |
73 | |
74 | |
75 | ---Category: Querying |
76 | |
77 | IsEmpty(me) returns Boolean from Standard; |
78 | ---C++: inline |
79 | |
80 | NbShapes (me) returns Integer from Standard; |
81 | ---C++: inline |
82 | |
83 | ChangeMap(me: in out) returns MapOfShape from TopTools; |
84 | ---C++: return & |
85 | ---C++: inline |
86 | |
87 | Map(me) returns MapOfShape from TopTools; |
88 | ---C++: return const& |
89 | ---C++: inline |
90 | |
91 | fields |
92 | myMap : MapOfShape from TopTools; |
93 | |
94 | end ShapesSet; |
95 | |
96 | |