Loading files
3d097a032This file is pinned to the selected release. Download the original to open it in your design tool.
// 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 <Prs3d_Presentation.hxx>
//! 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 occ::handle<Graphic3d_StructureManager>& theViewer,
const occ::handle<Graphic3d_Structure>& thePrs);
//! Returns the id of the parent presentation
inline int ParentId() const { return myParentStructId; }
//! Returns view affinity of the parent presentation
inline const occ::handle<Graphic3d_ViewAffinity>& ParentAffinity() const
{
return myParentAffinity;
}
//! Do nothing - axis-aligned bounding box should be initialized from parent structure.
Standard_EXPORT void CalculateBoundBox() override;
//! Dumps the content of me into the stream
Standard_EXPORT void DumpJson(Standard_OStream& theOStream, int theDepth = -1) const override;
private:
occ::handle<Graphic3d_ViewAffinity> myParentAffinity;
int myParentStructId;
};
#endif // _Prs3d_PresentationShadow_HeaderFile