Salome HOME
Avoid linking to the native omniORB
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_WireSplitter.hxx
1 // Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
3 //
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.
8 //
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.
13 //
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
17 //
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19
20 #ifndef _GEOMAlgo_WireSplitter_HeaderFile
21 #define _GEOMAlgo_WireSplitter_HeaderFile
22
23 #ifndef _TopoDS_Face_HeaderFile
24 #include <TopoDS_Face.hxx>
25 #endif
26 #ifndef _Standard_Boolean_HeaderFile
27 #include <Standard_Boolean.hxx>
28 #endif
29 #ifndef _BOPTColStd_ListOfListOfShape_HeaderFile
30 #include <BOPTColStd_ListOfListOfShape.hxx>
31 #endif
32 #ifndef _BOP_IndexedDataMapOfVertexListEdgeInfo_HeaderFile
33 #include <BOP_IndexedDataMapOfVertexListEdgeInfo.hxx>
34 #endif
35 #ifndef _TopTools_ListOfShape_HeaderFile
36 #include <TopTools_ListOfShape.hxx>
37 #endif
38 #ifndef _GEOMAlgo_Algo_HeaderFile
39 #include <GEOMAlgo_Algo.hxx>
40 #endif
41 class TopoDS_Face;
42 class TopTools_ListOfShape;
43 class BOPTColStd_ListOfListOfShape;
44
45
46 #ifndef _Standard_HeaderFile
47 #include <Standard.hxx>
48 #endif
49 #ifndef _Standard_Macro_HeaderFile
50 #include <Standard_Macro.hxx>
51 #endif
52
53
54 //!  the algorithm to split multiconnexed set of edges <br>
55 //!  wires on a face onto simple connexed wires <br>
56 //!  . <br>
57 class GEOMAlgo_WireSplitter  : public GEOMAlgo_Algo {
58
59 public:
60
61     void* operator new(size_t,void* anAddress) 
62       {
63         return anAddress;
64       }
65     void* operator new(size_t size) 
66       { 
67         return Standard::Allocate(size); 
68       }
69     void  operator delete(void *anAddress) 
70       { 
71         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
72       }
73  // Methods PUBLIC
74  // 
75
76
77 Standard_EXPORT GEOMAlgo_WireSplitter();
78 Standard_EXPORT virtual ~GEOMAlgo_WireSplitter();
79
80
81 Standard_EXPORT   void SetFace(const TopoDS_Face& aF) ;
82
83
84 Standard_EXPORT   void SetEdges(const TopTools_ListOfShape& aLE) ;
85
86
87 Standard_EXPORT  const TopTools_ListOfShape& Edges() const;
88
89
90 Standard_EXPORT virtual  void Perform() ;
91
92
93 Standard_EXPORT   Standard_Boolean IsNothingToDo() const;
94
95
96 Standard_EXPORT  const TopoDS_Face& Face() const;
97
98
99 Standard_EXPORT  const BOPTColStd_ListOfListOfShape& Shapes() const;
100
101
102
103
104
105 protected:
106
107  // Methods PROTECTED
108  // 
109
110
111  // Fields PROTECTED
112  //
113 TopoDS_Face myFace;
114 Standard_Boolean myIsDone;
115 Standard_Boolean myNothingToDo;
116 BOPTColStd_ListOfListOfShape myShapes;
117 BOP_IndexedDataMapOfVertexListEdgeInfo mySmartMap;
118 TopTools_ListOfShape myEdges;
119
120
121 private: 
122
123  // Methods PRIVATE
124  // 
125
126
127  // Fields PRIVATE
128  //
129
130
131 };
132
133
134
135
136
137 // other Inline functions and methods (like "C++: function call" methods)
138 //
139
140
141 #endif