VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvOsg
DtOsgPerformanceStatsOverlay.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2012 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrvOsg/vrvOsg.h
>
13
14
#include <osg/ref_ptr>
15
16
#include <string>
17
#include <vector>
18
19
namespace
osg
20
{
21
class
FrameStamp;
22
}
23
24
namespace
makVrv
25
{
26
class
DtOsgRenderer;
27
class
DtWindowTextAgent;
28
class
DtStatsSet;
29
32
class
DT_DLL_VRVOSG
DtOsgPerformanceStatsOverlay
33
{
34
public
:
35
37
const
static
unsigned
int
overlayLayerId = 33;
38
40
DtOsgPerformanceStatsOverlay
(
DtDe
& de,
DtOsgRenderer
& renderer,
const
DtStatsSet
& statsSet);
41
43
void
addLabel(
const
std::string& name,
double
left,
double
top);
44
46
~
DtOsgPerformanceStatsOverlay
();
47
49
virtual
void
updateCallback();
50
51
protected
:
52
54
DtWindowTextAgent* makeLabel();
55
56
private
:
57
58
DtDe
&
myDe
;
59
DtOsgRenderer
&
myRenderer
;
60
const
char
*
myTickFormatString
;
61
62
struct
LabelParameters
63
{
64
std::string
name
;
65
double
value
;
66
DtWindowTextAgent*
label
;
67
};
68
69
int
myFrame
;
70
71
std::vector<LabelParameters>
myLabels
;
72
73
const
DtStatsSet
&
myStatsSet
;
74
};
75
}
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)