-- File: TNaming_ShapesSet.cdl -- Created: Thu Jan 9 08:26:45 1997 -- Author: Yves FRICAUD -- ---Copyright: Matra Datavision 1997 private class ShapesSet from TNaming ---Purpose: uses Shape from TopoDS, ShapeEnum from TopAbs, MapOfShape from TopTools is Create returns ShapesSet from TNaming; ---C++: inline Create (S : Shape from TopoDS; Type : ShapeEnum from TopAbs = TopAbs_SHAPE) returns ShapesSet from TNaming; ---Category: Modification Clear(me : in out) ---Level: Public ---Purpose: Removes all Shapes ---C++: inline is static; Add(me : in out; S : Shape from TopoDS) returns Boolean ---Level: Public ---Purpose: Adds the Shape ---C++: inline is static; Contains(me; S : Shape ) returns Boolean ---Level: Public ---Purpose: Returns True if is in ---C++: inline is static; Remove(me : in out; S : Shape ) returns Boolean ---Level: Public ---Purpose: Removes in . ---C++: inline is static; -- Modification with an other ShapesSet-- Add (me : in out; Shapes : ShapesSet from TNaming); ---Purpose: Adds the shapes contained in . Filter (me : in out; Shapes : ShapesSet from TNaming); ---Purpose: Erases in the shapes not -- contained in Remove (me : in out; Shapes : ShapesSet from TNaming); ---Purpose: Removes in the shapes contained in ---Category: Querying IsEmpty(me) returns Boolean from Standard; ---C++: inline NbShapes (me) returns Integer from Standard; ---C++: inline ChangeMap(me: in out) returns MapOfShape from TopTools; ---C++: return & ---C++: inline Map(me) returns MapOfShape from TopTools; ---C++: return const& ---C++: inline fields myMap : MapOfShape from TopTools; end ShapesSet;