VoxelBlur
Depth-of-field volume rendering
 All Classes Files Functions Variables Enumerations Enumerator
mainwindow.h
Go to the documentation of this file.
1 #ifndef MAINWINDOW_H
2 #define MAINWINDOW_H
3 
4 #include <QtWidgets/QMainWindow>
5 
14 class MainWindow : public QMainWindow
15 {
16  Q_OBJECT
17 
18 public:
22  explicit MainWindow(QWidget *parent = nullptr);
23  ~MainWindow();
24 
25 protected:
26  void timerEvent(QTimerEvent* e) override;
27 
28 private slots:
29  void rendererDistanceChanged(float d);
30  void on_sigmaSlider_valueChanged(int d);
31  void on_sigmaSpinBox_valueChanged(double d);
32  void on_zoomSlider_valueChanged(int d);
33  void on_sliceSlider_valueChanged(int d);
34  void on_sliceSpinBox_valueChanged(double d);
35  void on_windowMinSlider_valueChanged(int d);
36  void on_windowMinSpinBox_valueChanged(double d);
37  void on_windowMaxSlider_valueChanged(int d);
38  void on_windowMaxSpinBox_valueChanged(double d);
39  void on_orthoCheckbox_toggled(bool v);
40  void on_lightDirectionCheckbox_toggled(bool v);
41 
42  void on_dofCheckBox_toggled(bool v);
43  void on_focalPlaneSlider_valueChanged(int d);
44  void on_blurAmountSlider_valueChanged(int d);
45  void on_blurAmountSpinBox_valueChanged(double d);
46 
47  void on_loadVolumeButton_clicked();
48  void on_smoothCheckBox_toggled(bool v);
49 
50  void initializeError(const QString& error);
51 private:
52  Q_DISABLE_COPY(MainWindow)
57  void setupRendering();
58  void updateVolumeInfo();
59  void sliderUpdateSilent(QSlider* s,const int val);
60 };
61 
62 #endif // MAINWINDOW_H
Private data for MainWindow.
Definition: mainwindow.cpp:9
MainWindow(QWidget *parent=nullptr)
MainWindow constructor.
Definition: mainwindow.cpp:22
class MainWindowPrivate & d
Private data reference.
Definition: mainwindow.h:56
The main window of the application.
Definition: mainwindow.h:14