Back to index

salome-geom  6.5.0
GEOMAlgo_ShapeAlgo.hxx
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 
00023 // File:        GEOMAlgo_ShapeAlgo.hxx
00024 // Created:     Tue Dec  7 12:06:54 2004
00025 // Author:      Peter KURNEV
00026 //              <pkv@irinox>
00027 //
00028 #ifndef _GEOMAlgo_ShapeAlgo_HeaderFile
00029 #define _GEOMAlgo_ShapeAlgo_HeaderFile
00030 
00031 #include <Standard.hxx>
00032 #include <Standard_Macro.hxx>
00033 #include <TopoDS_Shape.hxx>
00034 #include <Standard_Real.hxx>
00035 #include <Handle_IntTools_Context.hxx>
00036 #include <GEOMAlgo_Algo.hxx>
00037 
00038 //=======================================================================
00039 //class    : GEOMAlgo_ShapeAlgo
00040 //purpose  :
00041 //=======================================================================
00042 class GEOMAlgo_ShapeAlgo  : public GEOMAlgo_Algo
00043 {
00044  public:
00045 
00047   Standard_EXPORT
00048     void SetContext(const Handle(IntTools_Context)& theContext) ;
00049 
00051   Standard_EXPORT
00052     const Handle_IntTools_Context& Context() const;
00053 
00054   Standard_EXPORT
00055     void SetShape(const TopoDS_Shape& aS) ;
00056 
00057   Standard_EXPORT
00058     void SetTolerance(const Standard_Real aT) ;
00059 
00060   Standard_EXPORT
00061     const TopoDS_Shape& Shape() const;
00062 
00063   Standard_EXPORT
00064     Standard_Real Tolerance() const;
00065 
00066   Standard_EXPORT
00067     const TopoDS_Shape& Result() const;
00068 
00069   Standard_EXPORT
00070     virtual  void Perform() ;
00071 
00072 protected:
00073   Standard_EXPORT
00074     GEOMAlgo_ShapeAlgo();
00075 
00076   Standard_EXPORT
00077     virtual ~GEOMAlgo_ShapeAlgo();
00078 
00079 
00080   TopoDS_Shape myShape;
00081   Standard_Real myTolerance;
00082   TopoDS_Shape myResult;
00083   Handle_IntTools_Context myContext;
00084 };
00085 #endif