forked from fuag15/volumetric_visualization_tool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lightControlWindow.cpp
executable file
·132 lines (97 loc) · 3.05 KB
/
lightControlWindow.cpp
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
129
130
131
#include "lightControlWindow.h"
LightControlWindow::LightControlWindow(QWidget * parent):QWidget(parent)
{
QLabel* LightOne = new QLabel("Light One Controls");
QLabel* LightTwo = new QLabel("Light Two Controls");
QLabel* diffuse = new QLabel("Diffuse");
QLabel* specular = new QLabel("Specular");
QLabel* ambient = new QLabel("Ambient");
QLabel* x = new QLabel("x");
QLabel* y = new QLabel("y");
QLabel* z = new QLabel("z");
QLabel* diffuse2 = new QLabel("Diffuse");
QLabel* specular2 = new QLabel("Specular");
QLabel* ambient2 = new QLabel("Ambient");
QLabel* x2 = new QLabel("x");
QLabel* y2 = new QLabel("y");
QLabel* z2 = new QLabel("z");
/*aSlider = new QSlider();
aSlider -> setMaximum(256);
aSlider -> setMinimum(1);
aSlider -> setOrientation(Qt::Horizontal);
dSlider = new QSlider();
dSlider -> setMaximum(256);
dSlider -> setMinimum(1);
dSlider -> setOrientation(Qt::Horizontal);
sSlider = new QSlider();
sSlider -> setMaximum(256);
sSlider -> setMinimum(1);
sSlider -> setOrientation(Qt::Horizontal);
xSlider = new QSlider();
xSlider -> setMaximum(256);
xSlider -> setMinimum(1);
xSlider -> setOrientation(Qt::Horizontal);
ySlider = new QSlider();
ySlider -> setMaximum(256);
ySlider -> setMinimum(1);
ySlider -> setOrientation(Qt::Horizontal);
zSlider = new QSlider();
zSlider -> setMaximum(256);
zSlider -> setMinimum(1);
zSlider -> setOrientation(Qt::Horizontal);
qDebug() << "got here" << endl;
aSlider2 = new QSlider();
aSlider2 -> setMaximum(256);
aSlider2 -> setMinimum(1);
aSlider2 -> setOrientation(Qt::Horizontal);
dSlider2 = new QSlider();
dSlider2 -> setMaximum(256);
dSlider2 -> setMinimum(1);
dSlider2 -> setOrientation(Qt::Horizontal);
sSlider2 = new QSlider();
sSlider2 -> setMaximum(256);
sSlider2 -> setMinimum(1);
sSlider2 -> setOrientation(Qt::Horizontal);
xSlider2 = new QSlider();
xSlider2 -> setMaximum(256);
xSlider2 -> setMinimum(1);
xSlider2 -> setOrientation(Qt::Horizontal);
ySlider2 = new QSlider();
ySlider2 -> setMaximum(256);
ySlider2 -> setMinimum(1);
ySlider2 -> setOrientation(Qt::Horizontal);
zSlider2 = new QSlider();
zSlider2 -> setMaximum(256);
zSlider2 -> setMinimum(1);
zSlider2 -> setOrientation(Qt::Horizontal);
QVBoxLayout *layout = new QVBoxLayout;
layout->addWidget(LightOne);
layout->addWidget(ambient);
layout->addWidget(aSlider);
layout->addWidget(diffuse);
layout->addWidget(dSlider);
layout->addWidget(specular);
layout->addWidget(sSlider);
layout->addWidget(x);
layout->addWidget(xSlider);
layout->addWidget(y);
layout->addWidget(ySlider);
layout->addWidget(z);
layout->addWidget(zSlider);
layout->addWidget(LightTwo);
layout->addWidget(ambient2);
layout->addWidget(aSlider2);
layout->addWidget(diffuse2);
layout->addWidget(dSlider2);
layout->addWidget(specular2);
layout->addWidget(sSlider2);
layout->addWidget(x2);
layout->addWidget(xSlider2);
layout->addWidget(y2);
layout->addWidget(ySlider2);
layout->addWidget(z2);
layout->addWidget(zSlider2);
setLayout(layout);*/
resize(600, 800);
return;
}