b311480e |
1 | // Created on: 1994-05-26 |
2 | // Created by: Jean Yves LEBEY |
3 | // Copyright (c) 1994-1999 Matra Datavision |
973c2be1 |
4 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
5 | // |
973c2be1 |
6 | // This file is part of Open CASCADE Technology software library. |
b311480e |
7 | // |
d5f74e42 |
8 | // This library is free software; you can redistribute it and/or modify it under |
9 | // the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
10 | // by the Free Software Foundation, with special exception defined in the file |
11 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
12 | // distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
13 | // |
973c2be1 |
14 | // Alternatively, this file may be used under the terms of Open CASCADE |
15 | // commercial license or contractual agreement. |
7fd59977 |
16 | |
42cf5bc1 |
17 | |
18 | #include <TopOpeBRepDS_GeometryData.hxx> |
19 | #include <TopOpeBRepDS_Interference.hxx> |
7fd59977 |
20 | #include <TopOpeBRepDS_ListIteratorOfListOfInterference.hxx> |
21 | |
22 | //======================================================================= |
23 | //function : TopOpeBRepDS_GeometryData |
24 | //purpose : |
25 | //======================================================================= |
7fd59977 |
26 | TopOpeBRepDS_GeometryData::TopOpeBRepDS_GeometryData() |
27 | { |
28 | } |
29 | |
30 | //modified by NIZNHY-PKV Tue Oct 30 09:25:59 2001 f |
31 | //======================================================================= |
32 | //function : TopOpeBRepDS_GeometryData::TopOpeBRepDS_GeometryData |
33 | //purpose : |
34 | //======================================================================= |
35 | TopOpeBRepDS_GeometryData::TopOpeBRepDS_GeometryData(const TopOpeBRepDS_GeometryData& Other) |
36 | { |
37 | Assign(Other); |
38 | } |
39 | //======================================================================= |
40 | //function : Assign |
41 | //purpose : |
42 | //======================================================================= |
43 | void TopOpeBRepDS_GeometryData::Assign(const TopOpeBRepDS_GeometryData& Other) |
44 | { |
45 | myInterferences.Clear(); |
46 | |
47 | TopOpeBRepDS_ListIteratorOfListOfInterference anIt(Other.myInterferences); |
48 | for (; anIt.More(); anIt.Next()) { |
49 | myInterferences.Append(anIt.Value()); |
50 | } |
51 | } |
52 | //modified by NIZNHY-PKV Tue Oct 30 09:25:49 2001 t |
53 | |
54 | //======================================================================= |
55 | //function : Interferences |
56 | //purpose : |
57 | //======================================================================= |
58 | |
59 | const TopOpeBRepDS_ListOfInterference& TopOpeBRepDS_GeometryData::Interferences() const |
60 | { |
61 | return myInterferences; |
62 | } |
63 | |
64 | //======================================================================= |
65 | //function : ChangeInterferences |
66 | //purpose : |
67 | //======================================================================= |
68 | |
69 | TopOpeBRepDS_ListOfInterference& TopOpeBRepDS_GeometryData::ChangeInterferences() |
70 | { |
71 | return myInterferences; |
72 | } |
73 | |
74 | //======================================================================= |
75 | //function : AddInterference |
76 | //purpose : |
77 | //======================================================================= |
78 | |
79 | void TopOpeBRepDS_GeometryData::AddInterference(const Handle(TopOpeBRepDS_Interference)& I) |
80 | { |
81 | myInterferences.Append(I); |
82 | } |