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

Method OnActiveLabelChanged

Modules/SegmentationUI/src/QmitkSlicesInterpolator.cpp:1515–1537  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1513}
1514
1515void QmitkSlicesInterpolator::OnActiveLabelChanged(mitk::Label::PixelType)
1516{
1517 m_FeedbackNode->SetData(nullptr);
1518 m_InterpolatedSurfaceNode->SetData(nullptr);
1519
1520 if (m_Watcher.isRunning())
1521 m_Watcher.waitForFinished();
1522
1523 if (m_3DInterpolationEnabled)
1524 {
1525 m_SurfaceInterpolator->Modified();
1526 }
1527
1528 if (m_2DInterpolationEnabled)
1529 {
1530 m_FeedbackNode->SetData(nullptr);
1531 this->OnInterpolationActivated(true);
1532
1533 m_LastSNC->SendSlice();
1534 }
1535 mitk::RenderingManager::GetInstance()->RequestUpdateAll();
1536 this->UpdateVisibleSuggestion();
1537}
1538
1539void QmitkSlicesInterpolator::CheckSupportedImageDimension()
1540{

Callers 1

SetActiveLabelValueMethod · 0.95

Calls 7

SendSliceMethod · 0.80
SetDataMethod · 0.45
isRunningMethod · 0.45
ModifiedMethod · 0.45
RequestUpdateAllMethod · 0.45

Tested by

no test coverage detected