VR-Forces 4.5 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrfmodel
localEntitySetController.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2010 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
11
12
13
#pragma once
14
15
#include "
vrfobjcore/controllerComponent.h
"
16
#include "
vrfobjcore/simRadio.h
"
17
#include "
vrfobjcore/localEntitySetControllerPSR.h
"
18
19
class
DtSimMessage
;
20
class
DtVrfObject
;
21
22
30
31
#include "
vrfmodel/vrfmodelDefines.h
"
32
class
DT_DLL_vrfmodel
DtLocalEntitySetController
:
public
DtControllerComponent
33
{
34
35
public
:
36
39
DtLocalEntitySetController
(
const
DtString
& name,
40
DtVrfObject
* owner,
41
DtSimManager
* simManager,
42
DtComponentDescriptor
* desc = 0,
43
DtReaderWriterRegistry
* parentRegistry = 0);
44
46
virtual
~
DtLocalEntitySetController
();
47
49
virtual
bool
init
();
50
53
virtual
const
char
*
type
()
const
;
54
55
virtual
void
processSetForce(
DtSimMessage
* msg);
56
virtual
void
processSetAppearance(
DtSimMessage
* msg);
57
virtual
void
processSetCapabilities(
DtSimMessage
* msg);
58
virtual
void
processSetAltitude(
DtSimMessage
* msg);
59
virtual
void
processSetResource(
DtSimMessage
* msg);
60
virtual
void
processSetSOR(
DtSimMessage
* msg);
61
virtual
void
processSetSpeed(
DtSimMessage
* msg);
62
virtual
void
processSetCurrentSpeed(
DtSimMessage
* msg);
63
virtual
void
processSetEngagementRules(
DtSimMessage
* msg);
64
virtual
void
processSetRestore(
DtSimMessage
* msg);
65
virtual
void
processSetConcealed(
DtSimMessage
* msg);
66
virtual
void
processSetInvisible(
DtSimMessage
* msg);
67
74
virtual
void
processSetLocation(
DtSimMessage
* msg);
75
76
virtual
void
processSetSuperior(
DtSimMessage
* msg);
77
80
virtual
void
setLocation(
DtVector
geocentricLocation);
81
83
virtual
void
setLocation(
DtVector
geocentricLocation,
bool
& dataAvailable);
84
91
virtual
void
processSetHeading(
DtSimMessage
* msg);
92
94
virtual
void
setHeading(DtReal heading);
95
97
virtual
void
enable
();
98
100
virtual
void
disable
();
101
104
virtual
void
tick
();
105
109
virtual
bool
tickWhileDestroyed
()
const
{
return
true
; }
110
118
virtual
bool
createPSR();
119
120
public
:
121
static
void
setHeadingCallback(
DtSimMessage
* msg,
void
* usrData);
122
static
void
setForceCallback(
DtSimMessage
* msg,
void
* usrData);
123
static
void
setLocationCallback(
DtSimMessage
* msg,
void
* usrData);
124
static
void
setSuperiorCallback(
DtSimMessage
* msg,
void
* usrData);
125
static
void
setAppearanceCallback(
DtSimMessage
* msg,
void
* usrData);
126
static
void
setCapabilitiesCallback(
DtSimMessage
* msg,
void
* usrData);
127
static
void
setAltitudeCallback(
DtSimMessage
* msg,
void
* usrData);
128
static
void
setResourceCallback(
DtSimMessage
* msg,
void
* usrData);
129
static
void
setSORCallback(
DtSimMessage
* msg,
void
* usrData);
130
static
void
setSpeedCallback(
DtSimMessage
* msg,
void
* usrData);
131
static
void
setCurrentSpeedCallback(
DtSimMessage
* msg,
void
* usrData);
132
static
void
setEngagementRulesCallback(
DtSimMessage
* msg,
void
* usrData);
133
static
void
setRestoreCallback(
DtSimMessage
* msg,
void
* usrData);
134
static
void
setConcealedCallback(
DtSimMessage
* msg,
void
* usrData);
135
static
void
setInvisibleCallback(
DtSimMessage
* msg,
void
* usrData);
136
140
static
DtSimComponent
* creator(
const
DtString
& name,
141
DtVrfObject
* owner,
142
DtSimManager
* simManager,
143
DtComponentDescriptor
* desc = 0,
144
DtReaderWriterRegistry
* parentRegistry = 0);
145
146
protected
:
149
DtLocalEntitySetController
();
150
152
DtLocalEntitySetController
(
const
DtLocalEntitySetController
& orig);
153
155
const
DtLocalEntitySetController
&
operator=
(
const
156
DtLocalEntitySetController
& orig);
157
158
159
protected
:
161
virtual
void
setRadio
(
DtSimRadio
* radio);
162
165
virtual
void
addSetDataCallbacks();
166
169
void
removeSetDataCallbacks();
170
171
protected
:
173
DtVrfObject
*
myLocalEntity
;
174
177
DtLocalEntitySetControllerPSR
*
myProcessState
;
178
};
179
Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (
www.mak.com
)