1 // Copyright (C) 2007-2011 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.cxx
23 // Author: Peter KURNEV
25 #include <GEOMAlgo_GluerAlgo.hxx>
27 #include <Basics_OCCTVersion.hxx>
29 #if OCC_VERSION_LARGE > 0x06050200
30 #include <IntTools_Context.hxx>
33 //=======================================================================
34 //function : GEOMAlgo_GluerAlgo
36 //=======================================================================
37 GEOMAlgo_GluerAlgo::GEOMAlgo_GluerAlgo()
40 myCheckGeometry=Standard_True;
43 //=======================================================================
44 //function : ~GEOMAlgo_GluerAlgo
46 //=======================================================================
47 GEOMAlgo_GluerAlgo::~GEOMAlgo_GluerAlgo()
51 //=======================================================================
52 //function : SetArgument
54 //=======================================================================
55 void GEOMAlgo_GluerAlgo::SetArgument(const TopoDS_Shape& theShape)
60 //=======================================================================
63 //=======================================================================
64 const TopoDS_Shape& GEOMAlgo_GluerAlgo::Argument()const
69 //=======================================================================
70 //function : SetTolerance
72 //=======================================================================
73 void GEOMAlgo_GluerAlgo::SetTolerance(const Standard_Real aT)
78 //=======================================================================
79 //function : Tolerance
81 //=======================================================================
82 Standard_Real GEOMAlgo_GluerAlgo::Tolerance()const
87 //=======================================================================
88 //function : SetCheckGeometry
90 //=======================================================================
91 void GEOMAlgo_GluerAlgo::SetCheckGeometry(const Standard_Boolean aFlag)
93 myCheckGeometry=aFlag;
96 //=======================================================================
97 //function : CheckGeometry
99 //=======================================================================
100 Standard_Boolean GEOMAlgo_GluerAlgo::CheckGeometry() const
102 return myCheckGeometry;
105 #if OCC_VERSION_LARGE > 0x06050200
106 //=======================================================================
107 //function : SetContext
109 //=======================================================================
110 void GEOMAlgo_GluerAlgo::SetContext(const Handle(IntTools_Context)& theContext)
112 myContext=theContext;
116 //=======================================================================
119 //=======================================================================
120 #if OCC_VERSION_LARGE > 0x06050200
121 const Handle(IntTools_Context)& GEOMAlgo_GluerAlgo::Context()
123 IntTools_Context& GEOMAlgo_GluerAlgo::Context()
129 //=======================================================================
132 //=======================================================================
133 const TopTools_DataMapOfShapeListOfShape& GEOMAlgo_GluerAlgo::Images()const
138 //=======================================================================
141 //=======================================================================
142 const TopTools_DataMapOfShapeShape& GEOMAlgo_GluerAlgo::Origins()const
147 //=======================================================================
150 //=======================================================================
151 void GEOMAlgo_GluerAlgo::Clear()
157 //=======================================================================
160 //=======================================================================
161 void GEOMAlgo_GluerAlgo::Perform()
163 #if OCC_VERSION_LARGE > 0x06050200
164 if (myContext.IsNull()) {
165 myContext=new IntTools_Context;