Back to index

salome-geom  6.5.0
GEOMAlgo_BuilderArea.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_BuilderArea.hxx
00024 // Created:
00025 // Author:      Peter KURNEV
00026 //
00027 
00028 #ifndef _GEOMAlgo_BuilderArea_HeaderFile
00029 #define _GEOMAlgo_BuilderArea_HeaderFile
00030 
00031 #include <Standard.hxx>
00032 #include <Standard_Macro.hxx>
00033 #include <TopTools_ListOfShape.hxx>
00034 #include <TopTools_MapOfOrientedShape.hxx>
00035 #include <Handle_IntTools_Context.hxx>
00036 #include <GEOMAlgo_Algo.hxx>
00037 #include <IntTools_Context.hxx>
00038 
00041 //=======================================================================
00042 //class    : GEOMAlgo_BuilderArea
00043 //purpose  :
00044 //=======================================================================
00045 class GEOMAlgo_BuilderArea  : public GEOMAlgo_Algo
00046 {
00047  public:
00049   Standard_EXPORT
00050     void SetContext(const Handle(IntTools_Context)& theContext) ;
00051 
00053   Standard_EXPORT
00054     const Handle_IntTools_Context& Context() const;
00055 
00057   Standard_EXPORT
00058     void SetShapes(const TopTools_ListOfShape& theLS) ;
00059 
00061   Standard_EXPORT
00062     const TopTools_ListOfShape& Shapes() const;
00063 
00065   Standard_EXPORT
00066     const TopTools_ListOfShape& Loops() const;
00067 
00069   Standard_EXPORT
00070     const TopTools_ListOfShape& Areas() const;
00071 
00072   Standard_EXPORT
00073     virtual  void Perform() ;
00074 
00075  protected:
00077   Standard_EXPORT
00078     GEOMAlgo_BuilderArea();
00079 
00080   Standard_EXPORT
00081     virtual ~GEOMAlgo_BuilderArea();
00085 
00086   Standard_EXPORT
00087     virtual  void PerformShapesToAvoid() ;
00088 
00094   Standard_EXPORT
00095     virtual  void PerformLoops() ;
00097 
00098   Standard_EXPORT
00099     virtual  void PerformAreas() ;
00100 
00102   Standard_EXPORT
00103     virtual  void PerformInternalShapes() ;
00104 
00105   TopTools_ListOfShape myShapes;
00106   TopTools_ListOfShape myLoops;
00107   TopTools_ListOfShape myLoopsInternal;
00108   TopTools_MapOfOrientedShape myShapesToAvoid;
00109   TopTools_ListOfShape myAreas;
00110   Handle_IntTools_Context myContext;
00111 };
00112 #endif