-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWindow.h
More file actions
128 lines (113 loc) · 2.91 KB
/
Copy pathWindow.h
File metadata and controls
128 lines (113 loc) · 2.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
#ifndef WINDOW_H
#define WINDOW_H
#include "GLViewer.h"
#include <QMainWindow>
#include <QAction>
#include <QToolBar>
#include <QCheckBox>
#include <QGroupBox>
#include <QComboBox>
#include <QSlider>
#include <QLCDNumber>
#include <QSpinBox>
#include <QImage>
#include <QLabel>
#include <QCheckBox>
#include <QRadioButton>
#include <QDockWidget>
#include <QGroupBox>
#include <QButtonGroup>
#include <QMenuBar>
#include <QApplication>
#include <QLayout>
#include <QLabel>
#include <QProgressBar>
#include <QColorDialog>
#include <QLCDNumber>
#include <QPixmap>
#include <QFrame>
#include <QSplitter>
#include <QMenu>
#include <QScrollArea>
#include <QCoreApplication>
#include <QFont>
#include <QSizePolicy>
#include <QImageReader>
#include <QStatusBar>
#include <QPushButton>
#include <QMessageBox>
#include <QFileDialog>
#include <QStatusBar>
#include <QFormLayout>
#include <vector>
#include <string>
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include "QTUtils.h"
/*!
* \brief A class that creates the User Interface.
*
* Contains:
* - Interface items
* - SLOTs functions that are used to handle user actions
*/
class Window : public QMainWindow {
Q_OBJECT
public:
Window();
virtual ~Window();
static void showStatusMessage (const QString & msg);
public slots :
void renderRayImage ();
void setBGColor ();
void showRayImage ();
void exportGLImage ();
void exportRayImage ();
void about ();
/*Windows only*/
void interactiveWarning (bool b);
/* Program parameters */
void SetScene(int scene);
void SetThreadCount(int iThread);
void SetFilter(bool b);
void SetInteractiveRender(bool b);
void SetAo(bool b);
void SetPathTracing(bool b);
void SetMaxRayDepth(int maxDepth);
void SetPathTracingDiffuseRayCount(int nbRays);
void SetRayTracing(bool b);
void SetAa(bool b);
void SetAaFactor(int factor);
void SetShadows(bool b) ;
void SetHardShadows(bool b) ;
void SetSoftShadows(bool b) ;
void SetLightRadius(double radius) ;
void SetLightSamples(int samples);
private :
void initControlWidget ();
QActionGroup * actionGroup;
QGroupBox * controlWidget; //!< The Left dock group box.
QGroupBox * projectGroupBox; //!< The Right dock group box.
QString currentDirectory;
GLViewer * viewer; //!< The GLViewer (central window)
QCheckBox * interactiveRenderCheckBox;
QPushButton * rayButton;
QComboBox * sceneComboBox;
QCheckBox * focusCheckBox;
QPushButton * saveButton;
QPushButton * showButton;
QCheckBox * wireframeCheckBox;
QRadioButton * flatButton;
QRadioButton * smoothButton;
QPushButton * snapshotButton;
private Q_SLOTS:
void rendererFinished ();
};
#endif // WINDOW_H
// Some Emacs-Hints -- please don't remove:
//
// Local Variables:
// mode:C++
// tab-width:4
// End: