VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtRenderSettingsWidget.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCoreQt/vrvCoreQt.h>
14 #include <QtGui/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 setChannelProjectionResizePolicy(
66 
69  virtual void setSymbolTransparency(int scale);
70 
73  virtual void setTerrainScalingEnabled(bool enabled);
74 
77  virtual void setTerrainScaleFactor(double scaleFactor);
78 
82  virtual void setTerrainScalingAllowed(bool allowed);
83 
86  virtual void setClearTrackHistoriesOnTerrainScaleChanged(bool clear);
87 
91  virtual void setUseAutofocus(bool useAutofocus);
92 
95  virtual void setFocalDepth(double focalDepth);
96 
99  virtual void setFocalRange(double focalRange);
100 
103  virtual void setLensFlareEnabled(bool state);
104 
107  virtual void setCrepuscularRaysEnabled(bool state);
108 
110  virtual void setDrawableColorization(bool enabled);
111 
113  virtual void setComponentVisualizationMode(int mode);
114 
118  virtual int addComponenetVisualizationEntry(QString entry);
119 
120  protected slots:
121 
125  void on_refreshColorizedDrawablesButtonClicked();
126  void on_reloadShaderButton_clicked();
127  void on_wireframeCheckChanged(int state);
128  void on_renderStatsChanged(int state);
129  void on_renderProfilerChanged(int state);
130  void on_myChannelProjectionResizePolicyCombo_currentIndexChanged(int index);
131  void on_SymbolTransparencyChanged(int state);
132  void on_terrainScalingEnabledCheckChanged(int state);
133  void on_terrainScaleFactorSliderChanged(int val);
134  void on_ClearTrackHistoriesCheckChanged(int state);
135  void on_useAutofocusCheckChanged(int state);
136  void on_focalDepthSliderChanged(double val);
137  void on_focalRangeSliderChanged(double val);
138  void on_lensFlareCheckChanged(int state);
139  void on_crepuscularRaysCheckChanged(int state);
140  void on_componentVisualizationCombo_currentIndexChanged(int selectedIndex);
141  void on_colorizeDrawablesCheckChanged(int state);
143 
144  protected:
145 
148  void setupGui();
149 
152  void connectToSignals();
153 
154  typedef struct widgetStr
155  {
156  QString label;
157  QString tooltip;
158  } WidgetStrings;
159 
160  typedef enum
161  {
162  MaterialComponentIndex = 0,
163  MaterialComponentScalerIndex = 1
164  } WidgetStringIndex;
165 
166  typedef WidgetStrings WidgetStringCollection[2];
167 
168  void setupMaterialWidget( DtSliderDoubleSpinboxWidget* widget,
169  QLabel* label, bool useMaterial,
170  const WidgetStringCollection& strings );
171 
172  protected:
173 
175 
181 
184 
189 
192 
198 
203 
205  };
206 }

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)