VR-Forces 4.2 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfmodel
sinkToDepthActuator.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2013 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
6
#pragma once
7
8
#include <vlpi/disEnums.h>
9
#include <
vrfmodel/fallingFromSkyActuator.h
>
10
11
15
#include "
vrfmodel/vrfmodelDefines.h
"
16
class
DT_DLL_vrfmodel
DtSinkToDepthActuator
:
public
DtFallingFromSkyActuatorComponent
17
{
18
public
:
21
DtSinkToDepthActuator
(
const
DtString
& name,
22
DtVrfObject
* owner,
23
DtSimManager
* simManager,
24
DtComponentDescriptor
* desc = 0,
25
DtReaderWriterRegistry
* parentRegistry = 0);
26
27
31
virtual
~
DtSinkToDepthActuator
();
32
35
virtual
DtString
type
()
const
;
36
40
static
DtSimComponent
*
creator
(
const
DtString
& name,
41
DtVrfObject
* owner,
42
DtSimManager
* simManager,
43
DtComponentDescriptor
* desc = 0,
44
DtReaderWriterRegistry
* parentRegistry = 0);
45
46
47
protected
:
50
virtual
bool
isFallingApplicable
();
51
53
virtual
double
calculateDrag
()
const
;
54
56
virtual
void
getWindSpeedAndDirection
(
double
& windSpeed,
double
& direction)
const
;
57
58
virtual
void
fallFromSky
();
59
61
virtual
double
calculateAcceleration
(
double
curSpeed)
const
;
62
63
protected
:
64
66
DtSinkToDepthActuator
();
67
69
DtSinkToDepthActuator
(
const
DtSinkToDepthActuator
& orig);
70
72
const
DtSinkToDepthActuator
&
operator=
(
const
73
DtSinkToDepthActuator
& orig);
74
75
protected
:
76
int
myFallingState
;
77
bool
myUnderwater
;
78
};
79
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
)