Back to index

salome-geom  6.5.0
GEOMAlgo_WireSplitter.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_WireSplitter.hxx
00024 // Author:      Peter KURNEV
00025 
00026 #ifndef _GEOMAlgo_WireSplitter_HeaderFile
00027 #define _GEOMAlgo_WireSplitter_HeaderFile
00028 
00029 #include <Standard.hxx>
00030 #include <Standard_Macro.hxx>
00031 #include <TopoDS_Face.hxx>
00032 #include <Standard_Boolean.hxx>
00033 #include <BOPTColStd_ListOfListOfShape.hxx>
00034 #include <BOP_IndexedDataMapOfVertexListEdgeInfo.hxx>
00035 #include <TopTools_ListOfShape.hxx>
00036 #include <GEOMAlgo_Algo.hxx>
00037 
00041 //=======================================================================
00042 //class    : GEOMAlgo_WireSplitter
00043 //purpose  :
00044 //=======================================================================
00045 class GEOMAlgo_WireSplitter  : public GEOMAlgo_Algo
00046 {
00047 public:
00048   Standard_EXPORT
00049     GEOMAlgo_WireSplitter();
00050 
00051   Standard_EXPORT
00052     virtual ~GEOMAlgo_WireSplitter();
00053 
00054   Standard_EXPORT
00055     void SetFace(const TopoDS_Face& aF) ;
00056 
00057   Standard_EXPORT
00058     void SetEdges(const TopTools_ListOfShape& aLE) ;
00059 
00060   Standard_EXPORT
00061     const TopTools_ListOfShape& Edges() const;
00062 
00063   Standard_EXPORT
00064     virtual  void Perform() ;
00065 
00066   Standard_EXPORT
00067     Standard_Boolean IsNothingToDo() const;
00068 
00069   Standard_EXPORT
00070     const TopoDS_Face& Face() const;
00071 
00072   Standard_EXPORT
00073     const BOPTColStd_ListOfListOfShape& Shapes() const;
00074 
00075 protected:
00076   TopoDS_Face myFace;
00077   Standard_Boolean myIsDone;
00078   Standard_Boolean myNothingToDo;
00079   BOPTColStd_ListOfListOfShape myShapes;
00080   BOP_IndexedDataMapOfVertexListEdgeInfo mySmartMap;
00081   TopTools_ListOfShape myEdges;
00082 };
00083 
00084 #endif