VR-Forces 4.6 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
rotaryWingMoveToControllerComponent.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2004 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
11
12
#pragma once
13
14
15
#include "
vrfmodel/rotaryWingTaskController.h
"
16
17
class
DtString
;
18
class
DtSimManager
;
19
class
DtSimMessage
;
20
21
26
#include "
vrfmodel/vrfmodelDefines.h
"
27
class
DT_DLL_vrfmodel
DtRotaryWingMoveToControllerComponent
:
public
DtRotaryWingTaskController
28
{
29
public
:
30
33
DtRotaryWingMoveToControllerComponent
(
const
DtString
& name,
34
DtVrfObject
* owner,
35
DtSimManager
* simManager,
36
DtComponentDescriptor
* desc = 0,
37
DtReaderWriterRegistry
* parentRegistry = 0);
38
40
virtual
~
DtRotaryWingMoveToControllerComponent
();
41
44
virtual
void
tick
();
45
48
virtual
const
char
*
type
()
const
;
49
50
54
static
void
moveToCallback(
DtSimMessage
* msg,
void
* usr);
55
static
void
moveToAltitudeCallback(
DtSimMessage
* msg,
void
* usr);
56
60
virtual
void
processMoveToTask(
DtSimMessage
* msg);
61
65
virtual
void
processMoveToAltitudeTask(
DtSimMessage
* msg);
66
70
static
DtSimComponent
* creator(
const
DtString
& name,
71
DtVrfObject
* owner,
72
DtSimManager
* simManager,
73
DtComponentDescriptor
* desc = 0,
74
DtReaderWriterRegistry
* parentRegistry = 0);
75
76
virtual
void
updateTaskVisualizations
();
77
78
protected
:
80
virtual
void
registerTaskMsgCallbacks
();
81
84
DtRotaryWingMoveToControllerComponent
();
85
87
DtRotaryWingMoveToControllerComponent
(
88
const
DtRotaryWingMoveToControllerComponent
& orig);
89
91
const
DtRotaryWingMoveToControllerComponent
&
operator=
(
const
92
DtRotaryWingMoveToControllerComponent
& orig);
93
97
virtual
bool
setupControlPoint();
98
104
virtual
bool
createWorkingControlPoint(
const
DtVector
location);
105
107
virtual
void
stop();
108
109
virtual
double
atDistance();
110
117
118
virtual
void
pilotProperties();
119
121
virtual
void
getDesiredPosition(
DtVector
& desiredPosition);
122
127
virtual
DtVector
computeVelocityControl(
DtVector
& desiredPosition);
128
129
protected
:
130
133
DtVrfObject
*
myControlPoint
;
134
140
DtVector
myLastControlPosition
;
141
143
DtVrfObject
*
myWorkingControlPoint
;
144
};
145
Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)