Back to index

salome-geom  6.5.0
GEOMAlgo_GlueAnalyser.hxx
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 
00023 // File:        GEOMAlgo_GlueDetector.hxx
00024 // Created:     Wed Dec 15 11:08:09 2004
00025 // Author:      Peter KURNEV
00026 
00027 #ifndef _GEOMAlgo_GlueAnalyser_HeaderFile
00028 #define _GEOMAlgo_GlueAnalyser_HeaderFile
00029 
00030 #include <Standard.hxx>
00031 #include <Standard_Macro.hxx>
00032 #include <GEOMAlgo_ListOfCoupleOfShapes.hxx>
00033 #include <TopTools_ListOfShape.hxx>
00034 #include <GEOMAlgo_Gluer.hxx>
00035 #include <Standard_Boolean.hxx>
00036 #include <TopAbs_ShapeEnum.hxx>
00037 
00038 //=======================================================================
00039 //function : GEOMAlgo_GlueAnalyser
00040 //purpose  :
00041 //=======================================================================
00042 class GEOMAlgo_GlueAnalyser  : public GEOMAlgo_Gluer
00043 {
00044  public:
00045   Standard_EXPORT
00046     GEOMAlgo_GlueAnalyser();
00047 
00048   Standard_EXPORT
00049     virtual ~GEOMAlgo_GlueAnalyser();
00050 
00051   Standard_EXPORT
00052     virtual  void Perform() ;
00053 
00054   Standard_EXPORT
00055     Standard_Boolean HasSolidsToGlue() const;
00056 
00057   Standard_EXPORT
00058     const GEOMAlgo_ListOfCoupleOfShapes& SolidsToGlue() const;
00059 
00060   Standard_EXPORT
00061     Standard_Boolean HasSolidsAlone() const;
00062 
00063   Standard_EXPORT
00064     const TopTools_ListOfShape& SolidsAlone() const;
00065 
00066  protected:
00067   Standard_EXPORT
00068     void DetectVertices() ;
00069 
00070   Standard_EXPORT
00071     void DetectEdges() ;
00072 
00073   Standard_EXPORT
00074     void DetectFaces() ;
00075 
00076   Standard_EXPORT
00077     void DetectShapes(const TopAbs_ShapeEnum aType) ;
00078 
00079   Standard_EXPORT
00080     void DetectSolids() ;
00081 
00082 
00083   GEOMAlgo_ListOfCoupleOfShapes mySolidsToGlue;
00084   TopTools_ListOfShape mySolidsAlone;
00085 };
00086 
00087 #endif