VR-Forces 4.3.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
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/fallingFromSkyActuatorComponent.h
>
10
14
#include "
vrfmodel/vrfmodelDefines.h
"
15
class
DT_DLL_vrfmodel
DtSinkToDepthActuator
:
public
DtFallingFromSkyActuatorComponent
16
{
17
public
:
20
DtSinkToDepthActuator
(
const
DtString
& name,
21
DtVrfObject
* owner,
22
DtSimManager
* simManager,
23
DtComponentDescriptor
* desc = 0,
24
DtReaderWriterRegistry
* parentRegistry = 0);
25
26
30
virtual
~
DtSinkToDepthActuator
();
31
34
virtual
DtString
type
()
const
;
35
39
static
DtSimComponent
*
creator
(
const
DtString
& name,
40
DtVrfObject
* owner,
41
DtSimManager
* simManager,
42
DtComponentDescriptor
* desc = 0,
43
DtReaderWriterRegistry
* parentRegistry = 0);
44
45
46
protected
:
49
virtual
bool
isFallingApplicable
();
50
52
virtual
double
calculateDrag
()
const
;
53
56
virtual
DtVector
calculateDragForces
(
const
DtVector
& oldLocalPosition,
const
DtVector
& oldLocalVelocity);
57
59
virtual
void
getWindSpeedAndDirection
(
double
& windSpeed,
double
& direction)
const
;
60
61
virtual
void
fallFromSky
();
62
64
virtual
double
calculateAcceleration
(
double
curSpeed)
const
;
65
66
protected
:
67
69
DtSinkToDepthActuator
();
70
72
DtSinkToDepthActuator
(
const
DtSinkToDepthActuator
& orig);
73
75
const
DtSinkToDepthActuator
&
operator=
(
const
76
DtSinkToDepthActuator
& orig);
77
78
protected
:
79
int
myFallingState
;
80
bool
myUnderwater
;
81
};
82
Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)