External enableization... */
| 424 | External enableization... |
| 425 | */ |
| 426 | void QmitkSlicesInterpolator::setEnabled(bool enable) |
| 427 | { |
| 428 | QWidget::setEnabled(enable); |
| 429 | |
| 430 | // Set the gui elements of the different interpolation modi enabled |
| 431 | if (enable) |
| 432 | { |
| 433 | if (m_2DInterpolationEnabled) |
| 434 | { |
| 435 | this->Show2DInterpolationControls(true); |
| 436 | m_Interpolator->Activate2DInterpolation(true); |
| 437 | } |
| 438 | else if (m_3DInterpolationEnabled) |
| 439 | { |
| 440 | this->Show3DInterpolationControls(true); |
| 441 | this->Show3DInterpolationResult(true); |
| 442 | } |
| 443 | } |
| 444 | // Set all gui elements of the interpolation disabled |
| 445 | else |
| 446 | { |
| 447 | this->HideAllInterpolationControls(); |
| 448 | this->Show3DInterpolationResult(false); |
| 449 | } |
| 450 | } |
| 451 | |
| 452 | void QmitkSlicesInterpolator::On2DInterpolationEnabled(bool status) |
| 453 | { |
no test coverage detected