| 684 | } |
| 685 | |
| 686 | void mitk::MultiLabelSegmentation::ClearGroupImage(GroupIndexType groupID) |
| 687 | { |
| 688 | if (!this->ExistGroup(groupID)) |
| 689 | mitkThrow() << "Error, cannot clear group image. Group ID is invalid. Invalid ID: " << groupID; |
| 690 | |
| 691 | try |
| 692 | { |
| 693 | auto groupImage = this->GetGroupImage(groupID); |
| 694 | ClearImageBuffer(groupImage); |
| 695 | groupImage->Modified(); |
| 696 | this->InvokeEvent(LabelsChangedEvent(this->GetLabelValuesByGroup(groupID))); |
| 697 | this->InvokeEvent(GroupModifiedEvent(groupID)); |
| 698 | } |
| 699 | catch (itk::ExceptionObject &e) |
| 700 | { |
| 701 | mitkThrow() << e.GetDescription(); |
| 702 | } |
| 703 | this->Modified(); |
| 704 | } |
| 705 | |
| 706 | void mitk::MultiLabelSegmentation::ClearGroupImage(GroupIndexType groupID, TimeStepType timestep) |
| 707 | { |
no test coverage detected