-- Created on: 1993-07-19 -- Created by: Remi LEQUETTE -- Copyright (c) 1993-1999 Matra Datavision -- Copyright (c) 1999-2012 OPEN CASCADE SAS -- -- The content of this file is subject to the Open CASCADE Technology Public -- License Version 6.5 (the "License"). You may not use the content of this file -- except in compliance with the License. Please obtain a copy of the License -- at http://www.opencascade.org and read it completely before using this file. -- -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. -- -- The Original Code and all software distributed under the License is -- distributed on an "AS IS" basis, without warranty of any kind, and the -- Initial Developer hereby disclaims all such warranties, including without -- limitation, any warranties of merchantability, fitness for a particular -- purpose or non-infringement. Please see the License for the specific terms -- and conditions governing the rights and limitations under the License. class ShapeSet from BRepTools inherits ShapeSet from TopTools ---Purpose: Contains a Shape and all its subshapes, locations -- and geometries. -- -- The topology is inherited from TopTools. uses Shape from TopoDS, Builder from BRep, ShapeEnum from TopAbs, SurfaceSet from GeomTools, CurveSet from GeomTools, Curve2dSet from GeomTools, IndexedMapOfTransient from TColStd is Create(isWithTriangles: Boolean from Standard = Standard_True) returns ShapeSet from BRepTools; ---Purpose: Builds an empty ShapeSet. -- Parameter is added for XML Persistence Create(B : Builder from BRep; isWithTriangles: Boolean from Standard = Standard_True) returns ShapeSet from BRepTools; ---Purpose: Builds an empty ShapeSet. -- Parameter is added for XML Persistence Clear(me : in out) ---Purpose: Clears the content of the set. is redefined; AddGeometry(me : in out; S : Shape from TopoDS) ---Purpose: Stores the goemetry of . is redefined; DumpGeometry(me; OS : in out OStream) ---Purpose: Dumps the geometry of me on the stream . is redefined; WriteGeometry(me : in out; OS : in out OStream) ---Purpose: Writes the geometry of me on the stream in a -- format that can be read back by Read. is redefined; ReadGeometry(me : in out; IS : in out IStream) ---Purpose: Reads the geometry of me from the stream . is redefined; DumpGeometry(me; S : Shape from TopoDS; OS : in out OStream) ---Purpose: Dumps the geometry of on the stream . is redefined; WriteGeometry(me; S : Shape from TopoDS; OS : in out OStream) ---Purpose: Writes the geometry of on the stream in a -- format that can be read back by Read. is redefined; ReadGeometry(me : in out; T : ShapeEnum from TopAbs; IS : in out IStream; S : out Shape from TopoDS) ---Purpose: Reads the geometry of a shape of type from the -- stream and returns it in . is redefined; AddShapes(me : in out; S1 : in out Shape from TopoDS; S2 : Shape from TopoDS) ---Purpose: Inserts the shape in the shape . This -- method must be redefined to use the correct -- builder. is redefined; Check(me : in out; T : ShapeEnum from TopAbs; S : in out Shape from TopoDS) is redefined; ReadPolygon3D(me: in out; IS: in out IStream) ---Purpose: Reads the 3d polygons of me -- from the stream . is static; WritePolygon3D(me; OS: in out OStream; Compact: Boolean=Standard_True) ---Purpose: Writes the 3d polygons -- on the stream in a format that can -- be read back by Read. is static; DumpPolygon3D(me; OS: in out OStream) ---Purpose: Dumps the 3d polygons -- on the stream . is static; ReadTriangulation(me: in out; IS: in out IStream) ---Purpose: Reads the triangulation of me -- from the stream . is static; WriteTriangulation(me; OS: in out OStream; Compact: Boolean=Standard_True) ---Purpose: Writes the triangulation -- on the stream in a format that can -- be read back by Read. is static; DumpTriangulation(me; OS: in out OStream) ---Purpose: Dumps the triangulation -- on the stream . is static; ReadPolygonOnTriangulation(me: in out; IS: in out IStream) ---Purpose: Reads the polygons on triangulation of me -- from the stream . is static; WritePolygonOnTriangulation(me; OS: in out OStream; Compact: Boolean=Standard_True) ---Purpose: Writes the polygons on triangulation -- on the stream in a format that can -- be read back by Read. is static; DumpPolygonOnTriangulation(me; OS: in out OStream) ---Purpose: Dumps the polygons on triangulation -- on the stream . is static; fields myBuilder : Builder from BRep; mySurfaces : SurfaceSet from GeomTools; myCurves : CurveSet from GeomTools; myCurves2d : Curve2dSet from GeomTools; myPolygons2D: IndexedMapOfTransient from TColStd; myPolygons3D: IndexedMapOfTransient from TColStd; myTriangulations: IndexedMapOfTransient from TColStd; myNodes : IndexedMapOfTransient from TColStd; myWithTriangles: Boolean from Standard; -- for XML Persistence end ShapeSet;