1 // Created on: 1996-01-30
2 // Created by: Jacques GOUSSARD
3 // Copyright (c) 1996-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
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
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.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _LocOpe_GluedShape_HeaderFile
18 #define _LocOpe_GluedShape_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
23 #include <TopoDS_Shape.hxx>
24 #include <TopTools_MapOfShape.hxx>
25 #include <TopTools_DataMapOfShapeShape.hxx>
26 #include <LocOpe_GeneratedShape.hxx>
27 #include <TopTools_ListOfShape.hxx>
34 class LocOpe_GluedShape;
35 DEFINE_STANDARD_HANDLE(LocOpe_GluedShape, LocOpe_GeneratedShape)
38 class LocOpe_GluedShape : public LocOpe_GeneratedShape
44 Standard_EXPORT LocOpe_GluedShape();
46 Standard_EXPORT LocOpe_GluedShape(const TopoDS_Shape& S);
48 Standard_EXPORT void Init (const TopoDS_Shape& S);
50 Standard_EXPORT void GlueOnFace (const TopoDS_Face& F);
52 Standard_EXPORT const TopTools_ListOfShape& GeneratingEdges() Standard_OVERRIDE;
54 //! Returns the edge created by the vertex <V>. If
55 //! none, must return a null shape.
56 Standard_EXPORT TopoDS_Edge Generated (const TopoDS_Vertex& V) Standard_OVERRIDE;
58 //! Returns the face created by the edge <E>. If none,
59 //! must return a null shape.
60 Standard_EXPORT TopoDS_Face Generated (const TopoDS_Edge& E) Standard_OVERRIDE;
62 //! Returns the list of correctly oriented generated
64 Standard_EXPORT const TopTools_ListOfShape& OrientedFaces() Standard_OVERRIDE;
69 DEFINE_STANDARD_RTTIEXT(LocOpe_GluedShape,LocOpe_GeneratedShape)
79 Standard_EXPORT void MapEdgeAndVertices();
82 TopTools_MapOfShape myMap;
83 TopTools_DataMapOfShapeShape myGShape;
94 #endif // _LocOpe_GluedShape_HeaderFile