0031642: Visualization - crash in Graphic3d_Structure::SetVisual() on redisplaying...
[occt.git] / src / Graphic3d / Graphic3d_Buffer.cxx
CommitLineData
34253146 1// Copyright (c) 2018 OPEN CASCADE SAS
2//
3// This file is part of Open CASCADE Technology software library.
4//
5// This library is free software; you can redistribute it and/or modify it under
6// the terms of the GNU Lesser General Public License version 2.1 as published
7// by the Free Software Foundation, with special exception defined in the file
8// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9// distribution for complete text of the license and disclaimer of any warranty.
10//
11// Alternatively, this file may be used under the terms of Open CASCADE
12// commercial license or contractual agreement.
13
14#include <Graphic3d_Buffer.hxx>
34253146 15#include <Graphic3d_BoundBuffer.hxx>
da87ddc3 16#include <Graphic3d_MutableIndexBuffer.hxx>
34253146 17
18IMPLEMENT_STANDARD_RTTIEXT(Graphic3d_Buffer, NCollection_Buffer)
19IMPLEMENT_STANDARD_RTTIEXT(Graphic3d_IndexBuffer, Graphic3d_Buffer)
20IMPLEMENT_STANDARD_RTTIEXT(Graphic3d_BoundBuffer, NCollection_Buffer)
da87ddc3 21IMPLEMENT_STANDARD_RTTIEXT(Graphic3d_MutableIndexBuffer, Graphic3d_IndexBuffer)
bc73b006 22
23// =======================================================================
24// function : DumpJson
25// purpose :
26// =======================================================================
27void Graphic3d_Buffer::DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth) const
28{
29 OCCT_DUMP_TRANSIENT_CLASS_BEGIN (theOStream)
30 OCCT_DUMP_BASE_CLASS (theOStream, theDepth, NCollection_Buffer)
31
32 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, Stride)
33 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, NbElements)
34 OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, NbAttributes)
35}