|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
An Operation for inserting groups into a MultiLabelSegmentation. More...
#include <mitkSegGroupInsertOperation.h>


Public Types | |
| using | ModifyGroupImageMapType = std::map< MultiLabelSegmentation::GroupIndexType, Image::ConstPointer > |
| using | ModifyLabelsMapType = std::map< MultiLabelSegmentation::GroupIndexType, MultiLabelSegmentation::ConstLabelVectorType > |
| using | GroupIndexSetType = std::set< MultiLabelSegmentation::GroupIndexType > |
| using | ModifyGroupNameMapType = std::map< MultiLabelSegmentation::GroupIndexType, std::string > |
Public Member Functions | |
| mitkClassMacro (SegGroupInsertOperation, SegChangeOperationBase) | |
| SegGroupInsertOperation (MultiLabelSegmentation *segmentation, const GroupIndexSetType &groupIDs, const ModifyGroupImageMapType &groupImages={}, const ModifyLabelsMapType &groupLabels={}) | |
| Construct an insert operation with the given group data. More... | |
| ~SegGroupInsertOperation () override=default | |
| GroupIndexSetType | GetGroupIDs () const |
| Get all group indices managed by this operation. More... | |
| GroupIndexSetType | GetImageGroupIDs () const |
| Get the group indices that have associated image data. More... | |
| GroupIndexSetType | GetLabelGroupIDs () const |
| Get the group indices that have associated label data. More... | |
| Image::Pointer | GetGroupImage (MultiLabelSegmentation::GroupIndexType groupID) const |
| Get the group image for a specific group index. More... | |
| MultiLabelSegmentation::ConstLabelVectorType | GetGroupLabels (MultiLabelSegmentation::GroupIndexType groupID) const |
| Get the labels for a specific group index. More... | |
| std::string | GetGroupName (MultiLabelSegmentation::GroupIndexType groupID) const |
| Get the group name for a specific group index. More... | |
| SegGroupInsertOperation (const SegGroupInsertOperation &)=delete | |
| SegGroupInsertOperation & | operator= (const SegGroupInsertOperation &)=delete |
Public Member Functions inherited from mitk::SegChangeOperationBase | |
| mitkClassMacro (SegChangeOperationBase, Operation) | |
| ~SegChangeOperationBase () override=default | |
| bool | IsValid () const override |
| Check whether the operation is still valid (i.e., the segmentation still exists). More... | |
| mitk::MultiLabelSegmentation::Pointer | GetSegmentation () |
| Get the target segmentation (mutable). More... | |
| const mitk::MultiLabelSegmentation::ConstPointer | GetSegmentation () const |
| Get the target segmentation (const). More... | |
Public Member Functions inherited from mitk::Operation | |
| mitkClassMacroNoParent (Operation) virtual bool IsValid() const | |
| Check whether this operation is still valid and can be executed. More... | |
| virtual | ~Operation ()=default |
| Virtual destructor. More... | |
| OperationType | GetOperationType () |
| Get the type identifier of this operation. More... | |
Static Public Member Functions | |
| static SegGroupInsertOperation * | CreateFromSegmentation (MultiLabelSegmentation *segmentation, const GroupIndexSetType &relevantGroupIDs, bool noLabels=false, bool noGroupImages=false) |
| Factory method that creates an insert operation from the current state of a segmentation. More... | |
Protected Types | |
| using | ModifyCompressedImageMapType = std::map< MultiLabelSegmentation::GroupIndexType, std::unique_ptr< CompressedImageContainer > > |
Protected Attributes | |
| GroupIndexSetType | m_GroupIDs |
| ModifyCompressedImageMapType | m_Images |
| ModifyLabelsMapType | m_Labels |
| ModifyGroupNameMapType | m_Names |
Protected Attributes inherited from mitk::Operation | |
| OperationType | m_OperationType |
| The type identifier for this operation. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from mitk::SegChangeOperationBase | |
| SegChangeOperationBase (mitk::MultiLabelSegmentation *segmentation, OperationType operationType) | |
| SegChangeOperationBase (SegChangeOperationBase &&)=default | |
| SegChangeOperationBase & | operator= (const SegChangeOperationBase &)=default |
| SegChangeOperationBase & | operator= (SegChangeOperationBase &&)=default |
Protected Member Functions inherited from mitk::Operation | |
| Operation (OperationType operationType) | |
| Construct an operation with the given type. More... | |
| Operation (const Operation &)=default | |
| Operation (Operation &&)=default | |
| Operation & | operator= (const Operation &)=default |
| Operation & | operator= (Operation &&)=default |
An Operation for inserting groups into a MultiLabelSegmentation.
This Operation can be used to realize undo-redo functionality for group insertion in segmentation workflows. It stores group images, labels, and names to be inserted at specific group indices.
Definition at line 32 of file mitkSegGroupInsertOperation.h.
| using mitk::SegGroupInsertOperation::GroupIndexSetType = std::set<MultiLabelSegmentation::GroupIndexType> |
Definition at line 39 of file mitkSegGroupInsertOperation.h.
|
protected |
Definition at line 91 of file mitkSegGroupInsertOperation.h.
| using mitk::SegGroupInsertOperation::ModifyGroupImageMapType = std::map<MultiLabelSegmentation::GroupIndexType, Image::ConstPointer > |
Definition at line 37 of file mitkSegGroupInsertOperation.h.
| using mitk::SegGroupInsertOperation::ModifyGroupNameMapType = std::map<MultiLabelSegmentation::GroupIndexType, std::string > |
Definition at line 40 of file mitkSegGroupInsertOperation.h.
| using mitk::SegGroupInsertOperation::ModifyLabelsMapType = std::map<MultiLabelSegmentation::GroupIndexType, MultiLabelSegmentation::ConstLabelVectorType> |
Definition at line 38 of file mitkSegGroupInsertOperation.h.
| mitk::SegGroupInsertOperation::SegGroupInsertOperation | ( | MultiLabelSegmentation * | segmentation, |
| const GroupIndexSetType & | groupIDs, | ||
| const ModifyGroupImageMapType & | groupImages = {}, |
||
| const ModifyLabelsMapType & | groupLabels = {} |
||
| ) |
Construct an insert operation with the given group data.
| segmentation | The target segmentation. |
| groupIDs | The set of group indices to insert. |
| groupImages | Optional map of group images to insert. |
| groupLabels | Optional map of labels to insert for each group. |
|
overridedefault |
|
delete |
|
static |
Factory method that creates an insert operation from the current state of a segmentation.
| segmentation | The segmentation to capture state from. |
| relevantGroupIDs | The group indices to capture. |
| noLabels | If true, label information is not captured. |
| noGroupImages | If true, group image data is not captured. |
| GroupIndexSetType mitk::SegGroupInsertOperation::GetGroupIDs | ( | ) | const |
Get all group indices managed by this operation.
| Image::Pointer mitk::SegGroupInsertOperation::GetGroupImage | ( | MultiLabelSegmentation::GroupIndexType | groupID | ) | const |
Get the group image for a specific group index.
| groupID | The group index. |
| MultiLabelSegmentation::ConstLabelVectorType mitk::SegGroupInsertOperation::GetGroupLabels | ( | MultiLabelSegmentation::GroupIndexType | groupID | ) | const |
Get the labels for a specific group index.
| std::string mitk::SegGroupInsertOperation::GetGroupName | ( | MultiLabelSegmentation::GroupIndexType | groupID | ) | const |
Get the group name for a specific group index.
| GroupIndexSetType mitk::SegGroupInsertOperation::GetImageGroupIDs | ( | ) | const |
Get the group indices that have associated image data.
| GroupIndexSetType mitk::SegGroupInsertOperation::GetLabelGroupIDs | ( | ) | const |
Get the group indices that have associated label data.
| mitk::SegGroupInsertOperation::mitkClassMacro | ( | SegGroupInsertOperation | , |
| SegChangeOperationBase | |||
| ) |
|
delete |
|
protected |
Definition at line 92 of file mitkSegGroupInsertOperation.h.
|
protected |
Definition at line 93 of file mitkSegGroupInsertOperation.h.
|
protected |
Definition at line 94 of file mitkSegGroupInsertOperation.h.
|
protected |
Definition at line 95 of file mitkSegGroupInsertOperation.h.