Salome HOME
Update mail address
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_ShapeSolid.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_ShapeSolid.cxx
21 // Created:     Thu Jan 13 12:54:48 2005
22 // Author:      Peter KURNEV
23 //              <pkv@irinox>
24
25
26 #include <GEOMAlgo_ShapeSolid.ixx>
27
28 #include <TopTools_ListIteratorOfListOfShape.hxx>
29 #include <TopTools_ListOfShape.hxx>
30
31 //=======================================================================
32 //function : GEOMAlgo_ShapeSolid
33 //purpose  : 
34 //=======================================================================
35 GEOMAlgo_ShapeSolid::GEOMAlgo_ShapeSolid()
36 :
37   GEOMAlgo_Algo(),
38   myRank(0),
39   myDSFiller(NULL)
40 {
41 }
42 //=======================================================================
43 //function : ~
44 //purpose  : 
45 //=======================================================================
46 GEOMAlgo_ShapeSolid::~GEOMAlgo_ShapeSolid()
47 {
48 }
49 //=======================================================================
50 //function : SetFiller
51 //purpose  : 
52 //=======================================================================
53 void GEOMAlgo_ShapeSolid::SetFiller(const BOPTools_DSFiller& aDSFiller)
54 {
55   myDSFiller=(BOPTools_DSFiller*) &aDSFiller;
56 }
57 //=======================================================================
58 // function: Shapes
59 // purpose: 
60 //=======================================================================
61 const TopTools_ListOfShape& GEOMAlgo_ShapeSolid::Shapes(const TopAbs_State aState) const
62 {
63   const TopTools_ListOfShape *pL;
64   //
65   switch (aState) {
66     case TopAbs_IN:
67       pL=&myLSIN;
68       break;
69     case TopAbs_OUT:
70       pL=&myLSOUT;
71       break;
72     case TopAbs_ON:
73       pL=&myLSON;
74       break;  
75     default:
76       pL=&myLSON;
77       break; 
78   }
79   return *pL;
80 }