aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorDavid Doan <daviddoan@Davids-MacBook-Pro-193.local>2023-12-13 03:58:13 -0500
committerDavid Doan <daviddoan@Davids-MacBook-Pro-193.local>2023-12-13 03:58:13 -0500
commiteaea332f31d8f14caf2f4675779241ad30655fc3 (patch)
tree27171231562e677ce72e7c0daeda707f2e6f93d6 /src/mainwindow.cpp
parent87e614254bc0b1ad0f2ac28a5092c97caab09d7a (diff)
camera movement
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp24
1 files changed, 13 insertions, 11 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 973d5a7..cb6b7a4 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -206,10 +206,12 @@ void MainWindow::initialize() {
maxTimeLayout->addWidget(maxTimeSpinBox);
maxTimeGroupBox->setLayout(maxTimeLayout);
- // // checkbox
- // rotateNegative = new QCheckBox();
- // rotateNegative->setText(QStringLiteral("Reverse Rotation"));
- // rotateNegative->setChecked(false);
+ // checkbox
+ // bulkRender = new QPushButton();
+ // bulkRender->setText(QStringLiteral("Bulk Render"));
+ rotateNegative = new QPushButton();
+ rotateNegative->setText(QStringLiteral("Render the Scene!"));
+ rotateNegative->setChecked(false);
// w Slider
QGroupBox *wLayout = new QGroupBox(); // horizontal w slider alignment
@@ -224,7 +226,7 @@ void MainWindow::initialize() {
wBox = new QDoubleSpinBox();
wBox->setMinimum(-100.0f);
wBox->setMaximum(100.f);
- wBox->setSingleStep(0.01f);
+ wBox->setSingleStep(0.1f);
wBox->setValue(0.f);
lw->addWidget(wSlider);
@@ -253,7 +255,7 @@ void MainWindow::initialize() {
vLayout->addWidget(maxTimeGroupBox);
vLayout->addWidget(bulkRender);
- // vLayout->addWidget(rotateNegative);
+ vLayout->addWidget(rotateNegative);
connectUIElements();
@@ -284,7 +286,7 @@ void MainWindow::connectUIElements() {
connect(rayTracer, &RayTracer::ywRotationChanged, this, &MainWindow::updateYwSlider);
connect(rayTracer, &RayTracer::zwRotationChanged, this, &MainWindow::updateZwSlider);
connect(rayTracer, &RayTracer::rotationChanged, this, &MainWindow::updateRotationSlider);
- connect(rayTracer, &RayTracer::cameraPositionChanged, this, &MainWindow::updateCameraPosition);
+ // connect(rayTracer, &RayTracer::cameraPositionChanged, this, &MainWindow::updateCameraPosition);
connectW();
}
@@ -343,7 +345,7 @@ void MainWindow::connectMaxTimeSlider() {
}
void MainWindow::connectNegativeRotation() {
- connect(rotateNegative, &QCheckBox::clicked, this, &MainWindow::onRotateNegative);
+ connect(rotateNegative, &QPushButton::clicked, this, &MainWindow::onRotateNegative);
}
void MainWindow::connectW() {
@@ -563,6 +565,6 @@ void MainWindow::updateRotationSlider(float value) {
rayTracer->settingsChanged(imageLabel);
}
-void MainWindow::updateCameraPosition() {
- rayTracer->wSliderChanged(imageLabel);
-}
+// void MainWindow::updateCameraPosition() {
+// rayTracer->wSliderChanged(imageLabel);
+// }