0031313: Foundation Classes - Dump improvement for classes
[occt.git] / src / Prs3d / Prs3d_PresentationShadow.cxx
CommitLineData
679ecdee 1// Created on: 2014-03-12
2// Created by: Kirill GAVRILOV
3// Copyright (c) 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#include <Prs3d_PresentationShadow.hxx>
17
7dd7c146 18IMPLEMENT_STANDARD_RTTIEXT(Prs3d_PresentationShadow, Graphic3d_Structure)
92efcf78 19
679ecdee 20//=======================================================================
21//function : Prs3d_PresentationShadow
22//purpose :
23//=======================================================================
24Prs3d_PresentationShadow::Prs3d_PresentationShadow (const Handle(Graphic3d_StructureManager)& theViewer,
7dd7c146 25 const Handle(Graphic3d_Structure)& thePrs)
26: Graphic3d_Structure (theViewer, thePrs),
27 myParentAffinity (thePrs->CStructure()->ViewAffinity),
28 myParentStructId (thePrs->Identification())
679ecdee 29{
30 //
31}
770fa4d4 32
33//=======================================================================
34//function : CalculateBoundBox
35//purpose :
36//=======================================================================
37void Prs3d_PresentationShadow::CalculateBoundBox()
38{
39 //
40}
bc73b006 41
42// =======================================================================
43// function : DumpJson
44// purpose :
45// =======================================================================
46void Prs3d_PresentationShadow::DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth) const
47{
48 OCCT_DUMP_TRANSIENT_CLASS_BEGIN (theOStream)
49 OCCT_DUMP_BASE_CLASS (theOStream, theDepth, Graphic3d_Structure)
50
51 OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, myParentAffinity.get())
52
53 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myParentStructId)
54}