MCPcopy Create free account
hub / github.com/MITK/MITK / setEnabled

Method setEnabled

Modules/SegmentationUI/src/QmitkSlicesInterpolator.cpp:426–450  ·  view source on GitHub ↗

External enableization... */

Source from the content-addressed store, hash-verified

424External enableization...
425*/
426void 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
452void QmitkSlicesInterpolator::On2DInterpolationEnabled(bool status)
453{

Tested by

no test coverage detected