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

Method OnCopyToGroup

Modules/SegmentationUI/src/QmitkMultiLabelInspector.cpp:1198–1209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1196}
1197
1198void QmitkMultiLabelInspector::OnCopyToGroup()
1199{
1200 auto selectedLabels = this->GetSelectedLabels();
1201
1202 if (selectedLabels.empty())
1203 return;
1204
1205 QmitkCopyLabelToGroupDialog dialog(m_Segmentation, m_Segmentation->GetLabel(selectedLabels.front()));
1206
1207 if (dialog.exec() == QDialog::Accepted)
1208 this->SetSelectedLabel(dialog.GetDestinationLabel()->GetValue());
1209}
1210
1211QWidgetAction* QmitkMultiLabelInspector::CreateOpacityAction()
1212{

Callers

nothing calls this directly

Calls 7

GetSelectedLabelsMethod · 0.95
SetSelectedLabelMethod · 0.95
frontMethod · 0.80
GetDestinationLabelMethod · 0.80
emptyMethod · 0.45
GetLabelMethod · 0.45
GetValueMethod · 0.45

Tested by

no test coverage detected