VR-Exchange 2.1 API Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
portalApp
pDataViewComponent.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
******************************************************************************/
5
6
#ifndef pDataViewComponent_H_
7
#define pDataViewComponent_H_
8
9
10
#include <QtCore/QObject>
11
#include <QtGui/QWidget>
12
#include "
progressiveLineGraph.h
"
13
#include <
namespace.h
>
14
#include "
pDataViewSet.h
"
15
16
class
DtProgressiveLineGraph
;
17
class
QTimer;
18
19
namespace
MAKVrExchange
{
20
21
class
DtPortalConnection;
22
25
class
DT_DLL_LIBPORTALAPP
DtDataViewComponent
:
public
QObject
26
{
27
28
29
Q_OBJECT
30
31
public
:
32
34
DtDataViewComponent
(
DtPortalConnection
*pconn,
QWidget
*parent);
35
37
virtual
~
DtDataViewComponent
();
38
40
virtual
QWidget
* getGuiFrame();
41
43
virtual
void
toggleShowData(
bool
show);
44
45
private
:
46
// Copy CTOR not Implemented -- do not copy
47
DtDataViewComponent
(
DtDataViewComponent
&other);
48
49
// Assignment Operator not Implemented -- do not copy
50
DtDataViewComponent
& operator=(
DtDataViewComponent
&other);
51
52
protected
slots:
53
55
virtual
void
update();
56
57
58
protected
:
59
61
void
initView();
62
64
double
updateGraph(
const
DtPortalViewSet
& aSet,
double
firstVisibleTime,
65
double
lastVisibleTime);
66
68
virtual
void
processMessage(
const
DtPortalMessage
& message);
69
70
QWidget
*
myMainWidget
;
71
QWidget
*
myParent
;
72
QTimer *
myTimer
;
73
74
bool
myDataOutOfSyncFlag
;
75
76
DtTime
myLastGraphTime
;
77
DtPortalConnection
*
myPConn
;
78
DtProgressiveLineGraph
*
myGraph
;
79
80
protected
:
82
static
void
portalMessageCb(
const
DtPortalMessage
&msg,
void
*userData);
83
84
static
const
int
Graph_Control = 1;
85
static
const
int
Graph_Interactions = 2;
86
static
const
int
Graph_Updates = 3;
87
88
private
:
89
// This is private since it is only safely accessed via the updateDataAcrossThread
90
// and currentDataSet functions.
91
DtPortalViewSet
myRunningDataSet
;
92
};
93
94
}
95
#endif
96
Document ID: Generated on Tue Aug 7 22:07:13 EDT 2012 from SVN revision 117874
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (
www.mak.com
)