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

Method calcNormalAndPreview

src_gui/mainwindow.cpp:417–436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415
416
417void MainWindow::calcNormalAndPreview() {
418 ui->statusBar->showMessage("calculating normalmap...");
419
420 //timer for measuring calculation time
421 QElapsedTimer timer;
422 timer.start();
423
424 //calculate map
425 calcNormal();
426
427 //display time it took to calculate the map
428 this->lastCalctime_normal = timer.elapsed();
429 displayCalcTime(lastCalctime_normal, "normalmap", 5000);
430
431 //preview in normalmap tab
432 preview(1);
433
434 //activate corresponding save checkbox
435 ui->checkBox_queue_generateNormal->setChecked(true);
436}
437
438void MainWindow::calcSpecAndPreview() {
439 ui->statusBar->showMessage("calculating specularmap...");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected