1 // Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
\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
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
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
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
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
\r
23 // File: GEOMAlgo_ShapeAlgo.hxx
\r
24 // Created: Tue Dec 7 12:06:54 2004
\r
25 // Author: Peter KURNEV
\r
28 #ifndef _GEOMAlgo_ShapeAlgo_HeaderFile
\r
29 #define _GEOMAlgo_ShapeAlgo_HeaderFile
\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
38 //=======================================================================
\r
39 //class : GEOMAlgo_ShapeAlgo
\r
41 //=======================================================================
\r
42 class GEOMAlgo_ShapeAlgo : public GEOMAlgo_Algo
\r
46 //! Sets cashed geometrical tools <br>
\r
48 void SetContext(const Handle(IntTools_Context)& theContext) ;
\r
50 //! Returns cashed geometrical tools <br>
\r
52 const Handle_IntTools_Context& Context() const;
\r
55 void SetShape(const TopoDS_Shape& aS) ;
\r
58 void SetTolerance(const Standard_Real aT) ;
\r
61 const TopoDS_Shape& Shape() const;
\r
64 Standard_Real Tolerance() const;
\r
67 const TopoDS_Shape& Result() const;
\r
70 virtual void Perform() ;
\r
74 GEOMAlgo_ShapeAlgo();
\r
77 virtual ~GEOMAlgo_ShapeAlgo();
\r
80 TopoDS_Shape myShape;
\r
81 Standard_Real myTolerance;
\r
82 TopoDS_Shape myResult;
\r
83 Handle_IntTools_Context myContext;
\r