| 566 | } |
| 567 | |
| 568 | mitk::Label* QmitkMultiLabelInspector::AddNewLabelInstance() |
| 569 | { |
| 570 | auto currentLabel = this->GetFirstSelectedLabelObject(); |
| 571 | if (nullptr == currentLabel) |
| 572 | return nullptr; |
| 573 | |
| 574 | auto result = this->AddNewLabelInstanceInternal(currentLabel); |
| 575 | |
| 576 | // this is needed as workaround for (T27307). It circumvents the fact that modifications |
| 577 | // of data (here the segmentation) does not directly trigger the modification of the |
| 578 | // owning node (see T27307). Therefore other code (like renderers or model views) that e.g. |
| 579 | // listens to the datastorage for modification would not get notified. |
| 580 | if (m_SegmentationNode.IsNotNull()) |
| 581 | { |
| 582 | m_SegmentationNode->Modified(); |
| 583 | } |
| 584 | |
| 585 | return result; |
| 586 | } |
| 587 | |
| 588 | mitk::Label* QmitkMultiLabelInspector::AddNewLabelInternal(const mitk::MultiLabelSegmentation::GroupIndexType& containingGroup, |
| 589 | bool skipNamingPrompt) |
nothing calls this directly
no test coverage detected