0029915: Porting to VC 2017 : Regressions in Modeling Algorithms on VC 2017
[occt.git] / src / TopOpeBRepDS / TopOpeBRepDS_GeometryData.cxx
1 // Created on: 1994-05-26
2 // Created by: Jean Yves LEBEY
3 // Copyright (c) 1994-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
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
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.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17
18 #include <TopOpeBRepDS_GeometryData.hxx>
19 #include <TopOpeBRepDS_Interference.hxx>
20 #include <TopOpeBRepDS_ListIteratorOfListOfInterference.hxx>
21
22 //=======================================================================
23 //function : TopOpeBRepDS_GeometryData
24 //purpose  : 
25 //=======================================================================
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 }