Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitk::SegGroupRemoveOperation Class Reference

An Operation for removing groups from a MultiLabelSegmentation. More...

#include <mitkSegGroupRemoveOperation.h>

Inheritance diagram for mitk::SegGroupRemoveOperation:
Collaboration diagram for mitk::SegGroupRemoveOperation:

Public Types

using GroupIndexSetType = std::set< MultiLabelSegmentation::GroupIndexType >
 

Public Member Functions

 mitkClassMacro (SegGroupRemoveOperation, SegChangeOperationBase)
 
 SegGroupRemoveOperation (MultiLabelSegmentation *segmentation, const GroupIndexSetType &removalGroupIDs)
 Construct a remove operation for the specified groups. More...
 
 ~SegGroupRemoveOperation () override=default
 
GroupIndexSetType GetGroupIDs () const
 Get the group indices to be removed. More...
 
 SegGroupRemoveOperation (const SegGroupRemoveOperation &)=delete
 
SegGroupRemoveOperation & operator= (const SegGroupRemoveOperation &)=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...
 

Protected Attributes

GroupIndexSetType m_GroupIDs
 
- 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
 

Detailed Description

An Operation for removing groups from a MultiLabelSegmentation.

See also
SegChangeOperationApplier

This Operation can be used to realize undo-redo functionality for group removal in segmentation workflows. It stores the indices of the groups to be removed.

Definition at line 31 of file mitkSegGroupRemoveOperation.h.

Member Typedef Documentation

◆ GroupIndexSetType

Constructor & Destructor Documentation

◆ SegGroupRemoveOperation() [1/2]

mitk::SegGroupRemoveOperation::SegGroupRemoveOperation ( MultiLabelSegmentation *  segmentation,
const GroupIndexSetType &  removalGroupIDs 
)

Construct a remove operation for the specified groups.

Parameters
segmentationThe target segmentation.
removalGroupIDsThe set of group indices to remove.

◆ ~SegGroupRemoveOperation()

mitk::SegGroupRemoveOperation::~SegGroupRemoveOperation ( )
overridedefault

◆ SegGroupRemoveOperation() [2/2]

mitk::SegGroupRemoveOperation::SegGroupRemoveOperation ( const SegGroupRemoveOperation &  )
delete

Member Function Documentation

◆ GetGroupIDs()

GroupIndexSetType mitk::SegGroupRemoveOperation::GetGroupIDs ( ) const

Get the group indices to be removed.

◆ mitkClassMacro()

mitk::SegGroupRemoveOperation::mitkClassMacro ( SegGroupRemoveOperation  ,
SegChangeOperationBase   
)

◆ operator=()

SegGroupRemoveOperation& mitk::SegGroupRemoveOperation::operator= ( const SegGroupRemoveOperation &  )
delete

Member Data Documentation

◆ m_GroupIDs

GroupIndexSetType mitk::SegGroupRemoveOperation::m_GroupIDs
protected

Definition at line 55 of file mitkSegGroupRemoveOperation.h.


The documentation for this class was generated from the following file: