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
include
vrfmodel
aggregateFollowController.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2018 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
11
12
#pragma once
13
14
#include <
vrfmodel/vrfmodelDefines.h
>
15
16
#include "
vrfobjcore/singleTaskControllerComponent.h
"
17
18
class
DtAggregateFollowPSR
;
19
class
DtAggregateFollowDescriptor
;
20
class
DtOutputPortGroup
;
21
class
DtAnalogOutputPort
;
22
class
DtVectorOutputPort
;
23
class
DtVrfAggregateStateRepository
;
24
25
class
DT_DLL_vrfmodel
DtAggregateFollowController
:
public
DtSingleTaskControllerComponent
26
{
27
public
:
30
DtAggregateFollowController
(
const
DtString
& name,
31
DtVrfObject
* owner,
32
DtSimManager
* simManager,
33
DtComponentDescriptor
* desc = 0,
34
DtReaderWriterRegistry
* parentRegistry = 0);
35
36
virtual
~
DtAggregateFollowController
();
37
40
virtual
const
char
*
type
()
const
;
41
43
virtual
bool
init
();
44
46
virtual
bool
createPorts
();
47
49
virtual
bool
createPortGroups
();
50
52
virtual
void
tick
();
53
55
virtual
double
desiredHeading();
56
58
virtual
double
desiredSpeed();
59
63
static
void
followEntityCallback(
DtSimMessage
* msg,
void
* usrData);
64
virtual
void
processFollowEntityTask(
DtSimMessage
* msg);
65
70
virtual
const
DtUUID
& entityToFollow()
const
;
71
virtual
void
setEntityToFollow(
const
DtUUID
& entity);
72
74
virtual
double
followDistance()
const
;
75
virtual
void
setFollowDistance(
double
distance
);
76
78
virtual
void
registerTaskMsgCallbacks
();
79
81
virtual
void
clearTask
();
82
86
static
DtSimComponent
* creator(
const
DtString
& name,
87
DtVrfObject
* owner,
88
DtSimManager
* simManager,
89
DtComponentDescriptor
* desc = 0,
90
DtReaderWriterRegistry
* parentRegistry = 0);
91
92
protected
:
93
DtVrfAggregateStateRepository
*
myTrueAggregateRepository
;
94
DtAggregateFollowPSR
*
myProcessState
;
95
DtAggregateFollowDescriptor
*
myFollowDescriptor
;
96
98
DtRwVrfObjectReference
myEntityToFollow
;
99
102
DtOutputPortGroup
*
myMovementControlPortGroup
;
107
DtAnalogOutputPort
*
mySpeedPort
;
108
113
DtAnalogOutputPort
*
myMovementDirectionPort
;
114
118
DtAnalogOutputPort
*
myAltitudePort
;
119
125
DtVectorOutputPort
*
myDestinationOutputPort
;
127
};
128
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
)