VR-Forces Development_Version 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  };
53 
59  {
60  public: // public typedefs and enumerations
61  public: // public constructors and destructors
62  protected:
63 
66 
68  virtual ~DtStatsHandlerManager();
69 
70  private:
71 
75  DtStatsHandlerManager &operator=(const DtStatsHandlerManager &other);
76 
77  public:
78 
80  virtual void toggleOnScreenStats();
81 
83  virtual void printStats();
84 
86  virtual void recreateStatsHandler();
87 
88  public:
89 
91  static DtStatsHandlerManager& instance( DtDe& de );
92 
93  protected:
94 
96 
97  osg::ref_ptr<DtStatsHandler> myStatsHandler;
98  };
99 }

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)