Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
GEOMAlgo_GluerAlgo.hxx
Go to the documentation of this file.
1 // Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
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.
10 //
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.
15 //
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
19 //
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 // File: GEOMAlgo_GluerAlgo.hxx
23 // Created:
24 // Author: Peter KURNEV
25 // <pkv@irinox>
26 //
27 #ifndef _GEOMAlgo_GluerAlgo_HeaderFile
28 #define _GEOMAlgo_GluerAlgo_HeaderFile
29 
30 #include <Basics_OCCTVersion.hxx>
31 
32 #include <Standard_Macro.hxx>
33 #include <TopoDS_Shape.hxx>
34 #include <Standard_Real.hxx>
35 #include <Standard_Boolean.hxx>
36 
37 #if OCC_VERSION_LARGE > 0x06070100
38 #include <IntTools_Context.hxx>
39 #else
40 #include <BOPInt_Context.hxx>
41 #endif
42 #include <TopTools_DataMapOfShapeListOfShape.hxx>
43 #include <TopTools_DataMapOfShapeShape.hxx>
44 
45 //=======================================================================
46 //class : GEOMAlgo_GluerAlgo
47 //purpose :
48 //=======================================================================
50 public:
51 
52  Standard_EXPORT
54 
55  Standard_EXPORT
56  virtual ~GEOMAlgo_GluerAlgo();
57 
58  Standard_EXPORT
59  virtual void SetArgument(const TopoDS_Shape& theShape) ;
60 
61  Standard_EXPORT
62  const TopoDS_Shape& Argument() const;
63 
64  Standard_EXPORT
65  void SetTolerance(const Standard_Real aT) ;
66 
67  Standard_EXPORT
68  Standard_Real Tolerance() const;
69 
70  Standard_EXPORT
71  void SetCheckGeometry(const Standard_Boolean aFlag) ;
72 
73  Standard_EXPORT
74  Standard_Boolean CheckGeometry() const;
75 
76  Standard_EXPORT
77  virtual void Perform() ;
78 
79  Standard_EXPORT
80  virtual void Clear() ;
81 
82  Standard_EXPORT
83 #if OCC_VERSION_LARGE > 0x06070100
84  void SetContext(const Handle(IntTools_Context)&) ;
85 #else
86  void SetContext(const Handle(BOPInt_Context)&) ;
87 #endif
88 
89  Standard_EXPORT
90 #if OCC_VERSION_LARGE > 0x06070100
91  const Handle(IntTools_Context)& Context() ;
92 #else
93  const Handle(BOPInt_Context)& Context() ;
94 #endif
95 
96  Standard_EXPORT
97  const TopTools_DataMapOfShapeListOfShape& Images() const;
98 
99  Standard_EXPORT
100  const TopTools_DataMapOfShapeShape& Origins() const;
101 
102 protected:
103  TopoDS_Shape myArgument;
104  Standard_Real myTolerance;
105  Standard_Boolean myCheckGeometry;
106 #if OCC_VERSION_LARGE > 0x06070100
107  Handle(IntTools_Context) myContext;
108 #else
109  Handle(BOPInt_Context) myContext;
110 #endif
111  TopTools_DataMapOfShapeListOfShape myImages;
112  TopTools_DataMapOfShapeShape myOrigins;
113 
114 private:
115 };
116 #endif