|
||||
File indexing completed on 2025-01-18 10:04:21
0001 // Copyright (c) 2017 OPEN CASCADE SAS 0002 // 0003 // This file is part of Open CASCADE Technology software library. 0004 // 0005 // This library is free software; you can redistribute it and/or modify it under 0006 // the terms of the GNU Lesser General Public License version 2.1 as published 0007 // by the Free Software Foundation, with special exception defined in the file 0008 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT 0009 // distribution for complete text of the license and disclaimer of any warranty. 0010 // 0011 // Alternatively, this file may be used under the terms of Open CASCADE 0012 // commercial license or contractual agreement. 0013 0014 #ifndef _OpenGl_FrameStats_HeaderFile 0015 #define _OpenGl_FrameStats_HeaderFile 0016 0017 #include <Graphic3d_FrameStats.hxx> 0018 #include <NCollection_IndexedMap.hxx> 0019 0020 class Graphic3d_CStructure; 0021 0022 //! Class storing the frame statistics. 0023 class OpenGl_FrameStats : public Graphic3d_FrameStats 0024 { 0025 DEFINE_STANDARD_RTTIEXT(OpenGl_FrameStats, Graphic3d_FrameStats) 0026 public: 0027 0028 //! Default constructor. 0029 Standard_EXPORT OpenGl_FrameStats(); 0030 0031 //! Destructor. 0032 Standard_EXPORT virtual ~OpenGl_FrameStats(); 0033 0034 public: 0035 0036 //! Copy stats values into another instance (create new instance, if not exists). 0037 //! The main use of this method is to track changes in statistics (e.g. in conjunction with IsEqual() method). 0038 //! @return TRUE if frame data has been changed so that the presentation should be updated 0039 Standard_EXPORT virtual bool IsFrameUpdated (Handle(OpenGl_FrameStats)& thePrev) const; 0040 0041 protected: 0042 0043 //! Method to collect statistics from the View; called by FrameEnd(). 0044 Standard_EXPORT virtual void updateStatistics (const Handle(Graphic3d_CView)& theView, 0045 bool theIsImmediateOnly) Standard_OVERRIDE; 0046 0047 //! Updates counters for structures. 0048 Standard_EXPORT virtual void updateStructures (Standard_Integer theViewId, 0049 const NCollection_IndexedMap<const Graphic3d_CStructure*>& theStructures, 0050 Standard_Boolean theToCountElems, 0051 Standard_Boolean theToCountTris, 0052 Standard_Boolean theToCountMem); 0053 0054 }; 0055 0056 DEFINE_STANDARD_HANDLE(OpenGl_FrameStats, Graphic3d_FrameStats) 0057 0058 #endif // _OpenGl_FrameStats_HeaderFile
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |