1 // Created by: VAUTHIER Jean-Claude & DAUTRY Philippe
2 // Copyright (c) 1997-1999 Matra Datavision
3 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
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
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.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
18 //Version Date Purpose
19 // 0.0 Feb 10 1997 Creation
22 #include <DDF_Data.hxx>
23 #include <Draw_Display.hxx>
24 #include <Draw_Drawable3D.hxx>
25 #include <Standard_GUID.hxx>
26 #include <Standard_Type.hxx>
27 #include <TCollection_AsciiString.hxx>
28 #include <TDF_Attribute.hxx>
29 #include <TDF_AttributeIterator.hxx>
30 #include <TDF_ChildIterator.hxx>
31 #include <TDF_Data.hxx>
32 #include <TDF_IDFilter.hxx>
33 #include <TDF_Label.hxx>
34 #include <TDF_Tool.hxx>
36 IMPLEMENT_STANDARD_RTTIEXT(DDF_Data,Draw_Drawable3D)
38 //=======================================================================
41 //=======================================================================
42 DDF_Data::DDF_Data(const Handle(TDF_Data)& aDF) : myDF (aDF) {}
46 //=======================================================================
49 //=======================================================================
51 void DDF_Data::DrawOn(Draw_Display& /*dis*/) const
53 { cout<<"DDF_Data"<<endl; }
57 //=======================================================================
60 //=======================================================================
62 Handle(Draw_Drawable3D) DDF_Data::Copy() const { return new DDF_Data (myDF); }
66 //=======================================================================
69 //=======================================================================
71 void DDF_Data::Dump(Standard_OStream& S) const
74 TDF_Tool::DeepDump(S,myDF);
78 //=======================================================================
79 //function : DataFramework
81 //=======================================================================
83 Handle(TDF_Data) DDF_Data::DataFramework () const { return myDF; }
88 //=======================================================================
89 //function : DataFramework
91 //=======================================================================
93 void DDF_Data::DataFramework (const Handle(TDF_Data)& aDF)
100 //=======================================================================
103 //=======================================================================
105 void DDF_Data::Whatis (Draw_Interpretor& I) const
108 I << "Data Framework";