VR-Forces 4.2 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfmodel
gndFollwCtl.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2003 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
11
12
#pragma once
13
14
#include "
vrfmodel/gndMvToDestinationCntlr.h
"
15
16
#include <vlutil/vlString.h>
17
#include <matrix/vlVector.h>
18
19
class
DtSimManager
;
20
class
DtSimMessage
;
21
class
DtStringOutputPort
;
22
23
32
#include "
vrfmodel/vrfmodelDefines.h
"
33
class
DT_DLL_vrfmodel
DtGroundFollowEntityController
:
public
DtGroundMoveToDestinationControllerComponent
34
{
35
36
public
:
37
40
DtGroundFollowEntityController
(
const
DtString
& name,
41
DtVrfObject
* owner,
42
DtSimManager
* simManager,
43
DtComponentDescriptor
* desc = 0,
44
DtReaderWriterRegistry
* parentRegistry = 0);
45
47
virtual
~
DtGroundFollowEntityController
();
48
51
virtual
DtString
type
()
const
;
52
53
57
static
void
followEntityCallback(
DtSimMessage
* msg,
void
* usrData);
58
59
virtual
void
processFollowEntityTask(
DtSimMessage
* msg);
60
65
virtual
const
DtString
& entityToFollow();
66
virtual
void
setEntityToFollow(
const
DtString
& entity);
67
70
virtual
const
DtVector
& offsetVector()
const
;
71
virtual
void
setOffsetVector(
const
DtVector
& offsets);
72
76
static
DtSimComponent
*
creator
(
const
DtString
& name,
77
DtVrfObject
* owner,
78
DtSimManager
* simManager,
79
DtComponentDescriptor
* desc = 0,
80
DtReaderWriterRegistry
* parentRegistry = 0);
81
83
virtual
void
registerTaskMsgCallbacks
();
84
88
virtual
bool
setupDestination
();
89
92
virtual
bool
passedDestination
();
93
96
virtual
double
findDesiredSpeed
();
97
101
virtual
double
findDesiredHeading
();
102
108
virtual
void
setupDestinationVector
()
const
;
109
114
virtual
DtAutoTransmissionGear
determineGearSetting
();
115
119
virtual
void
stop
();
120
121
protected
:
124
DtGroundFollowEntityController
();
125
127
DtGroundFollowEntityController
(
const
DtGroundFollowEntityController
&
128
orig);
129
131
const
DtGroundFollowEntityController
&
operator=
(
const
132
DtGroundFollowEntityController
& orig);
133
134
bool
createPorts
();
135
136
protected
:
137
139
DtVrfObject
*
myLeaderPointer
;
140
DtStringOutputPort
*
myFollowEntityOutputPort
;
141
};
142
Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)