| 436 | } |
| 437 | |
| 438 | void 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 | |
| 459 | void MainWindow::calcDisplaceAndPreview() { |
| 460 | ui->statusBar->showMessage("calculating displacementmap..."); |
nothing calls this directly
no outgoing calls
no test coverage detected