VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOceanStateCommand.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2021 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 
20 
21 namespace makVrv
22 {
26  {
27  public:
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  // (0 - 2PI)
77  virtual bool tidalCurrentDirectionSet() const;
78  virtual float tidalCurrentDirection() const;
79  virtual void setTidalCurrentDirection(float direction);
80 
81  // (0. - 15.)
82  virtual bool tidalCurrentSpeedSet() const;
83  virtual float tidalCurrentSpeed() const;
84  virtual void setTidalCurrentSpeed(float direction);
85 
86  virtual void execute(DtDe& de);
87 
88  protected:
89  DtDouglasSeaState::Scale netToDouglasSeaState( int netSeaState );
90  DtDouglasSwellState::Scale netToDouglasSwellState( int netSwellState );
91 
92  protected:
95  float myChoppiness;
98  float mySurgeDepth;
104 
116  };
117 
121  {
122  public:
125 
126  virtual DtVrvCommand* create(vrvControlToolkit::DtVrvControl_v1* control);
127  };
128 } //makVrv::
float myTidalCurrentSpeed
Definition: DtOceanStateCommand.h:103
float myTidalCurrentDirection
Definition: DtOceanStateCommand.h:102
DtVrvCommandCreator is the base class for all command creators.
Definition: DtVrvCommand.h:44
DtOceanStateCommandCreator creates DtOceanStateCommands.
Definition: DtOceanStateCommand.h:120
float myUnderwaterVisibility
Definition: DtOceanStateCommand.h:96
DtOceanStateCommandCreator(GlobalIdConvertFunc func)
Definition: DtOceanStateCommand.h:123
float myChoppiness
Definition: DtOceanStateCommand.h:95
bool myTidalCurrentDirectionSet
Definition: DtOceanStateCommand.h:114
bool mySurgeDepthSet
Definition: DtOceanStateCommand.h:110
bool mySwellStateDirectionSet
Definition: DtOceanStateCommand.h:106
float mySwellStateDirection
Definition: DtOceanStateCommand.h:94
boost::function< DtUniqueID(const std::string &)> GlobalIdConvertFunc
typedef for the function that takes a protocol specific id (as a string) and looks up the DtUniqueID ...
Definition: DtVrvCommand.h:40
DtDouglasSeaState::Scale mySeaState
Definition: DtOceanStateCommand.h:100
float mySurfaceTransparency
Definition: DtOceanStateCommand.h:97
Scale
Definition: DtDouglasSeaScale.h:33
float mySurgeDepth
Definition: DtOceanStateCommand.h:98
DtWakeCommand enables or disables wake.
Definition: DtOceanStateCommand.h:25
bool myUnderwaterVisibilitySet
Definition: DtOceanStateCommand.h:108
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
Scale
Definition: DtDouglasSeaScale.h:114
bool myWindDrivenSeaStateSet
Definition: DtOceanStateCommand.h:111
virtual ~DtOceanStateCommandCreator()
Definition: DtOceanStateCommand.h:124
float mySeaStateDirection
Definition: DtOceanStateCommand.h:93
Base structure for all controls.
Definition: vrvControlToolkitDataTypes.h:277
bool mySeaStateDirectionSet
Definition: DtOceanStateCommand.h:105
bool myChoppinessSet
Definition: DtOceanStateCommand.h:107
DtVrvCommand is the base class for all commands.
Definition: DtVrvCommand.h:24
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
DtDouglasSwellState::Scale mySwellState
Definition: DtOceanStateCommand.h:101
Contains makVrv::DtVrvCommand and makVrv::DtVrvCommandCreator Classes.
bool mySurfaceTransparencySet
Definition: DtOceanStateCommand.h:109
bool mySwellStateSet
Definition: DtOceanStateCommand.h:113
bool mySeaStateSet
Definition: DtOceanStateCommand.h:112
bool myTidalCurrentSpeedSet
Definition: DtOceanStateCommand.h:115
The declaration of the makVrv::DtDouglasSeaState and makVrv::DtDouglasSwellState classes.
bool myWindDrivenSeaState
Definition: DtOceanStateCommand.h:99
Contains DLL export macros.

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)