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

Method ClearGroupImages

Modules/Multilabel/src/mitkLabelSetImage.cpp:730–748  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

728}
729
730void mitk::MultiLabelSegmentation::ClearGroupImages()
731{
732 for (GroupIndexType groupID = 0; groupID < m_GroupContainer.size(); ++groupID)
733 {
734 try
735 {
736 auto groupImage = this->GetGroupImage(groupID);
737 ClearImageBuffer(groupImage);
738 groupImage->Modified();
739 this->InvokeEvent(LabelsChangedEvent(this->GetLabelValuesByGroup(groupID)));
740 this->InvokeEvent(GroupModifiedEvent(groupID));
741 }
742 catch (itk::ExceptionObject& e)
743 {
744 mitkThrow() << e.GetDescription();
745 }
746 }
747 this->Modified();
748}
749
750void mitk::MultiLabelSegmentation::ClearGroupImages(TimeStepType timestep)
751{

Callers 4

ResetPreviewContentMethod · 0.80
ResetPreviewNodeMethod · 0.80

Calls 7

GetGroupImageMethod · 0.95
GetLabelValuesByGroupMethod · 0.95
GetTimeStepsMethod · 0.80
ClearImageBufferFunction · 0.70
sizeMethod · 0.45
ModifiedMethod · 0.45
GetDescriptionMethod · 0.45

Tested by

no test coverage detected