1 // Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License.
9 // This library is distributed in the hope that it will be useful
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #ifndef _GEOMAlgo_WireSplitter_HeaderFile
21 #define _GEOMAlgo_WireSplitter_HeaderFile
23 #ifndef _TopoDS_Face_HeaderFile
24 #include <TopoDS_Face.hxx>
26 #ifndef _Standard_Boolean_HeaderFile
27 #include <Standard_Boolean.hxx>
29 #ifndef _BOPTColStd_ListOfListOfShape_HeaderFile
30 #include <BOPTColStd_ListOfListOfShape.hxx>
32 #ifndef _BOP_IndexedDataMapOfVertexListEdgeInfo_HeaderFile
33 #include <BOP_IndexedDataMapOfVertexListEdgeInfo.hxx>
35 #ifndef _TopTools_ListOfShape_HeaderFile
36 #include <TopTools_ListOfShape.hxx>
38 #ifndef _GEOMAlgo_Algo_HeaderFile
39 #include <GEOMAlgo_Algo.hxx>
42 class TopTools_ListOfShape;
43 class BOPTColStd_ListOfListOfShape;
46 #ifndef _Standard_HeaderFile
47 #include <Standard.hxx>
49 #ifndef _Standard_Macro_HeaderFile
50 #include <Standard_Macro.hxx>
54 //! the algorithm to split multiconnexed set of edges <br>
55 //! wires on a face onto simple connexed wires <br>
57 class GEOMAlgo_WireSplitter : public GEOMAlgo_Algo {
61 void* operator new(size_t,void* anAddress)
65 void* operator new(size_t size)
67 return Standard::Allocate(size);
69 void operator delete(void *anAddress)
71 if (anAddress) Standard::Free((Standard_Address&)anAddress);
77 Standard_EXPORT GEOMAlgo_WireSplitter();
78 Standard_EXPORT virtual ~GEOMAlgo_WireSplitter();
81 Standard_EXPORT void SetFace(const TopoDS_Face& aF) ;
84 Standard_EXPORT void SetEdges(const TopTools_ListOfShape& aLE) ;
87 Standard_EXPORT const TopTools_ListOfShape& Edges() const;
90 Standard_EXPORT virtual void Perform() ;
93 Standard_EXPORT Standard_Boolean IsNothingToDo() const;
96 Standard_EXPORT const TopoDS_Face& Face() const;
99 Standard_EXPORT const BOPTColStd_ListOfListOfShape& Shapes() const;
114 Standard_Boolean myIsDone;
115 Standard_Boolean myNothingToDo;
116 BOPTColStd_ListOfListOfShape myShapes;
117 BOP_IndexedDataMapOfVertexListEdgeInfo mySmartMap;
118 TopTools_ListOfShape myEdges;
137 // other Inline functions and methods (like "C++: function call" methods)