0031642: Visualization - crash in Graphic3d_Structure::SetVisual() on redisplaying...
[occt.git] / src / OpenGl / OpenGl_Element.cxx
CommitLineData
a174a3c5 1// Created on: 2013-02-01
2// Created by: Kirill GAVRILOV
d5f74e42 3// Copyright (c) 2013-2014 OPEN CASCADE SAS
b311480e 4//
973c2be1 5// This file is part of Open CASCADE Technology software library.
b311480e 6//
d5f74e42 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
973c2be1 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.
b311480e 12//
973c2be1 13// Alternatively, this file may be used under the terms of Open CASCADE
14// commercial license or contractual agreement.
b311480e 15
a174a3c5 16#include <OpenGl_Element.hxx>
2166f0fa 17
b9f43ad1 18#include <Graphic3d_FrameStatsData.hxx>
bc73b006 19#include <Standard_Dump.hxx>
20
a174a3c5 21// =======================================================================
22// function : OpenGl_Element
23// purpose :
24// =======================================================================
25OpenGl_Element::OpenGl_Element()
26{
27 //
28}
2166f0fa 29
a174a3c5 30// =======================================================================
31// function : ~OpenGl_Element
32// purpose :
33// =======================================================================
34OpenGl_Element::~OpenGl_Element()
35{
36 //
37}
bc73b006 38
b9f43ad1 39// =======================================================================
40// function : UpdateMemStats
41// purpose :
42// =======================================================================
43void OpenGl_Element::UpdateMemStats (Graphic3d_FrameStatsDataTmp& theStats) const
44{
45 theStats[Graphic3d_FrameStatsCounter_EstimatedBytesGeom] += EstimatedDataSize();
46}
47
48// =======================================================================
49// function : UpdateDrawStats
50// purpose :
51// =======================================================================
52void OpenGl_Element::UpdateDrawStats (Graphic3d_FrameStatsDataTmp& ,
53 bool ) const
54{
55 //
56}
57
bc73b006 58// =======================================================================
59// function : DumpJson
60// purpose :
61// =======================================================================
62void OpenGl_Element::DumpJson (Standard_OStream& theOStream, Standard_Integer) const
63{
64 OCCT_DUMP_CLASS_BEGIN (theOStream, OpenGl_Element)
65 OCCT_DUMP_FIELD_VALUE_POINTER (theOStream, this)
66}