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