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

Method SetLabelSuggestionHelper

Modules/SegmentationUI/src/QmitkMultiLabelManager.cpp:208–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208void QmitkMultiLabelManager::SetLabelSuggestionHelper(const mitk::LabelSuggestionHelper* suggestionHelper)
209{
210 if (suggestionHelper != m_SuggestionHelper)
211 {
212 m_SuggestionHelper = suggestionHelper;
213 m_Controls->labelInspector->SetLabelSuggestionHelper(suggestionHelper);
214
215 auto updateWidgets = [this](const itk::EventObject&) { this->UpdateControls(); };
216
217 m_SuggestionObserver.Reset(suggestionHelper, itk::ModifiedEvent(), updateWidgets);
218 this->UpdateControls();
219 }
220}
221
222void QmitkMultiLabelManager::UpdateControls()
223{

Callers 1

CreateQtPartControlMethod · 0.45

Calls 2

UpdateControlsMethod · 0.95
ResetMethod · 0.45

Tested by

no test coverage detected