VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvCoreQt
DtQtDeTicker.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2007 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: DtQtDeTicker.h,v $ $Revision: 1.21 $ $State: Exp $
7
******************************************************************************/
8
12
13
#pragma once
14
#include <
vrvCoreQt/vrvCoreQt.h
>
15
#include <
vrvUtil/DtVirtualBaseClass.h
>
16
#include <QtCore/QObject>
17
#include <QtCore/QTimer>
18
19
class
DtTimedSection;
20
21
namespace
makVrv
22
{
23
class
DtDe;
24
29
class
DT_DLL_VRVCOREQT
DtQtDeTicker
:
public
QObject
30
{
31
32
Q_OBJECT
33
34
public
:
35
friend
class
DtQtDeTickerProvider
;
36
~
DtQtDeTicker
();
37
38
public
slots:
39
43
virtual
void
tick();
44
45
protected
:
46
50
class
DirectTickerTimer
:
public
QTimer
51
{
52
public
:
53
DirectTickerTimer
(
DtQtDeTicker
& ticker );
54
protected
:
56
virtual
bool
event(QEvent* e);
57
DtQtDeTicker
&
myTicker
;
58
};
59
61
DtQtDeTicker
(
DtDe
& de,
QObject
* parent);
62
63
protected
:
64
65
DtDe
*
myDe
;
66
DtTimedSection*
myPerformanceTimer
;
67
QTimer*
myTimer
;
68
69
};
70
74
class
DT_DLL_VRVCOREQT
DtQtDeTickerProvider
:
public
DtVirtualBaseClass
75
{
76
77
public
:
78
80
virtual
~
DtQtDeTickerProvider
();
81
83
static
DtQtDeTickerProvider
& instance(
DtDe
& de);
84
86
static
void
registerInstance(
DtDe
& de,
DtQtDeTickerProvider
* instance);
87
90
DtQtDeTicker
* ticker(
QObject
* parent);
91
92
protected
:
93
95
DtQtDeTickerProvider
(
DtDe
& de);
96
97
protected
:
98
99
DtDe
*
myDe
;
100
DtQtDeTicker
*
myTicker
;
101
102
};
103
}
Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)