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.cxx
24 // Author: Peter KURNEV
27 #include <GEOMAlgo_GluerAlgo.hxx>
28 #include <IntTools_Context.hxx>
31 //=======================================================================
32 //function : GEOMAlgo_GluerAlgo
34 //=======================================================================
35 GEOMAlgo_GluerAlgo::GEOMAlgo_GluerAlgo()
38 myCheckGeometry=Standard_True;
40 //=======================================================================
41 //function : ~GEOMAlgo_GluerAlgo
43 //=======================================================================
44 GEOMAlgo_GluerAlgo::~GEOMAlgo_GluerAlgo()
47 //=======================================================================
48 //function : SetArgument
50 //=======================================================================
51 void GEOMAlgo_GluerAlgo::SetArgument(const TopoDS_Shape& theShape)
55 //=======================================================================
58 //=======================================================================
59 const TopoDS_Shape& GEOMAlgo_GluerAlgo::Argument()const
63 //=======================================================================
64 //function : SetTolerance
66 //=======================================================================
67 void GEOMAlgo_GluerAlgo::SetTolerance(const Standard_Real aT)
71 //=======================================================================
72 //function : Tolerance
74 //=======================================================================
75 Standard_Real GEOMAlgo_GluerAlgo::Tolerance()const
80 //=======================================================================
81 //function : SetCheckGeometry
83 //=======================================================================
84 void GEOMAlgo_GluerAlgo::SetCheckGeometry(const Standard_Boolean aFlag)
86 myCheckGeometry=aFlag;
88 //=======================================================================
89 //function : CheckGeometry
91 //=======================================================================
92 Standard_Boolean GEOMAlgo_GluerAlgo::CheckGeometry() const
94 return myCheckGeometry;
96 //=======================================================================
97 //function : SetContext
99 //=======================================================================
100 void GEOMAlgo_GluerAlgo::SetContext(const Handle(IntTools_Context)& theContext)
102 myContext=theContext;
104 //=======================================================================
107 //=======================================================================
108 const Handle(IntTools_Context)& GEOMAlgo_GluerAlgo::Context()
112 //=======================================================================
115 //=======================================================================
116 const TopTools_DataMapOfShapeListOfShape& GEOMAlgo_GluerAlgo::Images()const
120 //=======================================================================
123 //=======================================================================
124 const TopTools_DataMapOfShapeShape& GEOMAlgo_GluerAlgo::Origins()const
128 //=======================================================================
131 //=======================================================================
132 void GEOMAlgo_GluerAlgo::Clear()
137 //=======================================================================
140 //=======================================================================
141 void GEOMAlgo_GluerAlgo::Perform()
143 if (myContext.IsNull()) {
144 myContext=new IntTools_Context;