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 | // Version: 0.0 |
b311480e |
18 | //Version Date Purpose |
7fd59977 |
19 | // 0.0 Feb 10 1997 Creation |
20 | |
7fd59977 |
21 | #include <DDF.hxx> |
42cf5bc1 |
22 | #include <DDF_Data.hxx> |
23 | #include <Draw_Display.hxx> |
24 | #include <Draw_Drawable3D.hxx> |
7fd59977 |
25 | #include <Standard_GUID.hxx> |
42cf5bc1 |
26 | #include <Standard_Type.hxx> |
7fd59977 |
27 | #include <TCollection_AsciiString.hxx> |
7fd59977 |
28 | #include <TDF_Attribute.hxx> |
7fd59977 |
29 | #include <TDF_AttributeIterator.hxx> |
42cf5bc1 |
30 | #include <TDF_ChildIterator.hxx> |
31 | #include <TDF_Data.hxx> |
7fd59977 |
32 | #include <TDF_IDFilter.hxx> |
42cf5bc1 |
33 | #include <TDF_Label.hxx> |
7fd59977 |
34 | #include <TDF_Tool.hxx> |
35 | |
92efcf78 |
36 | IMPLEMENT_STANDARD_RTTIEXT(DDF_Data,Draw_Drawable3D) |
37 | |
7fd59977 |
38 | //======================================================================= |
39 | //function : DDF_Data |
40 | //purpose : |
41 | //======================================================================= |
7fd59977 |
42 | DDF_Data::DDF_Data(const Handle(TDF_Data)& aDF) : myDF (aDF) {} |
43 | |
44 | |
45 | |
46 | //======================================================================= |
47 | //function : DrawOn |
48 | //purpose : |
49 | //======================================================================= |
50 | |
35e08fe8 |
51 | void DDF_Data::DrawOn(Draw_Display& /*dis*/) const |
7fd59977 |
52 | |
53 | { cout<<"DDF_Data"<<endl; } |
54 | |
55 | |
56 | |
57 | //======================================================================= |
58 | //function : Copy |
59 | //purpose : |
60 | //======================================================================= |
61 | |
62 | Handle(Draw_Drawable3D) DDF_Data::Copy() const { return new DDF_Data (myDF); } |
63 | |
64 | |
65 | |
66 | //======================================================================= |
67 | //function : Dump |
68 | //purpose : |
69 | //======================================================================= |
70 | |
71 | void DDF_Data::Dump(Standard_OStream& S) const |
72 | |
73 | { |
74 | TDF_Tool::DeepDump(S,myDF); |
75 | } |
76 | |
77 | |
78 | //======================================================================= |
79 | //function : DataFramework |
80 | //purpose : |
81 | //======================================================================= |
82 | |
83 | Handle(TDF_Data) DDF_Data::DataFramework () const { return myDF; } |
84 | |
85 | |
86 | |
87 | |
88 | //======================================================================= |
89 | //function : DataFramework |
90 | //purpose : |
91 | //======================================================================= |
92 | |
93 | void DDF_Data::DataFramework (const Handle(TDF_Data)& aDF) |
94 | |
95 | { myDF = aDF; } |
96 | |
97 | |
98 | |
99 | |
100 | //======================================================================= |
101 | //function : Whatis |
102 | //purpose : |
103 | //======================================================================= |
104 | |
105 | void DDF_Data::Whatis (Draw_Interpretor& I) const |
106 | |
107 | { |
108 | I << "Data Framework"; |
109 | } |