VR-Forces 4.2 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfmodel
turretAct.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2003 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
10
11
#pragma once
12
13
#include "
vrfobjcore/actCmpnt.h
"
14
15
class
DtString
;
16
class
DtSimManager
;
17
18
class
DtConstrainedAnalogInputPort
;
19
class
DtTurretComponentDescriptor
;
20
class
DtVrfTurretedBalGunPSR
;
21
48
#include "
vrfmodel/vrfmodelDefines.h
"
49
class
DT_DLL_vrfmodel
DtTurretActuatorComponent
:
public
DtActuatorComponent
50
{
51
52
public
:
53
56
DtTurretActuatorComponent
(
const
DtString
& name,
57
DtVrfObject
* owner,
58
DtSimManager
* simManager,
59
DtComponentDescriptor
* desc = 0,
60
DtReaderWriterRegistry
* parentRegistry = 0);
61
63
virtual
~
DtTurretActuatorComponent
();
64
66
virtual
bool
postAddComponentsInit
();
67
70
virtual
DtString
type
()
const
;
71
73
virtual
void
tick
();
74
75
virtual
void
setTurretArtPart(DtArtPartType turretArtPart);
76
virtual
DtArtPartType turretArtPart()
const
;
77
78
virtual
void
setMaxSlewRate(DtReal maxSlewRate);
79
virtual
DtReal maxSlewRate()
const
;
80
83
virtual
void
initProcessSR();
84
88
static
DtSimComponent
* creator(
const
DtString
& name,
89
DtVrfObject
* owner,
90
DtSimManager
* simManager,
91
DtComponentDescriptor
* desc = 0,
92
DtReaderWriterRegistry
* parentRegistry = 0);
93
94
protected
:
95
97
virtual
bool
createPorts
();
98
106
virtual
void
lookupAndCacheProcessSR();
107
108
protected
:
109
111
DtTurretActuatorComponent
();
112
114
DtTurretActuatorComponent
(
const
DtTurretActuatorComponent
& orig);
115
117
const
DtTurretActuatorComponent
&
operator=
(
const
118
DtTurretActuatorComponent
& orig);
119
120
121
protected
:
122
125
132
DtConstrainedAnalogInputPort
*
mySlewPort
;
133
135
136
const
DtTurretComponentDescriptor
*
myTurretComponentDescriptor
;
137
143
DtVrfTurretedBalGunPSR
*
myProcessState
;
144
148
bool
myRotation360
;
149
152
DtReal
myLeftSlewLimit
;
153
DtReal
myRightSlewLimit
;
154
};
155
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
)