Medical Imaging Interaction Toolkit  2025.08.99-f7084adb
Medical Imaging Interaction Toolkit
mitk::SegLabelPropModifyOperation Class Reference

An Operation for applying a modification to the properties of a label (E.g. name, color) of a MultiLabelSegmentation. More...

#include <mitkSegLabelPropModifyOperation.h>

Inheritance diagram for mitk::SegLabelPropModifyOperation:
Collaboration diagram for mitk::SegLabelPropModifyOperation:

Public Types

using ModifyLabelsVectorType = MultiLabelSegmentation::ConstLabelVectorType
 
- Public Types inherited from mitk::Operation
typedef Operation Self
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 

Public Member Functions

 mitkClassMacro (SegLabelPropModifyOperation, SegChangeOperationBase)
 
 SegLabelPropModifyOperation (MultiLabelSegmentation *segmentation, const ModifyLabelsVectorType &modifiedLabel)
 
 ~SegLabelPropModifyOperation () override=default
 
const ModifyLabelsVectorTypeGetModifiedLabels () const
 Get the modified labels map. More...
 
 SegLabelPropModifyOperation (const SegLabelPropModifyOperation &)=delete
 
SegLabelPropModifyOperationoperator= (const SegLabelPropModifyOperation &)=delete
 
- Public Member Functions inherited from mitk::SegChangeOperationBase
 mitkClassMacro (SegChangeOperationBase, Operation)
 
 ~SegChangeOperationBase () override=default
 
bool IsValid () const override
 Check if it is a valid operation. More...
 
mitk::MultiLabelSegmentation::Pointer GetSegmentation ()
 
const mitk::MultiLabelSegmentation::ConstPointer GetSegmentation () const
 
- Public Member Functions inherited from mitk::Operation
virtual std::vector< std::string > GetClassHierarchy () const
 
 itkTypeMacroNoParent (Operation) virtual bool IsValid() const
 
virtual ~Operation ()=default
 
OperationType GetOperationType ()
 

Static Public Member Functions

static SegLabelPropModifyOperationCreatFromSegmentation (MultiLabelSegmentation *segmentation, const MultiLabelSegmentation::LabelValueVectorType &relevantLabels)
 
- Static Public Member Functions inherited from mitk::Operation
static const char * GetStaticNameOfClass ()
 

Protected Attributes

ModifyLabelsVectorType m_ModifiedLabels
 
- Protected Attributes inherited from mitk::Operation
OperationType m_OperationType
 

Additional Inherited Members

- Protected Member Functions inherited from mitk::SegChangeOperationBase
 SegChangeOperationBase (mitk::MultiLabelSegmentation *segmentation, OperationType operationType)
 
 SegChangeOperationBase (SegChangeOperationBase &&)=default
 
SegChangeOperationBaseoperator= (const SegChangeOperationBase &)=default
 
SegChangeOperationBaseoperator= (SegChangeOperationBase &&)=default
 
- Protected Member Functions inherited from mitk::Operation
 Operation (OperationType operationType)
 
 Operation (const Operation &)=default
 
 Operation (Operation &&)=default
 
Operationoperator= (const Operation &)=default
 
Operationoperator= (Operation &&)=default
 

Detailed Description

An Operation for applying a modification to the properties of a label (E.g. name, color) of a MultiLabelSegmentation.

See also
SegOperationApplier This Operation can be used to realize undo-redo functionality for changing of label properties. If you want to add/remove labels from a segmentation (w/ or w/o the pixel data), use the SegGroupModifyOperation.

Definition at line 30 of file mitkSegLabelPropModifyOperation.h.

Member Typedef Documentation

◆ ModifyLabelsVectorType

Constructor & Destructor Documentation

◆ SegLabelPropModifyOperation() [1/2]

mitk::SegLabelPropModifyOperation::SegLabelPropModifyOperation ( MultiLabelSegmentation segmentation,
const ModifyLabelsVectorType modifiedLabel 
)

◆ ~SegLabelPropModifyOperation()

mitk::SegLabelPropModifyOperation::~SegLabelPropModifyOperation ( )
overridedefault

◆ SegLabelPropModifyOperation() [2/2]

mitk::SegLabelPropModifyOperation::SegLabelPropModifyOperation ( const SegLabelPropModifyOperation )
delete

Member Function Documentation

◆ CreatFromSegmentation()

static SegLabelPropModifyOperation* mitk::SegLabelPropModifyOperation::CreatFromSegmentation ( MultiLabelSegmentation segmentation,
const MultiLabelSegmentation::LabelValueVectorType relevantLabels 
)
static

◆ GetModifiedLabels()

const ModifyLabelsVectorType& mitk::SegLabelPropModifyOperation::GetModifiedLabels ( ) const

Get the modified labels map.

◆ mitkClassMacro()

mitk::SegLabelPropModifyOperation::mitkClassMacro ( SegLabelPropModifyOperation  ,
SegChangeOperationBase   
)

◆ operator=()

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

Member Data Documentation

◆ m_ModifiedLabels

ModifyLabelsVectorType mitk::SegLabelPropModifyOperation::m_ModifiedLabels
protected

Definition at line 54 of file mitkSegLabelPropModifyOperation.h.


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