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

Base class for any operation based on a MultiLabelSegmentation instance. More...

#include <mitkSegChangeOperationBase.h>

Inheritance diagram for mitk::SegChangeOperationBase:
Collaboration diagram for mitk::SegChangeOperationBase:

Public Member Functions

 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 Member Functions

 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
 

Additional Inherited Members

- Protected Attributes inherited from mitk::Operation
OperationType m_OperationType
 The type identifier for this operation. More...
 

Detailed Description

Base class for any operation based on a MultiLabelSegmentation instance.

See also
SegChangeOperationApplier

This Operation serves as the common base for all undo/redo operations that modify a MultiLabelSegmentation. It holds a weak reference to the target segmentation and provides validity checking.

This Operation can be used to realize undo-redo functionality for e.g. segmentation purposes.

Definition at line 36 of file mitkSegChangeOperationBase.h.

Constructor & Destructor Documentation

◆ ~SegChangeOperationBase()

mitk::SegChangeOperationBase::~SegChangeOperationBase ( )
overridedefault

◆ SegChangeOperationBase() [1/2]

mitk::SegChangeOperationBase::SegChangeOperationBase ( mitk::MultiLabelSegmentation *  segmentation,
OperationType  operationType 
)
protected

◆ SegChangeOperationBase() [2/2]

mitk::SegChangeOperationBase::SegChangeOperationBase ( SegChangeOperationBase &&  )
protecteddefault

Member Function Documentation

◆ GetSegmentation() [1/2]

mitk::MultiLabelSegmentation::Pointer mitk::SegChangeOperationBase::GetSegmentation ( )

Get the target segmentation (mutable).

◆ GetSegmentation() [2/2]

const mitk::MultiLabelSegmentation::ConstPointer mitk::SegChangeOperationBase::GetSegmentation ( ) const

Get the target segmentation (const).

◆ IsValid()

bool mitk::SegChangeOperationBase::IsValid ( ) const
override

Check whether the operation is still valid (i.e., the segmentation still exists).

◆ mitkClassMacro()

mitk::SegChangeOperationBase::mitkClassMacro ( SegChangeOperationBase  ,
Operation   
)

◆ operator=() [1/2]

SegChangeOperationBase& mitk::SegChangeOperationBase::operator= ( const SegChangeOperationBase &  )
protecteddefault

◆ operator=() [2/2]

SegChangeOperationBase& mitk::SegChangeOperationBase::operator= ( SegChangeOperationBase &&  )
protecteddefault

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