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