0021762: Integration of new Boolean Operation algorithm to OCCT.
[occt.git] / src / BOPAlgo / BOPAlgo_WireEdgeSet.lxx
1 // Created by: Peter KURNEV
2 // Copyright (c) 2010-2012 OPEN CASCADE SAS
3 // Copyright (c) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
4 // Copyright (c) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT,
5 //                         EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 //
7 // The content of this file is subject to the Open CASCADE Technology Public
8 // License Version 6.5 (the "License"). You may not use the content of this file
9 // except in compliance with the License. Please obtain a copy of the License
10 // at http://www.opencascade.org and read it completely before using this file.
11 //
12 // The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
13 // main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
14 //
15 // The Original Code and all software distributed under the License is
16 // distributed on an "AS IS" basis, without warranty of any kind, and the
17 // Initial Developer hereby disclaims all such warranties, including without
18 // limitation, any warranties of merchantability, fitness for a particular
19 // purpose or non-infringement. Please see the License for the specific terms
20 // and conditions governing the rights and limitations under the License.
21
22
23 //=======================================================================
24 //function : 
25 //purpose  : 
26 //=======================================================================
27   inline BOPAlgo_WireEdgeSet::BOPAlgo_WireEdgeSet()
28 {
29 }
30 //=======================================================================
31 //function : 
32 //purpose  : 
33 //=======================================================================
34   inline BOPAlgo_WireEdgeSet::BOPAlgo_WireEdgeSet(const Handle(NCollection_BaseAllocator)& theAllocator)
35 :
36   myStartShapes(theAllocator),
37   myShapes(theAllocator)
38 {
39 }
40 //=======================================================================
41 //function : ~
42 //purpose  : 
43 //=======================================================================
44   inline BOPAlgo_WireEdgeSet::~BOPAlgo_WireEdgeSet()
45 {
46 }
47 //=======================================================================
48 //function : Clear
49 //purpose  : 
50 //=======================================================================
51   inline void BOPAlgo_WireEdgeSet::Clear()
52 {
53   myStartShapes.Clear();
54   myShapes.Clear();
55 }
56 //=======================================================================
57 //function : SetFace
58 //purpose  : 
59 //=======================================================================
60   inline void BOPAlgo_WireEdgeSet::SetFace(const TopoDS_Face& aF)
61 {
62   myFace=aF;
63 }
64 //=======================================================================
65 //function : Face
66 //purpose  : 
67 //=======================================================================
68   inline const TopoDS_Face& BOPAlgo_WireEdgeSet::Face()const 
69 {
70   return myFace;
71 }
72 //=======================================================================
73 //function : AddStartElement
74 //purpose  : 
75 //=======================================================================
76   inline void BOPAlgo_WireEdgeSet::AddStartElement(const TopoDS_Shape& aE)
77 {
78   myStartShapes.Append(aE);
79 }
80 //=======================================================================
81 //function : StartElements
82 //purpose  : 
83 //=======================================================================
84   inline const BOPCol_ListOfShape& BOPAlgo_WireEdgeSet::StartElements()const
85 {
86   return myStartShapes;
87 }
88 //=======================================================================
89 //function : AddShape
90 //purpose  : 
91 //=======================================================================
92   inline void BOPAlgo_WireEdgeSet::AddShape(const TopoDS_Shape& aW)
93 {
94   myShapes.Append(aW);
95 }
96 //=======================================================================
97 //function : Shapes
98 //purpose  : 
99 //=======================================================================
100   inline const BOPCol_ListOfShape& BOPAlgo_WireEdgeSet::Shapes()const
101 {
102   return myShapes;
103 }