VR-Forces 4.7 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
examples
exampleCommLines
DtExampleCommLinesDriver.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
#include <
vrvCore/DtModelSetRealizationManager.h
>
14
15
#include <boost/unordered_map.hpp>
16
17
#include <matrix/vlTaitBryan.h>
18
#include <matrix/vlVector.h>
19
20
namespace
makVrv
21
{
22
class
DtEntityFacade;
23
}
24
27
class
DtExampleCommLinesDriver
:
public
makVrv::DtDriver
28
{
29
public
:
30
32
DtExampleCommLinesDriver
(
makVrv::DtAgentManager
& am );
33
35
virtual
~DtExampleCommLinesDriver
();
36
39
42
virtual
const
std::string&
className
()
const
;
43
46
virtual
bool
onStart
();
47
50
virtual
bool
onStop
();
51
54
virtual
bool
onTick
();
55
58
virtual
void
slot_displayEngineAdded
(
const
makVrv::DtDeRecord
& igRecord );
59
61
62
protected
:
63
66
makVrv::DtEntityFacade
*
createEntityFacade
(
makVrv::DtAgentManager
& am,
makVrv::DtElementID
elementId,
67
const
makVrv::DtModelSetRealizationManager::ModelSetRealizations
& modelSets,
bool
distribute );
68
70
virtual
void
updatePosition
();
71
73
virtual
void
updateCommLines
(
int
modelSet );
74
76
virtual
void
repositionAircraft
(
DtVector
position, DtTaitBryan ori );
77
78
protected
:
79
80
typedef
boost::unordered_map<int,makVrv::DtUniqueID>
SceneObjectIdsByModelSet
;
81
SceneObjectIdsByModelSet
mySceneObjectIds
;
82
83
makVrv::DtEntityFacade
*
myEntityFacade
;
84
85
double
myAngularVelocity
;
86
DtVector
myOrbitCenter
;
87
88
double
myLastCommLineTime
;
89
double
myLastUpdateTime
;
90
double
myClockAngle
;
91
double
myRadius
;
92
double
myRoll
;
93
94
};
Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)