VR-Vantage API Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Tutorials
File List
File Members
examples
exampleDriver
DtExampleDriver.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 <
vrvCore/DtDriver.h
>
13
14
#include <
vrvCore/DtEntityIndicatorWidget.h
>
15
#include <
vrvCore/DtSelectionManager.h
>
16
#include <
vrvCore/DtEntityInfoWidget.h
>
17
18
#include <
vrvUtil/DtUnicode.h
>
19
20
#include <matrix/vlTaitBryan.h>
21
#include <matrix/vlVector.h>
22
23
#include <string>
24
25
namespace
makVrv
26
{
27
class
DtEntity3dFacade;
28
}
29
30
// This driver creates and owns the example driver.
32
class
DtExampleDriver
:
public
makVrv::DtDriver
33
{
34
public
:
35
37
DtExampleDriver
(
makVrv::DtAgentManager
& am );
38
40
virtual
~DtExampleDriver
();
41
44
47
virtual
const
std::string&
className
()
const
;
48
51
virtual
bool
onStart
();
52
55
virtual
bool
onStop
();
56
59
virtual
bool
onTick
();
60
63
virtual
void
slot_displayEngineAdded
(
const
makVrv::DtDeRecord
& igRecord );
64
66
67
protected
:
68
70
virtual
void
slot_togglePinnedLabel
(
71
const
makVrv::DtSelectionManager::IdSet
& sel );
72
74
virtual
void
setHoverSignalsActive
(
bool
active );
75
77
virtual
void
setEntityInfoWidgetActive
(
bool
active );
78
80
virtual
makVrv::DtUnicode
generateInfoString
()
const
;
81
83
virtual
void
updatePosition
();
84
86
virtual
void
repositionAircraft
( DtVector position, DtTaitBryan ori );
87
88
protected
:
89
90
makVrv::DtEntity3dFacade
*
myEntityFacade
;
91
makVrv::DtEntityIndicatorWidget
*
myEntityIndicator
;
92
makVrv::DtEntityInfoWidget
*
myEntityInfoWidget
;
93
94
std::string
myEntityDisplayName
;
95
bool
myEntityInfoWidgetPinnedFlag
;
96
97
DtTaitBryan
myOrientation
;
98
DtVector
myPosition
;
99
100
DtVector
myOrbitCenter
;
101
double
myAngularVelocity
;
102
103
double
myLastCommLineTime
;
104
double
myLastUpdateTime
;
105
double
myClockAngle
;
106
double
myHeading
;
107
double
myRadius
;
108
double
myRoll
;
109
110
};
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)