VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtRenderSettingsWidget.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2017 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 
26 namespace makVrv
27 {
28 
29  class DtSliderSpinboxWidget;
30  class DtSliderDoubleSpinboxWidget;
31 
38  {
39  Q_OBJECT
40 
41  public:
42 
45  DtDe& de, QWidget* parent, Qt::WindowFlags flags = Qt::Widget);
46 
48  virtual ~DtRenderSettingsWidget();
49 
52  virtual void setWireframeEnabled(bool enabled);
53 
56  virtual void setPerformanceOverlayShown(bool shown);
57 
60  virtual void setProfilerOverlayShown(bool shown);
61 
64  virtual void setImguiOverlayShown(bool shown);
65 
68  virtual void setChannelProjectionResizePolicy(
70 
73  virtual void setSymbolTransparency(int scale);
74 
77  virtual void setTerrainScalingEnabled(bool enabled);
78 
81  virtual void setTerrainScaleFactor(double scaleFactor);
82 
86  virtual void setTerrainScalingAllowed(bool allowed);
87 
90  virtual void setClearTrackHistoriesOnTerrainScaleChanged(bool clear);
91 
95  virtual void setUseAutofocus(bool useAutofocus);
96 
99  virtual void setFocalDepth(double focalDepth);
100 
103  virtual void setFocalRange(double focalRange);
104 
107  virtual void setWaterOnScreenSize(double size);
108 
111  virtual void setCrepuscularRaysEnabled(bool state);
112 
114  virtual void setDrawableColorization(bool enabled);
115 
117  virtual void setComponentVisualizationMode(int mode);
118 
122  virtual int addComponenetVisualizationEntry(QString entry);
123 
125  virtual void setDistanceUnitLabels(const DtUnicode& unitLabel);
126 
128  virtual void setDistanceDecimals(int decimals);
129 
131  virtual void setMaxFocalRange(float distance);
132 
134  virtual void setMaxFocalDepth(float distance);
135 
137  virtual void setAtcGlobalModelEnable(bool state);
138 
140  virtual void setAtcGlobalTerrainEnable(bool state);
141 
143  virtual void setAtcEnableDither(bool state);
144 
145  protected slots:
146 
150  void on_refreshColorizedDrawablesButtonClicked();
151  void on_reloadShaderButton_clicked();
152  void on_wireframeCheckChanged(int state);
153  void on_renderStatsChanged(int state);
154  void on_renderProfilerChanged(int state);
155  void on_renderImguiChanged(int state);
156  void on_myChannelProjectionResizePolicyCombo_currentIndexChanged(int index);
157  void on_SymbolTransparencyChanged(int state);
158  void on_terrainScalingEnabledCheckChanged(int state);
159  void on_terrainScaleFactorSliderChanged(int val);
160  void on_ClearTrackHistoriesCheckChanged(int state);
161  void on_useAutofocusCheckChanged(int state);
162  void on_focalDepthSliderChanged(double val);
163  void on_focalRangeSliderChanged(double val);
164  void on_waterOnScreenSizeSliderChanged(double val);
165  void on_crepuscularRaysCheckChanged(int state);
166  void on_atcGlobalTerrainEnableCheckChanged(int state);
167  void on_atcGlobalModelEnableCheckChanged(int state);
168  void on_atcEnableDitherCheckChanged(int state);
169  void on_componentVisualizationCombo_currentIndexChanged(int selectedIndex);
170  void on_colorizeDrawablesCheckChanged(int state);
172 
173  protected:
174 
177  void setupGui();
178 
181  void connectToSignals();
182 
183  typedef struct widgetStr
184  {
185  QString label;
186  QString tooltip;
187  } WidgetStrings;
188 
189  typedef enum
190  {
191  MaterialComponentIndex = 0,
192  MaterialComponentScalerIndex = 1
193  } WidgetStringIndex;
194 
195  typedef WidgetStrings WidgetStringCollection[2];
196 
197  void setupMaterialWidget(DtSliderDoubleSpinboxWidget* widget,
198  QLabel* label, bool useMaterial,
199  const WidgetStringCollection& strings);
200 
201  protected:
202 
204 
211 
214 
219 
221 
227 
230 
235 
237 
241 
242  };
243 }

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)