b311480e |
1 | // Created by: VAUTHIER Jean-Claude & DAUTRY Philippe |
2 | // Copyright (c) 1997-1999 Matra Datavision |
973c2be1 |
3 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
4 | // |
973c2be1 |
5 | // This file is part of Open CASCADE Technology software library. |
b311480e |
6 | // |
d5f74e42 |
7 | // This library is free software; you can redistribute it and/or modify it under |
8 | // the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
9 | // by the Free Software Foundation, with special exception defined in the file |
10 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
11 | // distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
12 | // |
973c2be1 |
13 | // Alternatively, this file may be used under the terms of Open CASCADE |
14 | // commercial license or contractual agreement. |
b311480e |
15 | |
7fd59977 |
16 | // ------------ |
7fd59977 |
17 | |
18 | // Version: 0.0 |
b311480e |
19 | //Version Date Purpose |
7fd59977 |
20 | // 0.0 Feb 10 1997 Creation |
21 | |
22 | |
23 | |
24 | #include <DDF_Data.ixx> |
25 | #include <DDF.hxx> |
26 | |
27 | #include <Standard_GUID.hxx> |
28 | |
29 | #include <TCollection_AsciiString.hxx> |
30 | |
31 | #include <TDF_Attribute.hxx> |
32 | #include <TDF_Label.hxx> |
33 | #include <TDF_ChildIterator.hxx> |
34 | #include <TDF_AttributeIterator.hxx> |
35 | #include <TDF_IDFilter.hxx> |
36 | #include <TDF_Tool.hxx> |
37 | |
38 | |
39 | |
40 | //======================================================================= |
41 | //function : DDF_Data |
42 | //purpose : |
43 | //======================================================================= |
44 | |
45 | DDF_Data::DDF_Data(const Handle(TDF_Data)& aDF) : myDF (aDF) {} |
46 | |
47 | |
48 | |
49 | //======================================================================= |
50 | //function : DrawOn |
51 | //purpose : |
52 | //======================================================================= |
53 | |
35e08fe8 |
54 | void DDF_Data::DrawOn(Draw_Display& /*dis*/) const |
7fd59977 |
55 | |
56 | { cout<<"DDF_Data"<<endl; } |
57 | |
58 | |
59 | |
60 | //======================================================================= |
61 | //function : Copy |
62 | //purpose : |
63 | //======================================================================= |
64 | |
65 | Handle(Draw_Drawable3D) DDF_Data::Copy() const { return new DDF_Data (myDF); } |
66 | |
67 | |
68 | |
69 | //======================================================================= |
70 | //function : Dump |
71 | //purpose : |
72 | //======================================================================= |
73 | |
74 | void DDF_Data::Dump(Standard_OStream& S) const |
75 | |
76 | { |
77 | TDF_Tool::DeepDump(S,myDF); |
78 | } |
79 | |
80 | |
81 | //======================================================================= |
82 | //function : DataFramework |
83 | //purpose : |
84 | //======================================================================= |
85 | |
86 | Handle(TDF_Data) DDF_Data::DataFramework () const { return myDF; } |
87 | |
88 | |
89 | |
90 | |
91 | //======================================================================= |
92 | //function : DataFramework |
93 | //purpose : |
94 | //======================================================================= |
95 | |
96 | void DDF_Data::DataFramework (const Handle(TDF_Data)& aDF) |
97 | |
98 | { myDF = aDF; } |
99 | |
100 | |
101 | |
102 | |
103 | //======================================================================= |
104 | //function : Whatis |
105 | //purpose : |
106 | //======================================================================= |
107 | |
108 | void DDF_Data::Whatis (Draw_Interpretor& I) const |
109 | |
110 | { |
111 | I << "Data Framework"; |
112 | } |