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
humanJoystickMovementController.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2005 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
11
12
#pragma once
13
14
#include "
vrfobjcore/controllerComponent.h
"
15
#include "
vrfmodel/joystickControllerInterface.h
"
16
#include "
vrfobjcore/simRadio.h
"
17
18
class
DtString
;
19
class
DtSimManager
;
20
class
DtJoyDeviceControllerDescriptor
;
21
class
DtJoyDevice;
22
class
DtHumanMovementControlOutputPortGroup
;
23
class
DtHumanStateRepository
;
24
class
DtBooleanOutputPort
;
25
30
#include "
vrfmodel/vrfmodelDefines.h
"
31
class
DT_DLL_vrfmodel
DtHumanJoystickMovementController
:
public
DtControllerComponent
,
public
DtJoystickControllerInterface
32
{
33
public
:
34
37
DtHumanJoystickMovementController
(
const
DtString
& name,
DtVrfObject
* owner,
38
DtSimManager
* simManager,
DtComponentDescriptor
* desc,
39
DtReaderWriterRegistry
* parentRegistry = 0);
40
42
virtual
~
DtHumanJoystickMovementController
();
43
46
virtual
const
char
*
type
()
const
;
47
49
virtual
bool
createPortGroups
();
50
52
virtual
bool
createPorts
();
53
57
static
DtSimComponent
* creator(
const
DtString
& name,
58
DtVrfObject
* owner,
59
DtSimManager
* simManager,
60
DtComponentDescriptor
* desc = 0,
61
DtReaderWriterRegistry
* parentRegistry = 0);
62
63
private
:
64
66
DtHumanJoystickMovementController
();
67
69
DtHumanJoystickMovementController
(
70
const
DtHumanJoystickMovementController
& orig);
71
73
DtHumanJoystickMovementController
&
operator=
(
74
const
DtHumanJoystickMovementController
& orig);
75
76
protected
:
77
78
virtual
void
calcAndSetPortValues
(
const
DtString
& functionGroup,
const
DtString
&
function
,
double
value,
bool
repeat);
79
virtual
void
joystickConnected
();
80
virtual
void
joystickDisconnected
();
81
82
virtual
void
tick
();
83
84
protected
:
85
88
90
DtHumanMovementControlOutputPortGroup
*
myHumanMovementControlOutputPortGroup
;
91
97
DtBooleanOutputPort
*
myIsMovingPort
;
99
100
DtHumanStateRepository
*
myHumanStateRepository
;
101
102
double
myTurningRate
;
103
double
mySpeedFactor
;
104
};
105
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
)