// Created on: 2014-03-12 // Created by: Kirill GAVRILOV // Copyright (c) 2014 OPEN CASCADE SAS // // This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it under // the terms of the GNU Lesser General Public License version 2.1 as published // by the Free Software Foundation, with special exception defined in the file // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT // distribution for complete text of the license and disclaimer of any warranty. // // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. #ifndef _Prs3d_PresentationShadow_HeaderFile #define _Prs3d_PresentationShadow_HeaderFile #include //! Defines a "shadow" of existing presentation object with custom aspects. class Prs3d_PresentationShadow : public Graphic3d_Structure { DEFINE_STANDARD_RTTIEXT(Prs3d_PresentationShadow, Graphic3d_Structure) public: //! Constructs a shadow of existing presentation object. Standard_EXPORT Prs3d_PresentationShadow (const Handle(Graphic3d_StructureManager)& theViewer, const Handle(Graphic3d_Structure)& thePrs); //! Returns the id of the parent presentation inline Standard_Integer ParentId() const { return myParentStructId; } //! Returns view affinity of the parent presentation inline const Handle(Graphic3d_ViewAffinity)& ParentAffinity() const { return myParentAffinity; } //! Do nothing - axis-aligned bounding box should be initialized from parent structure. Standard_EXPORT virtual void CalculateBoundBox() Standard_OVERRIDE; //! Dumps the content of me into the stream Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const Standard_OVERRIDE; private: Handle(Graphic3d_ViewAffinity) myParentAffinity; Standard_Integer myParentStructId; }; DEFINE_STANDARD_HANDLE(Prs3d_PresentationShadow, Graphic3d_Structure) #endif // _Prs3d_PresentationShadow_HeaderFile