-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwidget_slots.cpp
87 lines (75 loc) · 2.08 KB
/
widget_slots.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
#include "widget.h"
#include "ui_widget.h"
void Widget::on_doubleSpinBox_lampX_valueChanged(double value)
{
this->ui_lampX = value;
this->updateLamp();
}
void Widget::on_doubleSpinBox_lampY_valueChanged(double value)
{
this->ui_lampY = value;
this->updateLamp();
}
void Widget::on_doubleSpinBox_lampZ_valueChanged(double value)
{
this->ui_lampZ = value;
this->updateLamp();
}
void Widget::on_doubleSpinBox_eyeX_valueChanged(double value)
{
this->ui_eyeX = value;
this->updateEye();
}
void Widget::on_doubleSpinBox_eyeY_valueChanged(double value)
{
this->ui_eyeY = value;
this->updateEye();
}
void Widget::on_doubleSpinBox_eyeZ_valueChanged(double value)
{
this->ui_eyeZ = value;
this->updateEye();
}
void Widget::on_doubleSpinBox_steps_valueChanged(double value)
{
this->ui_steps = value;
this->ui->widget_canvas->setSteps( value );
}
void Widget::on_doubleSpinBox_scale_valueChanged(double value)
{
this->ui_scale = value;
this->ui->widget_canvas->setScale( value );
}
void Widget::on_doubleSpinBox_bias_valueChanged(double value)
{
this->ui_bias = value;
this->ui->widget_canvas->setBias( value );
}
void Widget::on_comboBox_mapping_currentIndexChanged(int value)
{
this->ui_currentMappingIndex = value;
this->ui->widget_canvas->setMappingIndex(value);
this->updateForm();
}
void Widget::on_comboBox_texture_currentIndexChanged(int value)
{
this->ui_currentTextureIndex = value;
this->ui->widget_canvas->setTextureIndex(value);
}
void Widget::on_pushButton_timer_clicked(bool checked)
{
if( checked )
{
this->ui->label_fps->setVisible(true);
this->ui->label_fps_value->setVisible(true);
this->ui->widget_canvas->startPerformanceTimers();
this->ui->pushButton_timer->setText("Остановить таймеры");
}
else
{
this->ui->label_fps->setVisible(false);
this->ui->label_fps_value->setVisible(false);
this->ui->widget_canvas->stopPerformanceTimers();
this->ui->pushButton_timer->setText("Запустить таймеры");
}
}