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
6 // This file is part of Open CASCADE Technology software library.
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.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
18 #include <TopOpeBRepDS_GeometryData.hxx>
19 #include <TopOpeBRepDS_Interference.hxx>
20 #include <TopOpeBRepDS_ListIteratorOfListOfInterference.hxx>
22 //=======================================================================
23 //function : TopOpeBRepDS_GeometryData
25 //=======================================================================
26 TopOpeBRepDS_GeometryData::TopOpeBRepDS_GeometryData()
30 //modified by NIZNHY-PKV Tue Oct 30 09:25:59 2001 f
31 //=======================================================================
32 //function : TopOpeBRepDS_GeometryData::TopOpeBRepDS_GeometryData
34 //=======================================================================
35 TopOpeBRepDS_GeometryData::TopOpeBRepDS_GeometryData(const TopOpeBRepDS_GeometryData& Other)
39 //=======================================================================
42 //=======================================================================
43 void TopOpeBRepDS_GeometryData::Assign(const TopOpeBRepDS_GeometryData& Other)
45 myInterferences.Clear();
47 TopOpeBRepDS_ListIteratorOfListOfInterference anIt(Other.myInterferences);
48 for (; anIt.More(); anIt.Next()) {
49 myInterferences.Append(anIt.Value());
52 //modified by NIZNHY-PKV Tue Oct 30 09:25:49 2001 t
54 //=======================================================================
55 //function : Interferences
57 //=======================================================================
59 const TopOpeBRepDS_ListOfInterference& TopOpeBRepDS_GeometryData::Interferences() const
61 return myInterferences;
64 //=======================================================================
65 //function : ChangeInterferences
67 //=======================================================================
69 TopOpeBRepDS_ListOfInterference& TopOpeBRepDS_GeometryData::ChangeInterferences()
71 return myInterferences;
74 //=======================================================================
75 //function : AddInterference
77 //=======================================================================
79 void TopOpeBRepDS_GeometryData::AddInterference(const Handle(TopOpeBRepDS_Interference)& I)
81 myInterferences.Append(I);