src/GEOMAlgo/GEOMAlgo_GlueAnalyser.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_GlueAnalyser_HeaderFile
00021 #define _GEOMAlgo_GlueAnalyser_HeaderFile
00022 
00023 #ifndef _GEOMAlgo_ListOfCoupleOfShapes_HeaderFile
00024 #include <GEOMAlgo_ListOfCoupleOfShapes.hxx>
00025 #endif
00026 #ifndef _TopTools_ListOfShape_HeaderFile
00027 #include <TopTools_ListOfShape.hxx>
00028 #endif
00029 #ifndef _GEOMAlgo_Gluer_HeaderFile
00030 #include <GEOMAlgo_Gluer.hxx>
00031 #endif
00032 #ifndef _Standard_Boolean_HeaderFile
00033 #include <Standard_Boolean.hxx>
00034 #endif
00035 #ifndef _TopAbs_ShapeEnum_HeaderFile
00036 #include <TopAbs_ShapeEnum.hxx>
00037 #endif
00038 class GEOMAlgo_ListOfCoupleOfShapes;
00039 class TopTools_ListOfShape;
00040 
00041 
00042 #ifndef _Standard_HeaderFile
00043 #include <Standard.hxx>
00044 #endif
00045 #ifndef _Standard_Macro_HeaderFile
00046 #include <Standard_Macro.hxx>
00047 #endif
00048 
00049 class GEOMAlgo_GlueAnalyser  : public GEOMAlgo_Gluer {
00050 
00051 public:
00052 
00053     void* operator new(size_t,void* anAddress) 
00054       {
00055         return anAddress;
00056       }
00057     void* operator new(size_t size) 
00058       { 
00059         return Standard::Allocate(size); 
00060       }
00061     void  operator delete(void *anAddress) 
00062       { 
00063         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
00064       }
00065  // Methods PUBLIC
00066  // 
00067 Standard_EXPORT GEOMAlgo_GlueAnalyser();
00068 Standard_EXPORT virtual ~GEOMAlgo_GlueAnalyser();
00069 Standard_EXPORT virtual  void Perform() ;
00070 Standard_EXPORT   Standard_Boolean HasSolidsToGlue() const;
00071 Standard_EXPORT  const GEOMAlgo_ListOfCoupleOfShapes& SolidsToGlue() const;
00072 Standard_EXPORT   Standard_Boolean HasSolidsAlone() const;
00073 Standard_EXPORT  const TopTools_ListOfShape& SolidsAlone() const;
00074 
00075 
00076 
00077 
00078 
00079 protected:
00080 
00081  // Methods PROTECTED
00082  // 
00083 Standard_EXPORT   void DetectVertices() ;
00084 Standard_EXPORT   void DetectEdges() ;
00085 Standard_EXPORT   void DetectFaces() ;
00086 Standard_EXPORT   void DetectShapes(const TopAbs_ShapeEnum aType) ;
00087 Standard_EXPORT   void DetectSolids() ;
00088 
00089 
00090  // Fields PROTECTED
00091  //
00092 GEOMAlgo_ListOfCoupleOfShapes mySolidsToGlue;
00093 TopTools_ListOfShape mySolidsAlone;
00094 
00095 
00096 private: 
00097 
00098  // Methods PRIVATE
00099  // 
00100 
00101 
00102  // Fields PRIVATE
00103  //
00104 
00105 
00106 };
00107 
00108 
00109 
00110 
00111 
00112 // other Inline functions and methods (like "C++: function call" methods)
00113 //
00114 
00115 
00116 #endif