src/GEOMAlgo/GEOMAlgo_Gluer.hxx

Go to the documentation of this file.
00001 // Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00002 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00003 // 
00004 // This library is free software; you can redistribute it and/or
00005 // modify it under the terms of the GNU Lesser General Public
00006 // License as published by the Free Software Foundation; either 
00007 // version 2.1 of the License.
00008 // 
00009 // This library is distributed in the hope that it will be useful 
00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of 
00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
00012 // Lesser General Public License for more details.
00013 //
00014 // You should have received a copy of the GNU Lesser General Public  
00015 // License along with this library; if not, write to the Free Software 
00016 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00017 //
00018 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00019 
00020 #ifndef _GEOMAlgo_Gluer_HeaderFile
00021 #define _GEOMAlgo_Gluer_HeaderFile
00022 
00023 #ifndef _Standard_Boolean_HeaderFile
00024 #include <Standard_Boolean.hxx>
00025 #endif
00026 #ifndef _Standard_Real_HeaderFile
00027 #include <Standard_Real.hxx>
00028 #endif
00029 #ifndef _TopTools_DataMapOfShapeListOfShape_HeaderFile
00030 #include <TopTools_DataMapOfShapeListOfShape.hxx>
00031 #endif
00032 #ifndef _TopTools_DataMapOfShapeShape_HeaderFile
00033 #include <TopTools_DataMapOfShapeShape.hxx>
00034 #endif
00035 #ifndef _Standard_Integer_HeaderFile
00036 #include <Standard_Integer.hxx>
00037 #endif
00038 #ifndef _TopTools_ListOfShape_HeaderFile
00039 #include <TopTools_ListOfShape.hxx>
00040 #endif
00041 #ifndef _GEOMAlgo_ShapeAlgo_HeaderFile
00042 #include <GEOMAlgo_ShapeAlgo.hxx>
00043 #endif
00044 #ifndef _TopAbs_ShapeEnum_HeaderFile
00045 #include <TopAbs_ShapeEnum.hxx>
00046 #endif
00047 class TopTools_ListOfShape;
00048 class TopoDS_Shape;
00049 class TopoDS_Edge;
00050 class GEOMAlgo_PassKeyShape;
00051 class TopoDS_Face;
00052 class TopoDS_Vertex;
00053 class TopTools_DataMapOfShapeListOfShape;
00054 class TopTools_DataMapOfShapeShape;
00055 
00056 
00057 #ifndef _Standard_HeaderFile
00058 #include <Standard.hxx>
00059 #endif
00060 #ifndef _Standard_Macro_HeaderFile
00061 #include <Standard_Macro.hxx>
00062 #endif
00063 
00064 class GEOMAlgo_Gluer  : public GEOMAlgo_ShapeAlgo {
00065 
00066 public:
00067 
00068     void* operator new(size_t,void* anAddress) 
00069       {
00070         return anAddress;
00071       }
00072     void* operator new(size_t size) 
00073       { 
00074         return Standard::Allocate(size); 
00075       }
00076     void  operator delete(void *anAddress) 
00077       { 
00078         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
00079       }
00080  // Methods PUBLIC
00081  // 
00082 Standard_EXPORT GEOMAlgo_Gluer();
00083 Standard_EXPORT virtual ~GEOMAlgo_Gluer();
00084 Standard_EXPORT   void SetCheckGeometry(const Standard_Boolean aFlag) ;
00085 Standard_EXPORT   Standard_Boolean CheckGeometry() const;
00086 Standard_EXPORT virtual  void Perform() ;
00087 Standard_EXPORT   Standard_Integer AloneShapes() const;
00088 Standard_EXPORT  const TopTools_ListOfShape& Modified(const TopoDS_Shape& S) ;
00089 Standard_EXPORT  const TopTools_ListOfShape& Generated(const TopoDS_Shape& S) ;
00090 Standard_EXPORT   Standard_Boolean IsDeleted(const TopoDS_Shape& S) ;
00091 Standard_EXPORT  const TopTools_DataMapOfShapeListOfShape& Images() const;
00092 Standard_EXPORT  const TopTools_DataMapOfShapeShape& Origins() const;
00093 
00094 
00095 
00096 
00097 
00098 protected:
00099 
00100  // Methods PROTECTED
00101  // 
00102 Standard_EXPORT virtual  void CheckData() ;
00103 Standard_EXPORT virtual  void CheckResult() ;
00104 Standard_EXPORT   void MakeVertices() ;
00105 Standard_EXPORT   void MakeEdges() ;
00106 Standard_EXPORT   void MakeFaces() ;
00107 Standard_EXPORT   void MakeShapes(const TopAbs_ShapeEnum aType) ;
00108 Standard_EXPORT   void MakeShells() ;
00109 Standard_EXPORT   void MakeSolids() ;
00110 Standard_EXPORT   void InnerTolerance() ;
00111 Standard_EXPORT   void EdgePassKey(const TopoDS_Edge& aE,GEOMAlgo_PassKeyShape& aPK) ;
00112 Standard_EXPORT   void FacePassKey(const TopoDS_Face& aF,GEOMAlgo_PassKeyShape& aPK) ;
00113 Standard_EXPORT   void MakeVertex(const TopTools_ListOfShape& aLV,TopoDS_Vertex& aNewV) ;
00114 Standard_EXPORT   void MakeEdge(const TopoDS_Edge& aEdge,TopoDS_Edge& aNewEdge) ;
00115 Standard_EXPORT   void MakeFace(const TopoDS_Face& aFace,TopoDS_Face& aNewEdge) ;
00116 Standard_EXPORT   Standard_Boolean IsToReverse(const TopoDS_Face& aFR,const TopoDS_Face& aF) ;
00117 Standard_EXPORT   Standard_Boolean HasNewSubShape(const TopoDS_Shape& aS) const;
00118 
00119 
00120  // Fields PROTECTED
00121  //
00122 Standard_Boolean myCheckGeometry;
00123 Standard_Real myTol;
00124 TopTools_DataMapOfShapeListOfShape myImages;
00125 TopTools_DataMapOfShapeShape myOrigins;
00126 Standard_Integer myNbAlone;
00127 TopTools_ListOfShape myGenerated;
00128 
00129 
00130 private: 
00131 
00132  // Methods PRIVATE
00133  // 
00134 
00135 
00136  // Fields PRIVATE
00137  //
00138 
00139 
00140 };
00141 
00142 
00143 
00144 
00145 
00146 // other Inline functions and methods (like "C++: function call" methods)
00147 //
00148 
00149 
00150 #endif