VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtOceanRenderSettingsWidget.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2016 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCoreQt/vrvCoreQt.h>
14 #include <QtWidgets/QWidget>
15 
16 class QCheckBox;
17 class QVBoxLayout;
18 class QLabel;
19 class QComboBox;
20 class QSlider;
21 class QGroupBox;
22 class QRadioButton;
23 class QSpinBox;
24 class QPushButton;
25 class QSignalMapper;
26 class QButtonGroup;
27 
28 namespace makVrv
29 {
30 
31  class DtSliderSpinboxWidget;
32  class DtSliderDoubleSpinboxWidget;
33 
40  {
41  Q_OBJECT
42 
43  public:
44 
45  //needs to match TritonQuality in DtTritonManager. Didn't want vrvCoreQt
46  // to depend on vrvTriton for a single enum.
50  TritonQuality_Best
51  };
52 
55  DtDe& de, QWidget* parent, Qt::WindowFlags flags = Qt::Widget);
56 
58  virtual ~DtOceanRenderSettingsWidget();
59 
62  virtual void setOceanPlanarReflectionsEnabled(bool state);
63 
67  virtual void setOceanPlanarReflectionsLODScale( float scale );
68 #if 0
69 
70 
71 
72  virtual void setOceanPlanarReflectionsSpecifyFarClip( bool enabled );
73 
77  virtual void setOceanPlanarReflectionsFarClip( double farClip );
78 #endif
79 
82  virtual void setWaveSprayEffectEnabled(bool state);
83 
86  virtual void setRotorWashDecalEnabled(bool state);
87 
90  virtual void setTidalStreamWakesEnabled(bool state);
91 
94  virtual void setOceanHeightMapResolution(double res);
95 
100  virtual void setRegenerateHeightMapPercThreshold(double threshold);
101 
105  virtual void setOceanHeightMapTextureSize(int val);
106 
109  virtual void setRegenerateCubeMapThreshold(double threshold);
110 
113  virtual void setOmitCloudInCubeMap(bool state);
114 
118  virtual void setPlanarReflectionTextureWidth(int val);
119 
123  virtual void setPlanarReflectionTextureHeight(int val);
124 
127  virtual void setOceanQuality(unsigned int quality);
128 
129  protected slots:
130 
134  void on_oceanPlanarReflectionsCheckChanged(int state);
135  void on_oceanPlanarReflectionsLODScaleChanged(double scale);
136 #if 0
137  void on_oceanPlanarReflectionsSpecifyFarClipChanged(int state);
138  void on_oceanPlanarReflectionsFarClipChanged(double farClip);
139 #endif
140  void on_waveSprayEffectCheckChanged(int state);
141  void on_rotorWashDecalCheckChanged(int state);
142  void on_tidalStreamWakesCheckChanged(int state);
143  void on_oceanHeightMapResolutionChanged(double res);
144  void on_regenerateCubeMapThreshold(double threshold);
145  void on_omitCloudInCubeMap(int state);
146  void on_regenerateHeightMapPercThreshold(double threshold);
147  void on_oceanHeightMapTextureSizeChanged(int val);
148  void on_planarReflectionTextureWidthChanged(int val);
149  void on_planarReflectionTextureHeightChanged(int val);
150 
151  void on_oceanQualityClicked(int);
152 
154 
155  protected:
156 
159  void setupGui();
160 
163  void connectToSignals();
164 
165  void enablePlanarReflectionParameters( bool enabled );
166 
167  protected:
168 
170 
172 #if 0
173  QCheckBox* myOceanPlanarReflectionsSpecifyFarClipCheckbox;
174 #endif
178 
180 
183 
186 
189 
192 #if 0
193  QLabel* myOceanPlanarReflectionsFarClipLabel;
194  DtSliderDoubleSpinboxWidget* myOceanPlanarReflectionsFarClip;
195 #endif
196 
199 
201 
202 
204 
207 
210 
213  QRadioButton* myOceanQualityGood;
214  QRadioButton* myOceanQualityBetter;
215  QRadioButton* myOceanQualityBest;
216  };
217 }

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)