geom/src/GEOMAlgo/GEOMAlgo_GlueDetector.hxx

97 lines
2.7 KiB
C++
Raw Normal View History

2012-06-05 11:33:32 +00:00
// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
2011-06-06 07:23:11 +00:00
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
2012-06-05 11:33:32 +00:00
2011-06-06 07:23:11 +00:00
// File: GEOMAlgo_GlueDetector.hxx
// Author: Peter KURNEV
2012-06-05 11:33:32 +00:00
2011-06-06 07:23:11 +00:00
#ifndef _GEOMAlgo_GlueDetector_HeaderFile
#define _GEOMAlgo_GlueDetector_HeaderFile
#include <Standard.hxx>
#include <Standard_Macro.hxx>
2012-06-05 11:33:32 +00:00
2011-06-06 07:23:11 +00:00
#include <TopAbs_ShapeEnum.hxx>
2012-06-05 11:33:32 +00:00
#include <TopTools_ListOfShape.hxx>
#include <TopTools_IndexedDataMapOfShapeListOfShape.hxx>
#include <GEOMAlgo_GluerAlgo.hxx>
2011-06-06 07:23:11 +00:00
#include <GEOMAlgo_Algo.hxx>
2012-06-05 11:33:32 +00:00
#include <GEOMAlgo_PassKeyShape.hxx>
2011-06-06 07:23:11 +00:00
//=======================================================================
//function : GEOMAlgo_GlueDetector
2012-06-05 11:33:32 +00:00
//purpose :
2011-06-06 07:23:11 +00:00
//=======================================================================
2012-06-05 11:33:32 +00:00
class GEOMAlgo_GlueDetector : public GEOMAlgo_GluerAlgo,
public GEOMAlgo_Algo
{
2011-06-06 07:23:11 +00:00
public:
2012-06-05 11:33:32 +00:00
Standard_EXPORT
GEOMAlgo_GlueDetector();
Standard_EXPORT virtual
~GEOMAlgo_GlueDetector();
2011-06-06 07:23:11 +00:00
2012-06-05 11:33:32 +00:00
Standard_EXPORT virtual
void Perform() ;
Standard_EXPORT
const TopTools_IndexedDataMapOfShapeListOfShape& StickedShapes();
2012-09-10 13:40:25 +00:00
2011-06-06 07:23:11 +00:00
protected:
2012-06-05 11:33:32 +00:00
Standard_EXPORT
void DetectVertices() ;
Standard_EXPORT
void DetectEdges() ;
Standard_EXPORT
void DetectFaces() ;
Standard_EXPORT
void DetectShapes(const TopAbs_ShapeEnum aType) ;
Standard_EXPORT
void EdgePassKey(const TopoDS_Edge& aE,
GEOMAlgo_PassKeyShape& aPK) ;
Standard_EXPORT
void FacePassKey(const TopoDS_Face& aF,
GEOMAlgo_PassKeyShape& aPK) ;
Standard_EXPORT
void CheckDetected();
//
Standard_EXPORT
void CheckDetected
(const TopTools_ListOfShape& aLVSD,
const TopTools_IndexedDataMapOfShapeListOfShape& aMVE,
const TopTools_IndexedDataMapOfShapeListOfShape& aMEV);
protected:
TopTools_IndexedDataMapOfShapeListOfShape myStickedShapes;
2011-06-06 07:23:11 +00:00
};
#endif