-- Created on: 1995-10-26 -- Created by: Yves FRICAUD -- Copyright (c) 1995-1999 Matra Datavision -- Copyright (c) 1999-2014 OPEN CASCADE SAS -- -- This file is part of Open CASCADE Technology software library. -- -- This library is free software; you can redistribute it and/or modify it under -- the terms of the GNU Lesser General Public License version 2.1 as published -- by the Free Software Foundation, with special exception defined in the file -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT -- distribution for complete text of the license and disclaimer of any warranty. -- -- Alternatively, this file may be used under the terms of Open CASCADE -- commercial license or contractual agreement. class Image from BRepAlgo ---Purpose: Stores link between a shape and a shape -- obtained from . is an image of . uses Shape from TopoDS, ShapeEnum from TopAbs, ListOfShape from TopTools, DataMapOfShapeListOfShape from TopTools, DataMapOfShapeShape from TopTools raises ConstructionError from Standard is Create; SetRoot (me : in out; S : Shape from TopoDS) is static; Bind (me : in out; OldS : Shape from TopoDS; NewS : Shape from TopoDS) ---Purpose: Links as image of . raises ConstructionError -- if Olds has image. is static; Bind (me : in out; OldS : Shape from TopoDS; NewS : ListOfShape from TopTools) ---Purpose: Links as image of . raises ConstructionError -- if Olds has image. is static; Add (me : in out; OldS : Shape from TopoDS; NewS : Shape from TopoDS) ---Purpose: Add to the image of . raises ConstructionError -- if Olds has not image. is static; Add (me : in out; OldS : Shape from TopoDS; NewS : ListOfShape from TopTools) ---Purpose: Add to the image of . raises ConstructionError -- if Olds has not image. is static; Clear(me : in out) is static; Remove(me : in out; S : Shape from TopoDS) ---Purpose: Remove to set of images. raises ConstructionError -- if S is not an image. is static; Roots (me) ---C++: return const & returns ListOfShape from TopTools is static; IsImage (me; S : Shape from TopoDS) returns Boolean from Standard is static; ImageFrom (me; S : Shape from TopoDS) ---Purpose: Returns the generator of ---C++: return const & returns Shape from TopoDS is static; Root (me; S : Shape from TopoDS) ---Purpose: Returns the upper generator of ---C++: return const & returns Shape from TopoDS is static; HasImage (me; S : Shape from TopoDS) returns Boolean from Standard is static; Image (me; S : Shape from TopoDS) ---Purpose: Returns the Image of . -- Returns in the list if HasImage(S) is false. ---C++: return const & returns ListOfShape from TopTools is static; LastImage (me; S : Shape from TopoDS; L : in out ListOfShape from TopTools) ---Purpose: Stores in the images of images of...images of . -- contains only if HasImage(S) is false. is static; Compact (me : in out) ---Purpose: Keeps only the link between roots and lastimage. is static; Filter (me : in out; S : Shape from TopoDS; ShapeType : ShapeEnum from TopAbs); ---Purpose: Deletes in the images the shape of type -- which are not in . -- Warning: Compact() must be call before. fields roots : ListOfShape from TopTools; up : DataMapOfShapeShape from TopTools; down : DataMapOfShapeListOfShape from TopTools; end Image;