Salome HOME
Join modifications from BR_Dev_For_4_0 tag V4_1_1.
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_WireEdgeSet.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_WireEdgeSet.cxx
21 // Created:     
22 // Author:      Peter KURNEV
23 //              <pkv@irinox>
24
25 #include <GEOMAlgo_WireEdgeSet.ixx>
26
27 //=======================================================================
28 //function : 
29 //purpose  : 
30 //=======================================================================
31   GEOMAlgo_WireEdgeSet::GEOMAlgo_WireEdgeSet()
32 {
33   Clear();
34 }
35
36 //=======================================================================
37 //function : Clear
38 //purpose  : 
39 //=======================================================================
40   void GEOMAlgo_WireEdgeSet::Clear()
41 {
42   myStartShapes.Clear();
43   myShapes.Clear();
44 }
45 //=======================================================================
46 //function : SetFace
47 //purpose  : 
48 //=======================================================================
49   void GEOMAlgo_WireEdgeSet::SetFace(const TopoDS_Face& aF)
50 {
51   myFace=aF;
52 }
53 //=======================================================================
54 //function : Face
55 //purpose  : 
56 //=======================================================================
57   const TopoDS_Face& GEOMAlgo_WireEdgeSet::Face()const 
58 {
59   return myFace;
60 }
61 //=======================================================================
62 //function : AddStartElement
63 //purpose  : 
64 //=======================================================================
65   void GEOMAlgo_WireEdgeSet::AddStartElement(const TopoDS_Shape& aE)
66 {
67   myStartShapes.Append(aE);
68 }
69 //=======================================================================
70 //function : StartElements
71 //purpose  : 
72 //=======================================================================
73   const  TopTools_ListOfShape& GEOMAlgo_WireEdgeSet::StartElements()const
74 {
75   return myStartShapes;
76 }
77 //=======================================================================
78 //function : AddShape
79 //purpose  : 
80 //=======================================================================
81   void GEOMAlgo_WireEdgeSet::AddShape(const TopoDS_Shape& aW)
82 {
83   myShapes.Append(aW);
84 }
85 //=======================================================================
86 //function : Shapes
87 //purpose  : 
88 //=======================================================================
89   const  TopTools_ListOfShape& GEOMAlgo_WireEdgeSet::Shapes()const
90 {
91   return myShapes;
92 }