MAK Data Logger API Documentation for HLA
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
examples
stateObserver
stateObView.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
******************************************************************************/
9
10
#pragma once
11
12
#include "
stateObserver.h
"
13
14
#include <
lgrGuiComponent.h
>
15
#include <
timeComponent.h
>
16
#include <
lgrZoomableWidget.h
>
17
18
class
QWidget
;
19
20
namespace
MAKLogger
21
{
22
class
DtLgrAppGui;
23
class
DtLgrGuiModel;
24
class
DtProgressiveLineGraph;
25
class
DtStateObjectViewWidget;
26
class
DtStateObserverController;
27
31
class
DT_DLL_STATEOBSERVER
DtStateObserverView
:
public
DtLgrGuiComponent
32
{
33
34
public
:
35
37
DtStateObserverView
(
DtLgrAppGui
*,
DtStateObserverController
*);
38
40
virtual
~
DtStateObserverView
();
41
43
void
setTotalObjectCount(
int
count);
44
46
void
setRemovedObjectCount(
int
count);
47
49
void
setUnknownObjectCount(
int
count);
50
52
void
setEntityCount(
int
count);
53
55
void
setAggregateCount(
int
count);
56
58
void
setEnvironmentalProcessCount(
int
count);
59
61
virtual
QWidget
* initialize(
QWidget
* parent);
62
64
virtual
void
activate();
65
67
virtual
void
deactivate();
68
70
virtual
bool
canCloseFile()
const
;
71
73
void
startView();
74
76
void
stopView();
77
82
virtual
double
updateTime();
83
86
virtual
void
update();
87
91
virtual
MAKLogger::DtLgrZoomableWidget
* zoomComponent();
92
93
94
protected
:
95
DtLgrAppGui
*
myGui
;
96
DtLgrGuiModel
*
myModel
;
97
DtStateObserverController
*
myController
;
98
MAKLogger::DtProgressiveLineGraph
*
myGraph
;
99
DtStateObjectViewWidget
*
myWidget
;
100
bool
myActiveState
;
101
int
myCurrentUpdateCount
;
102
DtAbsoluteTime
myLastGraphTime
;
103
104
// Update at 1/10 the default redraw rate.
105
const
static
int
theRequestUpdateRate = 10;
106
107
enum
GraphIds
108
{
109
Graph_TotalObjectCount = 1,
110
Graph_RemovedObjectCount
,
111
112
Graph_UnknownObjectCount
,
113
Graph_EntityCount
,
114
Graph_AggregateCount
,
115
Graph_EnvironmentalProcessCount
116
};
117
118
};
119
}
120
Document ID: Generated on Mon Jan 19 08:20:14 EST 2015 from SVN revision 149581
Copyright © 2005-2012 VT MÄK. All Rights Reserved (
www.mak.com
)