VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtStatsHandlerManager.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2016 VT MAK
3 ** All rights reserved.
4 ******************************************************************************/
5 
6 #pragma once
7 
11 
12 #include <vrvOsg/vrvOsg.h>
14 
15 #include <osgViewer/ViewerEventHandlers>
16 
17 namespace makVrv
18 {
19  class DtDe;
20  class DtBaseConnection;
21 
28  class DT_DLL_VRVOSG DtStatsHandler : public osgViewer::StatsHandler
29  {
30  public: // public typedefs and enumerations
31  public: // public constructors and destructors
34 
35  protected:
37  virtual ~DtStatsHandler();
38 
39  private:
41  DtStatsHandler(const DtStatsHandler &other);
43  DtStatsHandler &operator=(const DtStatsHandler &other);
44 
45  public:
46 
48  virtual int getStatsType();
49 
51  virtual bool handle(const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa);
52  protected:
53 
55  };
56 
62  {
63  public: // public typedefs and enumerations
64  public: // public constructors and destructors
65  protected:
66 
69 
71  virtual ~DtStatsHandlerManager();
72 
73  private:
74 
78  DtStatsHandlerManager &operator=(const DtStatsHandlerManager &other);
79 
80  public:
81 
83  virtual void toggleOnScreenStats();
84 
86  virtual void printStats();
87 
89  virtual void recreateStatsHandler();
90 
91  public:
92 
94  static DtStatsHandlerManager& instance( DtDe& de );
95 
96  protected:
97 
99 
100  osg::ref_ptr<DtStatsHandler> myStatsHandler;
101  };
102 }

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)