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

Method OnLabelChanged

Modules/SegmentationUI/src/QmitkSimpleLabelSetListWidget.cpp:112–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112void QmitkSimpleLabelSetListWidget::OnLabelChanged(mitk::MultiLabelSegmentation::LabelValueType lv)
113{
114 if (!this->m_Emmiting
115 && (!m_LabelSetImage->ExistLabel(lv) || m_LabelSetImage->GetGroupIndexOfLabel(lv)==m_LabelSetImage->GetActiveLayer()))
116 {
117 this->ResetList();
118
119 this->m_Emmiting = true;
120 emit ActiveLayerChanged();
121 emit SelectedLabelsChanged(this->SelectedLabels());
122 this->m_Emmiting = false;
123 }
124}
125
126void QmitkSimpleLabelSetListWidget::OnLabelSelectionChanged()
127{

Callers 1

SetLabelSetImageMethod · 0.80

Calls 5

ResetListMethod · 0.95
SelectedLabelsMethod · 0.95
ExistLabelMethod · 0.80
GetGroupIndexOfLabelMethod · 0.80
GetActiveLayerMethod · 0.80

Tested by

no test coverage detected