VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
disabledEnvironment.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
15 
16 #pragma once
17 
18 #include <vrvCore/DtCloudLayer.h>
20 
21 #include <vrvCore/DtDe.h>
22 #include <vrvCore/DtScene.h>
23 #include <vrvCore/DtEnvironment.h>
24 
25 namespace makVrf
26 {
27 
29  {
30  public:
33  , myDe(de)
34  , myEnvironmentList(de)
36  , myUseCustomCloudCover(false)
38  , myTidalDirection(false)
39  {
40 
41  }
42  virtual void clear() {}
44  {
45  record = myCurrentSettings;
46  }
47 
48  virtual void setFromRecord(
50  {
51  myCurrentSettings = record;
52  }
53 
54  virtual void saveEnvironment(const std::string& envName) {}
55  virtual void removeEnvironment(const std::string& envName) {}
56  virtual void renameEnvironment(
57  const std::string& oldName, const std::string& newName) {}
58  virtual void getEnvironmentNames(std::vector<std::string>& names)
59  {
60  return myDe.scene().environment().getEnvironmentNames(names);
61  }
62 
63  virtual void setEnvironment(const std::string& envName)
64  {
65  try
66  {
68  }
69  catch(...)
70  {
71  }
72  }
73 
74  virtual void setDefaultEnvironmentName(const std::string& name) {}
75  virtual std::string defaultEnvironmentName() const { return ""; }
76  virtual void setCloudCover(DtVrfWeatherCloudState cloudCover, bool autoSave = true) {}
78  { return DtVrfWeatherCloudStateClear; }
79  virtual int cloudLayerCount() const { return -1.0; }
80  virtual const makVrv::DtCloudLayer& cloudLayer(unsigned int layerId) const
81  { return myCloudLayer; }
82  virtual void setCloudLayer(
83  unsigned int layerId, const makVrv::DtCloudLayer& layer) {}
84  virtual void addCloudLayer(const makVrv::DtCloudLayer& layer) {}
85  virtual void removeCloudLayer(unsigned int layerId) {}
86  virtual void removeCloudLayers() {}
87  virtual void setCloudLayerEnabled(unsigned int layerId, bool enabled) {}
88  virtual bool useCustomCloudCover() const { return myUseCustomCloudCover; }
89  virtual void setUseCustomCloudCover(bool enabled) { myUseCustomCloudCover = enabled; }
90  virtual void setAirTurbidity(float turbidity, bool autoSave = false) {}
91  virtual float airTurbidity() const { return -1.0; }
92  virtual void setVisibleDistance(float distance, bool autoSave = false) {}
93  virtual float visibleDistance() const { return -1.0; }
97  virtual void setPrecipitationType(PrecipitationType type, bool autoSave = false)
98  {
99  myPrecipitationType = type;
100  }
102  {
103  return myPrecipitationType;
104  }
106  virtual void setPrecipitationIntensity(float intensity, bool autoSave = false) {}
107  virtual float precipitationIntensity() const { return -1.0; }
108  virtual void setWindSpeed(float speed, bool autoSave = false) {}
109  virtual float windSpeed() const { return -1.0; }
110  virtual void setWindDirection(float direction, bool autoSave = false) {}
111  virtual float windDirection() const { return -1.0; }
112  virtual void setAmbientAirTemperature(float temperature, bool autoSave = false) {}
113  virtual float ambientAirTemperature() const { return -1.0; }
114  virtual void setFogHeight(float height, bool autoSave = false) {}
115  virtual float fogHeight() const { return -1.0; }
116  virtual void setFogColor(const DtVector& color, bool autoSave = false) {}
117  virtual DtVector fogColor() const { return DtVector(-1.0, -1.0, -1.0); }
118  virtual void setSeaState(int state, bool autoSave = false) {}
119  virtual int seaState() const { return -1; }
120  virtual void setSeaStateDirection(float dir, bool autoSave = false) {}
121  virtual float seaStateDirection() const { return -1.0; }
122  virtual void setWindDrivenSeaState(bool enabled, bool autoSave = false) { myWindDrivenSeaStateEnabled = enabled; }
123  virtual bool windDrivenSeaState() const { return myWindDrivenSeaStateEnabled; }
124  virtual void setSwellState(int state, bool autoSave = false) {}
125  virtual int swellState() const { return -1; }
126  virtual void setSwellStateDirection(float dir, bool autoSave = false) {}
127  virtual float swellStateDirection() const { return -1.0; }
128  virtual void setWindFetch(float distance, bool autoSave = false) {}
129  virtual float windFetch() const { return -1.0; }
130  virtual void setSeaChoppiness(float chop, bool autoSave = false) {}
131  virtual float seaChoppiness() const { return -1.0; }
132  virtual void setUnderwaterVisibilityEnabled(bool enabled, bool autoSave = false) { myUnderwaterVisibilityEnabled = enabled; }
134  virtual void setUnderwaterVisibility(float distance, bool autoSave = false) {}
135  virtual float underwaterVisibility() const { return -1.0; }
136  virtual void setWaterSurfaceTransparency(float normalizedValue, bool autoSave = false) {}
137  virtual float waterSurfaceTransparency() const { return -1.0; }
138  virtual void setSurgeDepth(float meters, bool autoSave = false) {}
139  virtual float surgeDepth() const { return -1.0; }
140  virtual void setDepthOffset(float meters, bool autoSave = false) {}
141  virtual float depthOffset() const { return -1.0; }
142  virtual void setAmbientWaterTemperature(float temperature, bool autoSave = false) {}
143  virtual float ambientWaterTemperature() const { return -1.0; }
144  virtual void setWaterCurrentSpeed(float speed, bool autoSave = false) {}
145  virtual float waterCurrentSpeed() const { return -1.0; }
146  virtual void setWaterCurrentDirection(float direction, bool autoSave = false) {}
147  virtual float waterCurrentDirection() const { return -1.0; }
148  virtual void setTidalOffset(float meters, bool autoSave = false) {}
149  virtual float tidalOffset() const { return -1.0; }
150  virtual void setTidalDirection(bool inOut, bool autoSave = false) { myTidalDirection = inOut; }
151  virtual bool tidalDirection() const { return myTidalDirection; }
152  virtual void setThermoclineDepth(unsigned int layer, float depth) {}
153  virtual float thermoclineDepth(unsigned int layer) const { return -1.0; }
155  unsigned int layer, float permeability) {}
156  virtual float thermoclinePermeability(unsigned int layer) const { return -1.0; }
157 
158  virtual void loadDefaults(bool loadOnlyFactorySettings = false) {}
159  virtual void restore() {}
160  virtual void saveAsDefaults() {}
161  virtual void exportSettings(const std::string& filename) {}
162  virtual void importSettings(const std::string& filename) {}
163 
164  protected:
166  virtual void slot_oceanLayerAdded(const makVrv::DtOceanLayer& layer) {}
167  virtual void slot_oceanLayerToBeDeleted(const makVrv::DtOceanLayer& layer) {}
169  const makVrv::DtOceanLayer& layer, double seaLevel) {}
171  const makVrv::DtOceanLayer& layer, int range) {}
172  virtual void slot_surgeDepthChanged(double depth) {}
173  virtual void slot_depthOffsetChanged(double offset) {}
174 
175  protected:
179 
186 
188  };
189 }

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)