42cf5bc1 |
1 | // Created on: 2000-03-01 |
2 | // Created by: Denis PASCAL |
3 | // Copyright (c) 2000-2014 OPEN CASCADE SAS |
4 | // |
5 | // This file is part of Open CASCADE Technology software library. |
6 | // |
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. |
12 | // |
13 | // Alternatively, this file may be used under the terms of Open CASCADE |
14 | // commercial license or contractual agreement. |
15 | |
16 | #ifndef _DDocStd_DrawDocument_HeaderFile |
17 | #define _DDocStd_DrawDocument_HeaderFile |
18 | |
19 | #include <Standard.hxx> |
20 | #include <Standard_Type.hxx> |
21 | |
22 | #include <DDF_Data.hxx> |
23 | #include <Standard_OStream.hxx> |
24 | #include <Draw_Interpretor.hxx> |
25 | class TDocStd_Document; |
26 | class Draw_Display; |
27 | class Draw_Drawable3D; |
28 | |
29 | |
30 | class DDocStd_DrawDocument; |
31 | DEFINE_STANDARD_HANDLE(DDocStd_DrawDocument, DDF_Data) |
32 | |
33 | //! draw variable for TDocStd_Document. |
34 | //! ================================== |
35 | class DDocStd_DrawDocument : public DDF_Data |
36 | { |
37 | |
38 | public: |
39 | |
40 | |
41 | Standard_EXPORT static Handle(DDocStd_DrawDocument) Find (const Handle(TDocStd_Document)& Doc); |
42 | |
43 | Standard_EXPORT DDocStd_DrawDocument(const Handle(TDocStd_Document)& Doc); |
44 | |
45 | Standard_EXPORT Handle(TDocStd_Document) GetDocument() const; |
46 | |
79104795 |
47 | Standard_EXPORT void DrawOn (Draw_Display& dis) const Standard_OVERRIDE; |
42cf5bc1 |
48 | |
49 | Standard_EXPORT virtual Handle(Draw_Drawable3D) Copy() const Standard_OVERRIDE; |
50 | |
51 | Standard_EXPORT virtual void Dump (Standard_OStream& S) const Standard_OVERRIDE; |
52 | |
53 | Standard_EXPORT virtual void Whatis (Draw_Interpretor& I) const Standard_OVERRIDE; |
54 | |
55 | |
56 | |
57 | |
92efcf78 |
58 | DEFINE_STANDARD_RTTIEXT(DDocStd_DrawDocument,DDF_Data) |
42cf5bc1 |
59 | |
60 | protected: |
61 | |
62 | |
63 | |
64 | |
65 | private: |
66 | |
67 | |
68 | Handle(TDocStd_Document) myDocument; |
69 | |
70 | |
71 | }; |
72 | |
73 | |
74 | |
75 | |
76 | |
77 | |
78 | |
79 | #endif // _DDocStd_DrawDocument_HeaderFile |