0024057: Eliminate compiler warning C4100 in MSVC++ with warning level 4
[occt.git] / src / DDocStd / DDocStd_DrawDocument.cxx
CommitLineData
b311480e 1// Copyright (c) 1999-2012 OPEN CASCADE SAS
2//
3// The content of this file is subject to the Open CASCADE Technology Public
4// License Version 6.5 (the "License"). You may not use the content of this file
5// except in compliance with the License. Please obtain a copy of the License
6// at http://www.opencascade.org and read it completely before using this file.
7//
8// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
9// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
10//
11// The Original Code and all software distributed under the License is
12// distributed on an "AS IS" basis, without warranty of any kind, and the
13// Initial Developer hereby disclaims all such warranties, including without
14// limitation, any warranties of merchantability, fitness for a particular
15// purpose or non-infringement. Please see the License for the specific terms
16// and conditions governing the rights and limitations under the License.
17
7fd59977 18
19#include <DDocStd_DrawDocument.ixx>
20
21#include <TDocStd_Document.hxx>
22#include <TDF_Tool.hxx>
23#include <TDF_Data.hxx>
24#include <TCollection_AsciiString.hxx>
25
26
27//=======================================================================
28//function : Find
29//purpose :
30//=======================================================================
31
35e08fe8 32Handle(DDocStd_DrawDocument) DDocStd_DrawDocument::Find (const Handle(TDocStd_Document)& /*Doc*/)
7fd59977 33{
34Handle(DDocStd_DrawDocument) adoc;
35 return adoc;
36}
37
38
39//=======================================================================
40//function : DDocStd_DrawDocument
41//purpose :
42//=======================================================================
43
44DDocStd_DrawDocument::DDocStd_DrawDocument (const Handle(TDocStd_Document)& Doc)
45: DDF_Data(new TDF_Data), // Doc->GetData())
46 myDocument(Doc)
47{
48 DataFramework(Doc->GetData());
49}
50
51//=======================================================================
52//function : GetDocument
53//purpose :
54//=======================================================================
55
56Handle(TDocStd_Document) DDocStd_DrawDocument::GetDocument() const
57{
58 return myDocument;
59}
60
61//=======================================================================
62//function : DrawOn
63//purpose :
64//=======================================================================
65
35e08fe8 66void DDocStd_DrawDocument::DrawOn(Draw_Display& /*dis*/) const
7fd59977 67{
68}
69
70//=======================================================================
71//function : Copy
72//purpose :
73//=======================================================================
74
75Handle(Draw_Drawable3D) DDocStd_DrawDocument::Copy() const
76{
77 Handle(DDocStd_DrawDocument) D = new DDocStd_DrawDocument (myDocument);
78 return D;
79}
80
81//=======================================================================
82//function : Dump
83//purpose :
84//=======================================================================
85
86void DDocStd_DrawDocument::Dump (Standard_OStream& S) const
87{
88 Handle(TDocStd_Document) STDDOC = Handle(TDocStd_Document)::DownCast(myDocument);
89 if (!STDDOC.IsNull()) {
90 S << "TDocStd_Document\n";
91 DDF_Data::Dump(S);
92 }
93 else {
94 S << myDocument->DynamicType()->Name() << " is not a CAF document" << endl;
95 }
96}
97
98//=======================================================================
99//function : Whatis
100//purpose :
101//=======================================================================
102
103void DDocStd_DrawDocument::Whatis(Draw_Interpretor& I) const
104{
105 I << myDocument->DynamicType()->Name();
106}
107
108