MCPcopy Create free account
hub / github.com/Theverat/NormalmapGenerator / calcSpecAndPreview

Method calcSpecAndPreview

src_gui/mainwindow.cpp:438–457  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

436}
437
438void MainWindow::calcSpecAndPreview() {
439 ui->statusBar->showMessage("calculating specularmap...");
440
441 //timer for measuring calculation time
442 QElapsedTimer timer;
443 timer.start();
444
445 //calculate map
446 calcSpec();
447
448 //display time it took to calculate the map
449 this->lastCalctime_specular = timer.elapsed();
450 displayCalcTime(lastCalctime_specular, "specularmap", 5000);
451
452 //preview in specular map tab
453 preview(2);
454
455 //activate corresponding save checkbox
456 ui->checkBox_queue_generateSpec->setChecked(true);
457}
458
459void MainWindow::calcDisplaceAndPreview() {
460 ui->statusBar->showMessage("calculating displacementmap...");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected