VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtPostProcessorSettingsWidget.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2020 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCoreQt/vrvCoreQt.h>
14 #include "DtPostProcessorSettingsWidget.hpp"
15 
16 #include <QtWidgets/QWidget>
17 
18 class QLabel;
19 class QSlider;
20 class QSpinBox;
21 class QCheckBox;
22 class QDoubleSpinBox;
23 
24 namespace makVrv
25 {
26 
27  class DtDe;
28 
33  { Q_OBJECT;
34  public:
35 
37  DtPostProcessorSettingsWidget( DtDe& de, QWidget* parent,
38  Qt::WindowFlags f = Qt::Widget );
39 
42 
44 
45 
47  virtual bool enableHdr() const;
48  virtual void setEnableHdr( bool enabled );
49 
50  virtual bool enableHdrAutoExposure() const;
51  virtual void setEnableHdrAutoExposure( bool enabled );
52 
53  virtual bool enableHdrExposureCorrelation() const;
54  virtual void setEnableHdrExposureCorrelation(bool enabled);
55 
56  virtual bool enableHdrBloom() const;
57  virtual void setEnableHdrBloom( bool enabled );
58 
59  virtual bool enableHdrStreaks() const;
60  virtual void setEnableHdrStreaks( bool enabled );
61 
62  virtual bool enableHdrLensFlare() const;
63  virtual void setEnableHdrLensFlare( bool enabled );
64 
65  virtual double lightPointScale() const;
66  virtual void setLightPointScale( double scale );
67 
68  virtual double dynamicLightScale() const;
69  virtual void setDynamicLightScale( double scale );
70 
71  virtual double emissiveTextureScale() const;
72  virtual void setEmissiveTextureScale( double scale );
73 
74  virtual double specularScale() const;
75  virtual void setSpecularScale( double scale );
76 
77  virtual double shininessScale() const;
78  virtual void setShininessScale( double scale );
79 
80  virtual double autoExposureRateScale() const;
81  virtual void setAutoExposureRateScale( double scale );
82 
83  virtual double autoExposurePreScale() const;
84  virtual void setAutoExposurePreScale( double scale );
85 
86  virtual double autoExposureMinDiff() const;
87  virtual void setAutoExposureMinDiff( double scale );
88 
89  virtual double autoExposureMaxDiff() const;
90  virtual void setAutoExposureMaxDiff( double scale );
91 
92  virtual double autoExposureClampMin() const;
93  virtual void setAutoExposureClampMin( double scale );
94 
95  virtual double autoExposureClampMax() const;
96  virtual void setAutoExposureClampMax( double scale );
97 
98  virtual double autoExposurePostScale() const;
99  virtual void setAutoExposurePostScale( double scale );
100 
101  virtual double bloomScale() const;
102  virtual void setBloomScale( double scale );
103 
104  virtual double streakIntensityScale() const;
105  virtual void setStreakIntensityScale( double scale );
106 
107  virtual int numStreaks() const;
108  virtual void setNumStreaks( int count );
109 
110  virtual double streaksLenScale() const;
111  virtual void setStreaksLenScale( double scale );
112 
113  virtual double streakRotationOffset() const;
114  virtual void setStreakRotationOffset( double scale );
115 
116  virtual double lensFlareScale() const;
117  virtual void setLensFlareScale( double scale );
118 
119  virtual double gamma() const;
120  virtual void setGamma( double scale );
121 
122  virtual int hdrResolutionScale() const;
123  virtual void setHdrResolutionScale( int scale );
125 
126  virtual void setLightPointScaleRange( float max, float min, float step );
127  virtual void setDynamicLightScaleRange( float max, float min, float step );
128  virtual void setEmissiveTextureScaleRange( float max, float min, float step );
129  virtual void setSpecularScaleRange( float max, float min, float step );
130  virtual void setShininessScaleRange( float max, float min, float step );
131 
132  virtual void setAutoExposureRateScaleRange( float max, float min, float step );
133  virtual void setAutoExposurePreScaleRange( float max, float min, float step );
134  virtual void setAutoExposureMinDiffRange( float max, float min, float step );
135  virtual void setAutoExposureMaxDiffRange( float max, float min, float step );
136  virtual void setAutoExposureClampMinRange( float max, float min, float step );
137  virtual void setAutoExposureClampMaxRange( float max, float min, float step );
138  virtual void setAutoExposurePostScaleRange( float max, float min, float step );
139 
140  virtual void setBloomScaleRange( float max, float min, float step );
141 
142  virtual void setStreakIntensityScaleRange( float max, float min, float step );
143  virtual void setNumStreaksRange( int max, int min, int step );
144  virtual void setStreaksLenScaleRange( float max, float min, float step );
145  virtual void setStreakRotationOffsetRange( float max, float min, float step );
146 
147  virtual void setLensFlareScaleRange( float max, float min, float step );
148 
149  virtual void setGammaRange( float max, float min, float step );
150 
151  virtual void setHdrResolutionScaleRange( int max, int min, int step );
152 
153  protected slots:
154 
156 
157 
159  void onEnableHdrChanged( int checkedState );
160  void onEnableHdrAutoExposureChanged( int checkedState );
161  void onEnableHdrExposureCorrelationChanged(int checkedState);
162  void onEnableHdrBloomChanged( int checkedState );
163  void onEnableHdrStreaksChanged( int checkedState );
164  void onEnableHdrLensFlareChanged( int checkedState );
165 
166  void onLightPointScaleChanged( double scale );
167  void onDynamicLightScaleChanged( double scale );
168  void onEmissiveTextureScaleChanged( double scale );
169  void onSpecularScaleChanged( double scale );
170  void onShininessScaleChanged( double scale );
171 
172  void onAutoExposureRateScaleChanged( double scale );
173  void onAutoExposurePreScaleChanged( double scale );
174  void onAutoExposureMinDiffChanged( double scale );
175  void onAutoExposureMaxDiffChanged( double scale );
176  void onAutoExposureClampMinChanged( double scale );
177  void onAutoExposureClampMaxChanged( double scale );
178  void onAutoExposurePostScaleChanged( double scale );
179 
180  void onBloomScaleChanged( double scale );
181 
182  void onStreakIntensityScaleChanged( double scale );
183  void onNumStreaksChanged( int count );
184  void onStreaksLenScaleChanged( double scale );
185  void onStreakRotationOffsetChanged( double scale );
186 
187  void onLensFlareScaleChanged( double scale );
188 
189  void onGammaChanged( double scale );
190 
191  void onHdrResolutionScaleChanged( int scale );
192 
194 
195  protected:
196 
199  void connectToSignals();
200  void updateEnableStateHdrGui() const;
201  protected:
202 
204 
205  };
206 
207 }
Interface for the post processor settings widget. Used by the logic to communicate with the widget...
Definition: DtPostProcessorSettingsInterface.h:23
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
Contains DLL export macros.
Contains makVrv::DtPostProcessorSettingsInterface class.
DtDe & myDe
Definition: DtPostProcessorSettingsWidget.h:203
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:70
This widget contains fields for configuring Post Processors.
Definition: DtPostProcessorSettingsWidget.h:31

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)