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
lookAtPointController.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2017 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
9
#pragma once
10
11
#include "
vrfmodel/vrfmodelDefines.h
"
12
#include "
vrfobjcore/singleTaskControllerComponent.h
"
13
14
class
DtVectorOutputPort
;
15
class
DtBooleanOutputPort
;
16
class
DtAnalogOutputPort
;
17
class
DtLookAtPointControllerPSR
;
18
class
DtSimMessage
;
19
class
DtScriptedTaskTask
;
20
24
class
DT_DLL_vrfmodel
DtLookAtPointController
:
public
DtSingleTaskControllerComponent
25
{
26
27
public
:
28
31
DtLookAtPointController
(
const
DtString
& name,
32
DtVrfObject
* owner,
33
DtSimManager
* simManager,
34
DtComponentDescriptor
* desc = 0,
35
DtReaderWriterRegistry
* parentRegistry = 0);
36
38
virtual
~
DtLookAtPointController
();
39
40
virtual
bool
init
();
41
44
virtual
const
char
*
type
()
const
;
45
46
virtual
void
tick
();
47
49
static
void
setLookAtPointCallback(
DtSimMessage
* msg,
void
* usr);
50
virtual
void
processSetLookAtPoint(
DtSimMessage
* msg);
51
55
static
DtSimComponent
* creator(
const
DtString
& name,
56
DtVrfObject
* owner,
57
DtSimManager
* simManager,
58
DtComponentDescriptor
* desc = 0,
59
DtReaderWriterRegistry
* parentRegistry = 0);
60
61
protected
:
62
64
virtual
bool
createPorts
();
65
67
virtual
bool
createPortGroups
();
68
69
virtual
DtLookAtPointControllerPSR
* createPSR();
70
71
virtual
void
registerTaskMsgCallbacks
();
72
75
static
void
nodHeadCallback(
DtSimMessage
* msg,
void
* usrData);
76
virtual
void
processNodHead(
DtSimMessage
*);
77
78
static
void
shakeHeadCallback(
DtSimMessage
* msg,
void
* usrData);
79
virtual
void
processShakeHead(
DtSimMessage
*);
80
81
virtual
void
performLookAt();
82
virtual
void
performTask();
83
90
virtual
void
getTaskValues(
DtScriptedTaskTask
*
task
,
double
& minRange,
double
& maxRange,
double
& rate,
int
& time);
91
92
virtual
void
clearTask
();
93
94
private
:
95
97
DtLookAtPointController
();
98
100
DtLookAtPointController
(
const
101
DtLookAtPointController
& orig);
102
104
const
DtLookAtPointController
&
operator=
(
105
const
DtLookAtPointController
& orig);
106
107
108
protected
:
109
110
DtLookAtPointControllerPSR
*
myProcessState
;
111
113
114
117
DtOutputPortGroup
*
myLookAtControlPortGroup
;
118
123
DtVectorOutputPort
*
myLookAtPointPort
;
124
130
DtBooleanOutputPort
*
myLookAtAnglePort
;
131
136
DtAnalogOutputPort
*
myLookAtAzimuthPort
;
137
142
DtAnalogOutputPort
*
myLookAtElevationPort
;
143
151
DtBooleanOutputPort
*
myForbidBaseRotationPort
;
152
158
DtAnalogOutputPort
*
myNodOrShake
;
159
165
DtVectorOutputPort
*
myNodOrShakeRates
;
166
171
DtBooleanOutputPort
*
myResetHead
;
172
174
};
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
)