Salome HOME
Win32 compliation.
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_GluerAlgo.hxx
1 // Copyright (C) 2007-2011  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.
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 // Author:      Peter KURNEV
24
25 #ifndef _GEOMAlgo_GluerAlgo_HeaderFile
26 #define _GEOMAlgo_GluerAlgo_HeaderFile
27
28 #include <Standard_Macro.hxx>
29 #include <Standard_Real.hxx>
30 #include <Standard_Boolean.hxx>
31
32 #include <TopoDS_Shape.hxx>
33 #include <IntTools_Context.hxx>
34 #include <TopTools_DataMapOfShapeListOfShape.hxx>
35 #include <TopTools_DataMapOfShapeShape.hxx>
36
37 #include <GEOMAlgo_BuilderShape.hxx>
38
39 #include <Basics_OCCTVersion.hxx>
40
41 //=======================================================================
42 //class    : GEOMAlgo_GluerAlgo
43 //purpose  : 
44 //=======================================================================
45 class GEOMAlgo_GluerAlgo {
46 public:
47
48   Standard_EXPORT 
49     GEOMAlgo_GluerAlgo();
50
51   Standard_EXPORT 
52     virtual ~GEOMAlgo_GluerAlgo();
53
54   Standard_EXPORT 
55     virtual void SetArgument(const TopoDS_Shape& theShape) ;
56
57   Standard_EXPORT 
58     const TopoDS_Shape& Argument() const;
59   
60   Standard_EXPORT 
61     void SetTolerance(const Standard_Real aT) ;
62   
63   Standard_EXPORT 
64     Standard_Real Tolerance() const;
65   
66   Standard_EXPORT 
67     void SetCheckGeometry(const Standard_Boolean aFlag) ;
68   
69   Standard_EXPORT 
70     Standard_Boolean CheckGeometry() const;
71   
72   Standard_EXPORT 
73     virtual  void Perform() ;
74   
75   Standard_EXPORT 
76     virtual  void Clear() ;
77
78 #if OCC_VERSION_LARGE > 0x06050200
79   Standard_EXPORT void SetContext(const Handle(IntTools_Context)&);
80   Standard_EXPORT const Handle(IntTools_Context)& Context();
81 #else
82   Standard_EXPORT IntTools_Context& Context();
83 #endif
84
85   Standard_EXPORT 
86     const TopTools_DataMapOfShapeListOfShape& Images() const;
87   
88   Standard_EXPORT 
89     const TopTools_DataMapOfShapeShape& Origins() const;
90
91 protected:
92   TopoDS_Shape myArgument;
93   Standard_Real myTolerance;
94   Standard_Boolean myCheckGeometry;
95 #if OCC_VERSION_LARGE > 0x06050200
96   Handle(IntTools_Context) myContext;
97 #else
98   IntTools_Context myContext;
99 #endif
100   TopTools_DataMapOfShapeListOfShape myImages;
101   TopTools_DataMapOfShapeShape myOrigins;
102   
103 private:
104 };
105 #endif