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 #if OCC_VERSION_LARGE > 0x06070100
29 #include <IntTools_Context.hxx>
31 #include <BOPInt_Context.hxx>
35 //=======================================================================
36 //function : GEOMAlgo_GluerAlgo
38 //=======================================================================
39 GEOMAlgo_GluerAlgo::GEOMAlgo_GluerAlgo()
42 myCheckGeometry=Standard_True;
44 //=======================================================================
45 //function : ~GEOMAlgo_GluerAlgo
47 //=======================================================================
48 GEOMAlgo_GluerAlgo::~GEOMAlgo_GluerAlgo()
51 //=======================================================================
52 //function : SetArgument
54 //=======================================================================
55 void GEOMAlgo_GluerAlgo::SetArgument(const TopoDS_Shape& theShape)
59 //=======================================================================
62 //=======================================================================
63 const TopoDS_Shape& GEOMAlgo_GluerAlgo::Argument()const
67 //=======================================================================
68 //function : SetTolerance
70 //=======================================================================
71 void GEOMAlgo_GluerAlgo::SetTolerance(const Standard_Real aT)
75 //=======================================================================
76 //function : Tolerance
78 //=======================================================================
79 Standard_Real GEOMAlgo_GluerAlgo::Tolerance()const
84 //=======================================================================
85 //function : SetCheckGeometry
87 //=======================================================================
88 void GEOMAlgo_GluerAlgo::SetCheckGeometry(const Standard_Boolean aFlag)
90 myCheckGeometry=aFlag;
92 //=======================================================================
93 //function : CheckGeometry
95 //=======================================================================
96 Standard_Boolean GEOMAlgo_GluerAlgo::CheckGeometry() const
98 return myCheckGeometry;
100 //=======================================================================
101 //function : SetContext
103 //=======================================================================
104 #if OCC_VERSION_LARGE > 0x06070100
105 void GEOMAlgo_GluerAlgo::SetContext(const Handle(IntTools_Context)& theContext)
107 void GEOMAlgo_GluerAlgo::SetContext(const Handle(BOPInt_Context)& theContext)
110 myContext=theContext;
112 //=======================================================================
115 //=======================================================================
116 #if OCC_VERSION_LARGE > 0x06070100
117 const Handle(IntTools_Context)& GEOMAlgo_GluerAlgo::Context()
119 const Handle(BOPInt_Context)& GEOMAlgo_GluerAlgo::Context()
124 //=======================================================================
127 //=======================================================================
128 const TopTools_DataMapOfShapeListOfShape& GEOMAlgo_GluerAlgo::Images()const
132 //=======================================================================
135 //=======================================================================
136 const TopTools_DataMapOfShapeShape& GEOMAlgo_GluerAlgo::Origins()const
140 //=======================================================================
143 //=======================================================================
144 void GEOMAlgo_GluerAlgo::Clear()
149 //=======================================================================
152 //=======================================================================
153 void GEOMAlgo_GluerAlgo::Perform()
155 if (myContext.IsNull()) {
156 #if OCC_VERSION_LARGE > 0x06070100
157 myContext=new IntTools_Context;
159 myContext=new BOPInt_Context;