VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfmodel
aggregatedMoveToController.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Generated by VR-Forces Component Code Generator
3
** WARNING: Changes to this file WILL BE LOST if file is regenerated.
4
*******************************************************************************/
5
9
12
13
#pragma once
14
15
#include "
vrfobjcore/singleTaskControllerComponent.h
"
16
#include "
vrfmodel/vrfmodelDefines.h
"
17
18
class
DtCgf
;
19
class
DtVrfAggregateStateRepository
;
20
class
DtSimMessage
;
21
class
DtAggregatedMoveToPSR
;
22
class
DtOutputPortGroup
;
23
class
DtVectorOutputPort
;
24
class
DtAggregatedMoveToDescriptor
;
25
class
DtAnalogOutputPort
;
26
class
DtSetDataRequest
;
27
class
DtSetDataManager
;
28
42
class
DT_DLL_vrfmodel
DtAggregatedMoveToController
:
public
DtSingleTaskControllerComponent
43
{
44
private
:
46
DtAggregatedMoveToController
();
48
DtAggregatedMoveToController
(
const
DtAggregatedMoveToController
& orig);
50
DtAggregatedMoveToController
&
operator=
(
const
DtAggregatedMoveToController
& orig);
51
public
:
53
DtAggregatedMoveToController
(
const
DtString
& name,
DtVrfObject
* owner,
DtSimManager
* simManager,
DtComponentDescriptor
* desc=0,
DtReaderWriterRegistry
*parentRegistry=0);
54
56
virtual
~
DtAggregatedMoveToController
();
57
59
virtual
bool
init
();
60
62
virtual
DtString
type
()
const
;
63
65
virtual
void
tick
();
66
71
static
void
moveToCallback(
DtSimMessage
* msg,
void
* usr);
72
77
static
void
setLocationCallback(
DtSimMessage
* msg,
void
* usr);
78
83
static
void
moveToLocationCallback(
DtSimMessage
* msg,
void
* usr);
84
89
static
void
moveIntoFormationCallback(
DtSimMessage
* msg,
void
* usr);
90
95
static
void
turnToHeadingCallback(
DtSimMessage
* msg,
void
* usrData);
96
98
static
DtSimComponent
* creator(
const
DtString
& name,
DtVrfObject
* owner,
DtSimManager
* simManager,
DtComponentDescriptor
* desc=0,
DtReaderWriterRegistry
* parentRegistry=0);
99
101
static
void
modifyVrfObjectCallback(
DtSimMessage
* msg,
void
* usr);
102
103
protected
:
104
107
virtual
void
processMoveToTask(
DtSimMessage
* msg);
108
109
110
virtual
void
processMoveToLocationTask(
DtSimMessage
* msg);
111
116
virtual
void
processDestinationChanged();
117
121
virtual
bool
setupDestination();
122
131
virtual
void
setupDestinationVector()
const
;
132
134
virtual
void
invalidateDestinationVector()
const
;
135
144
virtual
bool
atDestination();
145
147
virtual
void
doMoving();
148
150
virtual
double
findDesiredHeading();
151
153
virtual
void
moveToDestination();
154
156
virtual
void
stop();
157
159
virtual
void
registerTaskMsgCallbacks
();
160
164
virtual
void
processModifyVrfObject(
DtSimMessage
* msg);
165
168
virtual
void
processSetLocation(
DtSimMessage
* msg);
169
171
virtual
bool
createPortGroups
();
172
174
virtual
bool
createPorts
();
175
181
virtual
bool
createPSR();
182
183
virtual
double
distanceToDestination()
const
;
184
186
virtual
void
clearTask
();
187
192
virtual
double
atDistance()
const
;
193
197
virtual
void
processMoveIntoFormationTask(
DtSimMessage
* msg);
198
201
virtual
void
processTurnToHeadingTask(
DtSimMessage
* msg);
202
204
virtual
void
sendRequestToSelf(
const
DtSetDataRequest
& request)
const
;
205
206
protected
:
207
210
215
DtAnalogOutputPort
*
myMovementDirectionOutputPort
;
216
221
DtAnalogOutputPort
*
mySpeedOutputPort
;
222
224
DtOutputPortGroup
*
myOutputPortGroup
;
225
231
DtVectorOutputPort
*
myDestinationOutputPort
;
232
234
237
DtVrfObject
*
myControlPoint
;
238
239
DtVector
myLocalDestination
;
240
DtVector
myWorldDestination
;
241
242
mutable
DtVector
myDestinationVector
;
243
mutable
bool
myDestinationVectorIsValid
;
244
245
bool
myAtDestination
;
246
double
myDistanceSquared
;
247
248
DtVrfAggregateStateRepository
*
myAggregateStateRepository
;
249
252
DtAggregatedMoveToPSR
*
myProcessState
;
253
254
DtAggregatedMoveToDescriptor
*
myAggregatedMoveToDescriptor
;
255
258
DtSetDataManager
*
mySetDataManager
;
259
};
260
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)