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 // File: GEOMAlgo_BuilderArea.cxx
22 // Author: Peter KURNEV
25 #include <GEOMAlgo_BuilderArea.ixx>
27 #include <TopTools_ListIteratorOfListOfShape.hxx>
28 #include <TopoDS_Shape.hxx>
30 //=======================================================================
33 //=======================================================================
34 GEOMAlgo_BuilderArea::GEOMAlgo_BuilderArea()
40 //=======================================================================
43 //=======================================================================
44 GEOMAlgo_BuilderArea::~GEOMAlgo_BuilderArea()
47 //=======================================================================
48 //function : SetContext
50 //=======================================================================
51 void GEOMAlgo_BuilderArea::SetContext(const IntTools_Context& theContext)
53 myContext=(IntTools_Context*)&theContext;
55 //=======================================================================
56 //function : SetShapes
58 //=======================================================================
59 void GEOMAlgo_BuilderArea::SetShapes(const TopTools_ListOfShape& theLF)
61 TopTools_ListIteratorOfListOfShape aIt;
64 aIt.Initialize(theLF);
65 for(; aIt.More(); aIt.Next()) {
66 const TopoDS_Shape& aF=aIt.Value();
70 //=======================================================================
73 //=======================================================================
74 const TopTools_ListOfShape& GEOMAlgo_BuilderArea::Shapes()const
78 //=======================================================================
81 //=======================================================================
82 const TopTools_ListOfShape& GEOMAlgo_BuilderArea::Loops()const
86 //=======================================================================
89 //=======================================================================
90 const TopTools_ListOfShape& GEOMAlgo_BuilderArea::Areas()const
94 //=======================================================================
95 //function :PerformShapesToAvoid
97 //=======================================================================
98 void GEOMAlgo_BuilderArea::PerformShapesToAvoid()
101 //=======================================================================
102 //function : PerformLoops
104 //=======================================================================
105 void GEOMAlgo_BuilderArea::PerformLoops()
108 //=======================================================================
109 //function : PerformAreas
111 //=======================================================================
112 void GEOMAlgo_BuilderArea::PerformAreas()
115 //=======================================================================
116 //function : PerformInternalShapes
118 //=======================================================================
119 void GEOMAlgo_BuilderArea::PerformInternalShapes()