1 // Copyright (C) 2007-2016 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, or (at your option) any later version.
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.cxx
24 // Author: Peter KURNEV
27 #include <GEOMAlgo_GluerAlgo.hxx>
28 #include <IntTools_Context.hxx>
30 //=======================================================================
31 //function : GEOMAlgo_GluerAlgo
33 //=======================================================================
34 GEOMAlgo_GluerAlgo::GEOMAlgo_GluerAlgo()
37 myCheckGeometry=Standard_True;
39 //=======================================================================
40 //function : ~GEOMAlgo_GluerAlgo
42 //=======================================================================
43 GEOMAlgo_GluerAlgo::~GEOMAlgo_GluerAlgo()
46 //=======================================================================
47 //function : SetArgument
49 //=======================================================================
50 void GEOMAlgo_GluerAlgo::SetArgument(const TopoDS_Shape& theShape)
54 //=======================================================================
57 //=======================================================================
58 const TopoDS_Shape& GEOMAlgo_GluerAlgo::Argument()const
62 //=======================================================================
63 //function : SetTolerance
65 //=======================================================================
66 void GEOMAlgo_GluerAlgo::SetTolerance(const Standard_Real aT)
70 //=======================================================================
71 //function : Tolerance
73 //=======================================================================
74 Standard_Real GEOMAlgo_GluerAlgo::Tolerance()const
79 //=======================================================================
80 //function : SetCheckGeometry
82 //=======================================================================
83 void GEOMAlgo_GluerAlgo::SetCheckGeometry(const Standard_Boolean aFlag)
85 myCheckGeometry=aFlag;
87 //=======================================================================
88 //function : CheckGeometry
90 //=======================================================================
91 Standard_Boolean GEOMAlgo_GluerAlgo::CheckGeometry() const
93 return myCheckGeometry;
95 //=======================================================================
96 //function : SetContext
98 //=======================================================================
99 void GEOMAlgo_GluerAlgo::SetContext(const Handle(IntTools_Context)& theContext)
101 myContext=theContext;
103 //=======================================================================
106 //=======================================================================
107 const Handle(IntTools_Context)& GEOMAlgo_GluerAlgo::Context()
111 //=======================================================================
114 //=======================================================================
115 const TopTools_DataMapOfShapeListOfShape& GEOMAlgo_GluerAlgo::Images()const
119 //=======================================================================
122 //=======================================================================
123 const TopTools_DataMapOfShapeShape& GEOMAlgo_GluerAlgo::Origins()const
127 //=======================================================================
130 //=======================================================================
131 void GEOMAlgo_GluerAlgo::Clear()
136 //=======================================================================
139 //=======================================================================
140 void GEOMAlgo_GluerAlgo::Perform()
142 if (myContext.IsNull()) {
143 myContext=new IntTools_Context;