Salome HOME
Mantis issue 0021191: GlueEdges and GlueFaces problem with tolerance 1. A fix by...
[modules/geom.git] / src / GEOMAlgo_NEW / GEOMAlgo_ShapeAlgo.hxx
1 // Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE\r
2 //\r
3 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,\r
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS\r
5 //\r
6 // This library is free software; you can redistribute it and/or\r
7 // modify it under the terms of the GNU Lesser General Public\r
8 // License as published by the Free Software Foundation; either\r
9 // version 2.1 of the License.\r
10 //\r
11 // This library is distributed in the hope that it will be useful,\r
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of\r
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\r
14 // Lesser General Public License for more details.\r
15 //\r
16 // You should have received a copy of the GNU Lesser General Public\r
17 // License along with this library; if not, write to the Free Software\r
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA\r
19 //\r
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com\r
21 //\r
22 \r
23 // File:        GEOMAlgo_ShapeAlgo.hxx\r
24 // Created:     Tue Dec  7 12:06:54 2004\r
25 // Author:      Peter KURNEV\r
26 //              <pkv@irinox>\r
27 //\r
28 #ifndef _GEOMAlgo_ShapeAlgo_HeaderFile\r
29 #define _GEOMAlgo_ShapeAlgo_HeaderFile\r
30 \r
31 #include <Standard.hxx>\r
32 #include <Standard_Macro.hxx>\r
33 #include <TopoDS_Shape.hxx>\r
34 #include <Standard_Real.hxx>\r
35 #include <Handle_IntTools_Context.hxx>\r
36 #include <GEOMAlgo_Algo.hxx>\r
37 \r
38 //=======================================================================\r
39 //class    : GEOMAlgo_ShapeAlgo\r
40 //purpose  : \r
41 //=======================================================================\r
42 class GEOMAlgo_ShapeAlgo  : public GEOMAlgo_Algo \r
43 {\r
44  public:\r
45 \r
46   //! Sets cashed geometrical tools <br>\r
47   Standard_EXPORT\r
48     void SetContext(const Handle(IntTools_Context)& theContext) ;\r
49   \r
50   //! Returns cashed geometrical tools <br>\r
51   Standard_EXPORT\r
52     const Handle_IntTools_Context& Context() const;\r
53   \r
54   Standard_EXPORT\r
55     void SetShape(const TopoDS_Shape& aS) ;\r
56   \r
57   Standard_EXPORT\r
58     void SetTolerance(const Standard_Real aT) ;\r
59   \r
60   Standard_EXPORT\r
61     const TopoDS_Shape& Shape() const;\r
62   \r
63   Standard_EXPORT\r
64     Standard_Real Tolerance() const;\r
65   \r
66   Standard_EXPORT\r
67     const TopoDS_Shape& Result() const;\r
68   \r
69   Standard_EXPORT\r
70     virtual  void Perform() ;\r
71 \r
72 protected:\r
73   Standard_EXPORT\r
74     GEOMAlgo_ShapeAlgo();\r
75   \r
76   Standard_EXPORT\r
77     virtual ~GEOMAlgo_ShapeAlgo();\r
78 \r
79 \r
80   TopoDS_Shape myShape;\r
81   Standard_Real myTolerance;\r
82   TopoDS_Shape myResult;\r
83   Handle_IntTools_Context myContext;\r
84 };\r
85 #endif\r