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
rotaryWingMoveAlongControllerComponent.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2000 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
11
12
#pragma once
13
14
#include "
vrfmodel/rotaryWingTaskController.h
"
15
#include "
vrfutil/localVectorIterator.h
"
16
17
class
DtString
;
18
class
DtSimManager
;
19
class
DtRouteState;
20
class
DtSimMessage
;
21
22
class
DtBooleanInputPort
;
23
class
DtInputPortGroup
;
24
29
#include "
vrfmodel/vrfmodelDefines.h
"
30
class
DT_DLL_vrfmodel
DtRotaryWingMoveAlongControllerComponent
:
public
DtRotaryWingTaskController
31
{
32
33
public
:
34
37
DtRotaryWingMoveAlongControllerComponent
(
const
DtString
& name,
38
DtVrfObject
* owner,
39
DtSimManager
* simManager,
40
DtComponentDescriptor
* desc = 0,
41
DtReaderWriterRegistry
* parentRegistry = 0);
42
44
virtual
~
DtRotaryWingMoveAlongControllerComponent
();
45
46
48
virtual
bool
init
();
49
51
virtual
void
tick
();
52
55
virtual
const
char
*
type
()
const
;
56
57
static
void
moveAlongCallback(
DtSimMessage
* msg,
void
* usr,
DtSimTaskStatePtr
taskStatePtr);
58
59
virtual
DtSimTaskStatePtr
currentTaskState
()
const
;
60
62
virtual
void
registerTaskMsgCallbacks
();
63
65
static
void
routeChangedCallback(
DtVrfObject
* obj,
void
* usr);
66
virtual
void
processRouteChanged(
DtVrfObject
* obj);
67
71
static
DtSimComponent
* creator(
const
DtString
& name,
72
DtVrfObject
* owner,
73
DtSimManager
* simManager,
74
DtComponentDescriptor
* desc = 0,
75
DtReaderWriterRegistry
* parentRegistry = 0);
76
78
virtual
bool
setupRoute();
79
82
virtual
bool
isMovingToward(
const
DtVector
& ENUpoint);
83
85
virtual
void
routeLogic();
86
89
virtual
void
desiredVelocityAndPosition();
90
91
protected
:
92
94
virtual
bool
createPortGroups
();
95
97
virtual
bool
createPorts
();
98
99
virtual
void
processMoveAlong(
const
DtTaskMessage
& msg,
DtSimTaskStatePtr
taskStatePtr);
100
102
DtRotaryWingMoveAlongControllerComponent
();
104
DtRotaryWingMoveAlongControllerComponent
(
105
const
DtRotaryWingMoveAlongControllerComponent
& orig);
106
108
DtRotaryWingMoveAlongControllerComponent
&
operator=
(
109
const
DtRotaryWingMoveAlongControllerComponent
& orig);
110
126
virtual
void
pilotProperties();
127
131
virtual
void
buildLocalRoute();
132
135
virtual
void
emptyVertexList();
136
138
static
DtReaderWriter
* provideNextRoutePointIndex(
void
* c);
139
140
protected
:
141
143
144
145
146
147
148
149
DtBooleanInputPort
*
myTerrainProximityInputPort
;
150
153
DtInputPortGroup
*
myTerrainProximityPortGroup
;
155
156
double
myDistanceSquared
;
157
160
DtVrfObject
*
myRoute
;
161
162
bool
myRouteHasChanged
;
163
bool
myVerticesChangedCallbackRegistered
;
164
165
};
166
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
)