Back to index

salome-geom  6.5.0
GEOMAlgo_GlueDetector.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 // Author:      Peter KURNEV
00025 
00026 #ifndef _GEOMAlgo_GlueDetector_HeaderFile
00027 #define _GEOMAlgo_GlueDetector_HeaderFile
00028 
00029 #include <Standard.hxx>
00030 #include <Standard_Macro.hxx>
00031 
00032 #include <TopAbs_ShapeEnum.hxx>
00033 
00034 #include <TopTools_ListOfShape.hxx>
00035 #include <TopTools_IndexedDataMapOfShapeListOfShape.hxx>
00036 
00037 #include <GEOMAlgo_GluerAlgo.hxx>
00038 #include <GEOMAlgo_Algo.hxx>
00039 #include <GEOMAlgo_PassKeyShape.hxx>
00040 
00041 //=======================================================================
00042 //function : GEOMAlgo_GlueDetector
00043 //purpose  :
00044 //=======================================================================
00045 class GEOMAlgo_GlueDetector  : public GEOMAlgo_GluerAlgo,
00046                                public GEOMAlgo_Algo
00047 {
00048 public:
00049   Standard_EXPORT
00050     GEOMAlgo_GlueDetector();
00051 
00052   Standard_EXPORT virtual
00053     ~GEOMAlgo_GlueDetector();
00054 
00055   Standard_EXPORT virtual
00056     void Perform() ;
00057 
00058 //modified by NIZNHY-PKV Tue Mar 13 12:23:20 2012f
00059   Standard_EXPORT
00060     const TopTools_IndexedDataMapOfShapeListOfShape& StickedShapes();
00061 //modified by NIZNHY-PKV Tue Mar 13 12:23:26 2012t
00062 //------------------------------------------------
00063 protected:
00064   Standard_EXPORT
00065     void DetectVertices() ;
00066 
00067   Standard_EXPORT
00068     void DetectEdges() ;
00069 
00070   Standard_EXPORT
00071     void DetectFaces() ;
00072 
00073   Standard_EXPORT
00074     void DetectShapes(const TopAbs_ShapeEnum aType) ;
00075 
00076   Standard_EXPORT
00077     void EdgePassKey(const TopoDS_Edge& aE,
00078                      GEOMAlgo_PassKeyShape& aPK) ;
00079 
00080   Standard_EXPORT
00081     void FacePassKey(const TopoDS_Face& aF,
00082                      GEOMAlgo_PassKeyShape& aPK) ;
00083 
00084   //modified by NIZNHY-PKV Tue Mar 13 09:53:03 2012f
00085   Standard_EXPORT
00086     void CheckDetected();
00087   //
00088   Standard_EXPORT
00089     void CheckDetected
00090       (const TopTools_ListOfShape& aLVSD,
00091        const TopTools_IndexedDataMapOfShapeListOfShape& aMVE,
00092        const TopTools_IndexedDataMapOfShapeListOfShape& aMEV);
00093 
00094 
00095  protected:
00096   TopTools_IndexedDataMapOfShapeListOfShape myStickedShapes;
00097   //modified by NIZNHY-PKV Tue Mar 13 09:53:08 2012t
00098 
00099 };
00100 #endif