VR-Forces Development_Version Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrvOsg
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
>
13
#include <
vrvUtil/DtVirtualBaseClass.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
33
DtStatsHandler
();
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
58
class
DT_DLL_VRVOSG
DtStatsHandlerManager
:
public
DtVirtualBaseClass
59
{
60
public
:
// public typedefs and enumerations
61
public
:
// public constructors and destructors
62
protected
:
63
65
DtStatsHandlerManager
(
DtDe
& de);
66
68
virtual
~
DtStatsHandlerManager
();
69
70
private
:
71
73
DtStatsHandlerManager
(
const
DtStatsHandlerManager
&other);
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
95
DtDe
&
myDe
;
96
97
osg::ref_ptr<DtStatsHandler>
myStatsHandler
;
98
};
99
}
Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)