1 // Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License.
9 // This library is distributed in the hope that it will be useful
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #ifndef _GEOMAlgo_Gluer_HeaderFile
21 #define _GEOMAlgo_Gluer_HeaderFile
23 #ifndef _Standard_Boolean_HeaderFile
24 #include <Standard_Boolean.hxx>
26 #ifndef _Standard_Real_HeaderFile
27 #include <Standard_Real.hxx>
29 #ifndef _TopTools_DataMapOfShapeListOfShape_HeaderFile
30 #include <TopTools_DataMapOfShapeListOfShape.hxx>
32 #ifndef _TopTools_DataMapOfShapeShape_HeaderFile
33 #include <TopTools_DataMapOfShapeShape.hxx>
35 #ifndef _Standard_Integer_HeaderFile
36 #include <Standard_Integer.hxx>
38 #ifndef _TopTools_ListOfShape_HeaderFile
39 #include <TopTools_ListOfShape.hxx>
41 #ifndef _GEOMAlgo_ShapeAlgo_HeaderFile
42 #include <GEOMAlgo_ShapeAlgo.hxx>
44 #ifndef _TopAbs_ShapeEnum_HeaderFile
45 #include <TopAbs_ShapeEnum.hxx>
47 class TopTools_ListOfShape;
50 class GEOMAlgo_PassKeyShape;
53 class TopTools_DataMapOfShapeListOfShape;
54 class TopTools_DataMapOfShapeShape;
57 #ifndef _Standard_HeaderFile
58 #include <Standard.hxx>
60 #ifndef _Standard_Macro_HeaderFile
61 #include <Standard_Macro.hxx>
64 class GEOMAlgo_Gluer : public GEOMAlgo_ShapeAlgo {
68 void* operator new(size_t,void* anAddress)
72 void* operator new(size_t size)
74 return Standard::Allocate(size);
76 void operator delete(void *anAddress)
78 if (anAddress) Standard::Free((Standard_Address&)anAddress);
82 Standard_EXPORT GEOMAlgo_Gluer();
83 Standard_EXPORT virtual ~GEOMAlgo_Gluer();
84 Standard_EXPORT void SetCheckGeometry(const Standard_Boolean aFlag) ;
85 Standard_EXPORT Standard_Boolean CheckGeometry() const;
86 Standard_EXPORT virtual void Perform() ;
87 Standard_EXPORT Standard_Integer AloneShapes() const;
88 Standard_EXPORT const TopTools_ListOfShape& Modified(const TopoDS_Shape& S) ;
89 Standard_EXPORT const TopTools_ListOfShape& Generated(const TopoDS_Shape& S) ;
90 Standard_EXPORT Standard_Boolean IsDeleted(const TopoDS_Shape& S) ;
91 Standard_EXPORT const TopTools_DataMapOfShapeListOfShape& Images() const;
92 Standard_EXPORT const TopTools_DataMapOfShapeShape& Origins() const;
102 Standard_EXPORT virtual void CheckData() ;
103 Standard_EXPORT virtual void CheckResult() ;
104 Standard_EXPORT void MakeVertices() ;
105 Standard_EXPORT void MakeEdges() ;
106 Standard_EXPORT void MakeFaces() ;
107 Standard_EXPORT void MakeShapes(const TopAbs_ShapeEnum aType) ;
108 Standard_EXPORT void MakeShells() ;
109 Standard_EXPORT void MakeSolids() ;
110 Standard_EXPORT void InnerTolerance() ;
111 Standard_EXPORT void EdgePassKey(const TopoDS_Edge& aE,GEOMAlgo_PassKeyShape& aPK) ;
112 Standard_EXPORT void FacePassKey(const TopoDS_Face& aF,GEOMAlgo_PassKeyShape& aPK) ;
113 Standard_EXPORT void MakeVertex(const TopTools_ListOfShape& aLV,TopoDS_Vertex& aNewV) ;
114 Standard_EXPORT void MakeEdge(const TopoDS_Edge& aEdge,TopoDS_Edge& aNewEdge) ;
115 Standard_EXPORT void MakeFace(const TopoDS_Face& aFace,TopoDS_Face& aNewEdge) ;
116 Standard_EXPORT Standard_Boolean IsToReverse(const TopoDS_Face& aFR,const TopoDS_Face& aF) ;
117 Standard_EXPORT Standard_Boolean HasNewSubShape(const TopoDS_Shape& aS) const;
122 Standard_Boolean myCheckGeometry;
124 TopTools_DataMapOfShapeListOfShape myImages;
125 TopTools_DataMapOfShapeShape myOrigins;
126 Standard_Integer myNbAlone;
127 TopTools_ListOfShape myGenerated;
146 // other Inline functions and methods (like "C++: function call" methods)