VR-Forces 4.3 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
vrvCore
DtOceanStateCommand.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2014 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
10
11
12
13
#pragma once
14
15
#include <
vrvCore/vrvCore.h
>
16
17
#include <
vrvCore/DtVrvCommand.h
>
18
19
#include <
vrvUtil/DtDouglasSeaScale.h
>
20
21
namespace
makVrv
22
{
25
class
DT_DLL_VRVCORE
DtOceanStateCommand
:
public
DtVrvCommand
26
{
27
public
:
28
DtOceanStateCommand
();
29
virtual
~
DtOceanStateCommand
();
30
31
// (0 - 2PI)
32
virtual
bool
seaStateDirectionSet()
const
;
33
virtual
float
seaStateDirection()
const
;
34
virtual
void
setSeaStateDirection(
float
dir );
35
36
// (0 - 2PI)
37
virtual
bool
swellStateDirectionSet()
const
;
38
virtual
float
swellStateDirection()
const
;
39
virtual
void
setSwellStateDirection(
float
dir );
40
41
// (0. - 1.)
42
virtual
bool
choppinessSet()
const
;
43
virtual
float
choppiness()
const
;
44
virtual
void
setChoppiness(
float
amt );
45
46
// (m)
47
virtual
bool
underwaterVisibilitySet()
const
;
48
virtual
float
underwaterVisibility()
const
;
49
virtual
void
setUnderwaterVisibility(
float
vis );
50
51
// (0. - 1.)
52
virtual
bool
surfaceTransparencySet()
const
;
53
virtual
float
surfaceTransparency()
const
;
54
virtual
void
setSurfaceTransparency(
float
trans );
55
56
// (m)
57
virtual
bool
surgeDepthSet()
const
;
58
virtual
float
surgeDepth()
const
;
59
virtual
void
setSurgeDepth(
float
depth );
60
61
// (manual control)
62
virtual
bool
windDrivenSeaStateSet()
const
;
63
virtual
bool
windDrivenSeaState()
const
;
64
virtual
void
setWindDrivenSeaState(
bool
state );
65
66
// (0-9)
67
virtual
bool
seaStateSet()
const
;
68
virtual
DtDouglasSeaState::Scale
seaState()
const
;
69
virtual
void
setSeaState(
int
state );
70
71
// (0-9)
72
virtual
bool
swellStateSet()
const
;
73
virtual
DtDouglasSwellState::Scale
swellState()
const
;
74
virtual
void
setSwellState(
int
state );
75
76
virtual
void
execute(
DtDe
& de);
77
78
protected
:
79
DtDouglasSeaState::Scale
netToDouglasSeaState(
int
netSeaState );
80
DtDouglasSwellState::Scale
netToDouglasSwellState(
int
netSwellState );
81
82
protected
:
83
float
mySeaStateDirection
;
84
float
mySwellStateDirection
;
85
float
myChoppiness
;
86
float
myUnderwaterVisibility
;
87
float
mySurfaceTransparency
;
88
float
mySurgeDepth
;
89
bool
myWindDrivenSeaState
;
90
DtDouglasSeaState::Scale
mySeaState
;
91
DtDouglasSwellState::Scale
mySwellState
;
92
93
bool
mySeaStateDirectionSet
;
94
bool
mySwellStateDirectionSet
;
95
bool
myChoppinessSet
;
96
bool
myUnderwaterVisibilitySet
;
97
bool
mySurfaceTransparencySet
;
98
bool
mySurgeDepthSet
;
99
bool
myWindDrivenSeaStateSet
;
100
bool
mySeaStateSet
;
101
bool
mySwellStateSet
;
102
};
103
106
class
DT_DLL_VRVCORE
DtOceanStateCommandCreator
:
public
DtVrvCommandCreator
107
{
108
public
:
109
DtOceanStateCommandCreator
(
GlobalIdConvertFunc
func):
DtVrvCommandCreator
(func) {}
110
virtual
~DtOceanStateCommandCreator
() {}
111
112
virtual
DtVrvCommand
* create(
vrvControlToolkit::DtVrvControl_v1
* control);
113
};
114
}
//makVrv::
Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)