1 // Created by: 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.
16 #ifndef _DDF_Data_HeaderFile
17 #define _DDF_Data_HeaderFile
19 #include <Standard.hxx>
20 #include <Standard_Type.hxx>
22 #include <Draw_Drawable3D.hxx>
23 #include <Standard_OStream.hxx>
24 #include <Draw_Interpretor.hxx>
27 class Draw_Drawable3D;
31 DEFINE_STANDARD_HANDLE(DDF_Data, Draw_Drawable3D)
33 //! Encapsulates a data framework from TDF in a drawable object
34 class DDF_Data : public Draw_Drawable3D
40 Standard_EXPORT DDF_Data(const Handle(TDF_Data)& aDF);
42 Standard_EXPORT void DrawOn (Draw_Display& dis) const Standard_OVERRIDE;
44 Standard_EXPORT virtual Handle(Draw_Drawable3D) Copy() const Standard_OVERRIDE;
46 Standard_EXPORT virtual void Dump (Standard_OStream& S) const Standard_OVERRIDE;
48 Standard_EXPORT void DataFramework (const Handle(TDF_Data)& aDF);
50 Standard_EXPORT Handle(TDF_Data) DataFramework() const;
52 Standard_EXPORT virtual void Whatis (Draw_Interpretor& I) const Standard_OVERRIDE;
57 DEFINE_STANDARD_RTTIEXT(DDF_Data,Draw_Drawable3D)
67 Handle(TDF_Data) myDF;
78 #endif // _DDF_Data_HeaderFile