Back to index

salome-geom  6.5.0
GEOMAlgo_GluerAlgo.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 // File:        GEOMAlgo_GluerAlgo.hxx
00023 // Created:
00024 // Author:      Peter KURNEV
00025 //              <pkv@irinox>
00026 //
00027 #ifndef _GEOMAlgo_GluerAlgo_HeaderFile
00028 #define _GEOMAlgo_GluerAlgo_HeaderFile
00029 
00030 #include <Standard_Macro.hxx>
00031 #include <TopoDS_Shape.hxx>
00032 #include <Standard_Real.hxx>
00033 #include <Standard_Boolean.hxx>
00034 #include <IntTools_Context.hxx>
00035 #include <TopTools_DataMapOfShapeListOfShape.hxx>
00036 #include <TopTools_DataMapOfShapeShape.hxx>
00037 #include <GEOMAlgo_BuilderShape.hxx>
00038 
00039 //=======================================================================
00040 //class    : GEOMAlgo_GluerAlgo
00041 //purpose  :
00042 //=======================================================================
00043 class GEOMAlgo_GluerAlgo {
00044 public:
00045 
00046   Standard_EXPORT
00047     GEOMAlgo_GluerAlgo();
00048 
00049   Standard_EXPORT
00050     virtual ~GEOMAlgo_GluerAlgo();
00051 
00052   Standard_EXPORT
00053     virtual void SetArgument(const TopoDS_Shape& theShape) ;
00054 
00055   Standard_EXPORT
00056     const TopoDS_Shape& Argument() const;
00057 
00058   Standard_EXPORT
00059     void SetTolerance(const Standard_Real aT) ;
00060 
00061   Standard_EXPORT
00062     Standard_Real Tolerance() const;
00063 
00064   Standard_EXPORT
00065     void SetCheckGeometry(const Standard_Boolean aFlag) ;
00066 
00067   Standard_EXPORT
00068     Standard_Boolean CheckGeometry() const;
00069 
00070   Standard_EXPORT
00071     virtual  void Perform() ;
00072 
00073   Standard_EXPORT
00074     virtual  void Clear() ;
00075 
00076   Standard_EXPORT
00077     void SetContext(const Handle(IntTools_Context)&) ;
00078 
00079   Standard_EXPORT
00080     const Handle(IntTools_Context)& Context() ;
00081 
00082   Standard_EXPORT
00083     const TopTools_DataMapOfShapeListOfShape& Images() const;
00084 
00085   Standard_EXPORT
00086     const TopTools_DataMapOfShapeShape& Origins() const;
00087 
00088 protected:
00089   TopoDS_Shape myArgument;
00090   Standard_Real myTolerance;
00091   Standard_Boolean myCheckGeometry;
00092   Handle(IntTools_Context) myContext;
00093   TopTools_DataMapOfShapeListOfShape myImages;
00094   TopTools_DataMapOfShapeShape myOrigins;
00095 
00096 private:
00097 };
00098 #endif