| 415 | |
| 416 | |
| 417 | void 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 | |
| 438 | void MainWindow::calcSpecAndPreview() { |
| 439 | ui->statusBar->showMessage("calculating specularmap..."); |
nothing calls this directly
no outgoing calls
no test coverage detected