Salome HOME
*** empty log message ***
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_BuilderArea.cxx
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 // File:        GEOMAlgo_BuilderArea.cxx
21 // Created:     
22 // Author:      Peter KURNEV 
23
24
25 #include <GEOMAlgo_BuilderArea.ixx>
26
27 #include <TopTools_ListIteratorOfListOfShape.hxx>
28 #include <TopoDS_Shape.hxx>
29
30 //=======================================================================
31 //function : 
32 //purpose  : 
33 //=======================================================================
34   GEOMAlgo_BuilderArea::GEOMAlgo_BuilderArea()
35 :
36   GEOMAlgo_Algo()
37 {
38   myContext=NULL;
39 }
40 //=======================================================================
41 //function : ~
42 //purpose  : 
43 //=======================================================================
44   GEOMAlgo_BuilderArea::~GEOMAlgo_BuilderArea()
45 {
46 }
47 //=======================================================================
48 //function : SetContext
49 //purpose  : 
50 //=======================================================================
51   void GEOMAlgo_BuilderArea::SetContext(const IntTools_Context& theContext)
52 {
53   myContext=(IntTools_Context*)&theContext;
54 }
55 //=======================================================================
56 //function : SetShapes
57 //purpose  : 
58 //=======================================================================
59   void GEOMAlgo_BuilderArea::SetShapes(const TopTools_ListOfShape& theLF)
60 {
61   TopTools_ListIteratorOfListOfShape aIt;
62   //
63   myShapes.Clear();
64   aIt.Initialize(theLF);
65   for(; aIt.More(); aIt.Next()) {
66     const TopoDS_Shape& aF=aIt.Value();
67     myShapes.Append(aF);
68   }
69 }
70 //=======================================================================
71 //function : Shapes
72 //purpose  : 
73 //=======================================================================
74   const TopTools_ListOfShape& GEOMAlgo_BuilderArea::Shapes()const
75 {
76   return myShapes;
77 }
78 //=======================================================================
79 //function : Loops
80 //purpose  : 
81 //=======================================================================
82   const TopTools_ListOfShape& GEOMAlgo_BuilderArea::Loops()const
83 {
84   return myLoops;
85 }
86 //=======================================================================
87 //function : Solids
88 //purpose  : 
89 //=======================================================================
90   const TopTools_ListOfShape& GEOMAlgo_BuilderArea::Areas()const
91 {
92   return myAreas;
93 }
94 //=======================================================================
95 //function :PerformShapesToAvoid
96 //purpose  : 
97 //=======================================================================
98   void GEOMAlgo_BuilderArea::PerformShapesToAvoid()
99 {
100 }
101 //=======================================================================
102 //function : PerformLoops
103 //purpose  : 
104 //=======================================================================
105   void GEOMAlgo_BuilderArea::PerformLoops()
106 {
107 }
108 //=======================================================================
109 //function : PerformAreas
110 //purpose  : 
111 //=======================================================================
112   void GEOMAlgo_BuilderArea::PerformAreas()
113 {
114 }
115 //=======================================================================
116 //function : PerformInternalShapes
117 //purpose  : 
118 //=======================================================================
119   void GEOMAlgo_BuilderArea::PerformInternalShapes()
120 {
121 }
122