1 // Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 // File: GEOMAlgo_GluerAlgo.hxx
24 // Author: Peter KURNEV
27 #ifndef _GEOMAlgo_GluerAlgo_HeaderFile
28 #define _GEOMAlgo_GluerAlgo_HeaderFile
30 #include <Standard_Macro.hxx>
31 #include <TopoDS_Shape.hxx>
32 #include <Standard_Real.hxx>
33 #include <Standard_Boolean.hxx>
34 #include <IntTools_Context.hxx>
35 #include <TopTools_DataMapOfShapeListOfShape.hxx>
36 #include <TopTools_DataMapOfShapeShape.hxx>
37 #include <GEOMAlgo_BuilderShape.hxx>
39 //=======================================================================
40 //class : GEOMAlgo_GluerAlgo
42 //=======================================================================
43 class GEOMAlgo_GluerAlgo {
50 virtual ~GEOMAlgo_GluerAlgo();
53 virtual void SetArgument(const TopoDS_Shape& theShape) ;
56 const TopoDS_Shape& Argument() const;
59 void SetTolerance(const Standard_Real aT) ;
62 Standard_Real Tolerance() const;
65 void SetCheckGeometry(const Standard_Boolean aFlag) ;
68 Standard_Boolean CheckGeometry() const;
71 virtual void Perform() ;
74 virtual void Clear() ;
77 void SetContext(const Handle(IntTools_Context)&) ;
80 const Handle(IntTools_Context)& Context() ;
83 const TopTools_DataMapOfShapeListOfShape& Images() const;
86 const TopTools_DataMapOfShapeShape& Origins() const;
89 TopoDS_Shape myArgument;
90 Standard_Real myTolerance;
91 Standard_Boolean myCheckGeometry;
92 Handle(IntTools_Context) myContext;
93 TopTools_DataMapOfShapeListOfShape myImages;
94 TopTools_DataMapOfShapeShape myOrigins;