Salome HOME
dbc4f51fb927d5d5e9134c273801b6edc4216f6b
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_BuilderArea.cxx
1 //  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 //  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 //  This library is free software; you can redistribute it and/or
7 //  modify it under the terms of the GNU Lesser General Public
8 //  License as published by the Free Software Foundation; either
9 //  version 2.1 of the License.
10 //
11 //  This library is distributed in the hope that it will be useful,
12 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 //  Lesser General Public License for more details.
15 //
16 //  You should have received a copy of the GNU Lesser General Public
17 //  License along with this library; if not, write to the Free Software
18 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 //
20 //  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 // File:        GEOMAlgo_BuilderArea.cxx
23 // Created:     
24 // Author:      Peter KURNEV 
25 //
26 #include <GEOMAlgo_BuilderArea.ixx>
27
28 #include <TopTools_ListIteratorOfListOfShape.hxx>
29 #include <TopoDS_Shape.hxx>
30
31 //=======================================================================
32 //function : 
33 //purpose  : 
34 //=======================================================================
35   GEOMAlgo_BuilderArea::GEOMAlgo_BuilderArea()
36 :
37   GEOMAlgo_Algo()
38 {
39   myContext=NULL;
40 }
41 //=======================================================================
42 //function : ~
43 //purpose  : 
44 //=======================================================================
45   GEOMAlgo_BuilderArea::~GEOMAlgo_BuilderArea()
46 {
47 }
48 //=======================================================================
49 //function : SetContext
50 //purpose  : 
51 //=======================================================================
52   void GEOMAlgo_BuilderArea::SetContext(const IntTools_Context& theContext)
53 {
54   myContext=(IntTools_Context*)&theContext;
55 }
56 //=======================================================================
57 //function : SetShapes
58 //purpose  : 
59 //=======================================================================
60   void GEOMAlgo_BuilderArea::SetShapes(const TopTools_ListOfShape& theLF)
61 {
62   TopTools_ListIteratorOfListOfShape aIt;
63   //
64   myShapes.Clear();
65   aIt.Initialize(theLF);
66   for(; aIt.More(); aIt.Next()) {
67     const TopoDS_Shape& aF=aIt.Value();
68     myShapes.Append(aF);
69   }
70 }
71 //=======================================================================
72 //function : Shapes
73 //purpose  : 
74 //=======================================================================
75   const TopTools_ListOfShape& GEOMAlgo_BuilderArea::Shapes()const
76 {
77   return myShapes;
78 }
79 //=======================================================================
80 //function : Loops
81 //purpose  : 
82 //=======================================================================
83   const TopTools_ListOfShape& GEOMAlgo_BuilderArea::Loops()const
84 {
85   return myLoops;
86 }
87 //=======================================================================
88 //function : Solids
89 //purpose  : 
90 //=======================================================================
91   const TopTools_ListOfShape& GEOMAlgo_BuilderArea::Areas()const
92 {
93   return myAreas;
94 }
95 //=======================================================================
96 //function :PerformShapesToAvoid
97 //purpose  : 
98 //=======================================================================
99   void GEOMAlgo_BuilderArea::PerformShapesToAvoid()
100 {
101 }
102 //=======================================================================
103 //function : PerformLoops
104 //purpose  : 
105 //=======================================================================
106   void GEOMAlgo_BuilderArea::PerformLoops()
107 {
108 }
109 //=======================================================================
110 //function : PerformAreas
111 //purpose  : 
112 //=======================================================================
113   void GEOMAlgo_BuilderArea::PerformAreas()
114 {
115 }
116 //=======================================================================
117 //function : PerformInternalShapes
118 //purpose  : 
119 //=======================================================================
120   void GEOMAlgo_BuilderArea::PerformInternalShapes()
121 {
122 }
123