13 #ifndef mitkSegGroupInsertOperation_h
14 #define mitkSegGroupInsertOperation_h
34 using ModifyLabelsMapType = std::map<MultiLabelSegmentation::GroupIndexType, MultiLabelSegmentation::ConstLabelVectorType>;
42 const ModifyLabelsMapType& groupLabels = {});
62 bool noLabels =
false,
bool noGroupImages =
false);
#define MITKSEGMENTATION_EXPORT
MultiLabelSegmentation class for handling labels and layers in a segmentation session.
std::size_t GroupIndexType
ConstLabelVector ConstLabelVectorType
Base class for any operation based on a MultiLabelSegmentation instance.
An Operation for applying an edited slice to the a group of a MultiLabelSegmentation.
MultiLabelSegmentation::ConstLabelVectorType GetGroupLabels(MultiLabelSegmentation::GroupIndexType groupID) const
Get the labels for a certain group that is applied in the operation.
SegGroupInsertOperation & operator=(const SegGroupInsertOperation &)=delete
std::map< MultiLabelSegmentation::GroupIndexType, std::unique_ptr< CompressedImageContainer > > ModifyCompressedImageMapType
std::string GetGroupName(MultiLabelSegmentation::GroupIndexType groupID) const
GroupIndexSetType GetImageGroupIDs() const
Image::Pointer GetGroupImage(MultiLabelSegmentation::GroupIndexType groupID) const
Get the modified group image for a certain group and time step that is applied in the operation.
std::map< MultiLabelSegmentation::GroupIndexType, Image::ConstPointer > ModifyGroupImageMapType
static SegGroupInsertOperation * CreateFromSegmentation(MultiLabelSegmentation *segmentation, const GroupIndexSetType &relevantGroupIDs, bool noLabels=false, bool noGroupImages=false)
std::map< MultiLabelSegmentation::GroupIndexType, std::string > ModifyGroupNameMapType
SegGroupInsertOperation(const SegGroupInsertOperation &)=delete
ModifyLabelsMapType m_Labels
ModifyCompressedImageMapType m_Images
SegGroupInsertOperation(MultiLabelSegmentation *segmentation, const GroupIndexSetType &groupIDs, const ModifyGroupImageMapType &groupImages={}, const ModifyLabelsMapType &groupLabels={})
~SegGroupInsertOperation() override=default
mitkClassMacro(SegGroupInsertOperation, SegChangeOperationBase)
std::map< MultiLabelSegmentation::GroupIndexType, MultiLabelSegmentation::ConstLabelVectorType > ModifyLabelsMapType
GroupIndexSetType GetGroupIDs() const
ModifyGroupNameMapType m_Names
GroupIndexSetType m_GroupIDs
std::set< MultiLabelSegmentation::GroupIndexType > GroupIndexSetType
GroupIndexSetType GetLabelGroupIDs() const
Find image slices visible on a given plane.