|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
An Operation for applying an edited 2D slice to a group of a MultiLabelSegmentation. More...
#include <mitkSegSliceOperation.h>


Public Member Functions | |
| mitkClassMacro (SegSliceOperation, SegChangeOperationBase) | |
| SegSliceOperation (MultiLabelSegmentation *segmentation, MultiLabelSegmentation::GroupIndexType groupID, const Image *slice, const TimeStepType timestep, const PlaneGeometry *planeGeometry) | |
| Construct a slice operation. More... | |
| ~SegSliceOperation () override=default | |
| bool | IsValid () const override |
| Check if it is a valid operation. More... | |
| Image::Pointer | GetSlice () const |
| Get the slice that is applied in the operation. More... | |
| TimeStepType | GetTimeStep () const |
| Get the time step the operation should be applied on. More... | |
| const PlaneGeometry * | GetSlicePlaneGeometry () const |
| Get the plane where the slice has to be applied in the volume. More... | |
| MultiLabelSegmentation::GroupIndexType | GetGroupID () const |
| Get the group index of the group image that should be modified. More... | |
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 | |
| MultiLabelSegmentation::GroupIndexType | m_GroupID |
| TimeStepType | m_TimeStep |
| CompressedImageContainer | m_CompressedImageContainer |
| PlaneGeometry::ConstPointer | m_PlaneGeometry |
| mitk::BaseGeometry::ConstPointer | m_GuardReferenceGeometry |
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 applying an edited 2D slice to a group of a MultiLabelSegmentation.
This Operation stores a 2D slice together with its plane geometry, time step, and target group index, enabling undo-redo for slice-based segmentation edits.
Definition at line 31 of file mitkSegSliceOperation.h.
| mitk::SegSliceOperation::SegSliceOperation | ( | MultiLabelSegmentation * | segmentation, |
| MultiLabelSegmentation::GroupIndexType | groupID, | ||
| const Image * | slice, | ||
| const TimeStepType | timestep, | ||
| const PlaneGeometry * | planeGeometry | ||
| ) |
Construct a slice operation.
| segmentation | The target segmentation. |
| groupID | The group index of the group image to modify. |
| slice | The 2D slice image to apply. |
| timestep | The time step at which the slice should be applied. |
| planeGeometry | The plane geometry defining the slice position and orientation in the volume. |
|
overridedefault |
| MultiLabelSegmentation::GroupIndexType mitk::SegSliceOperation::GetGroupID | ( | ) | const |
Get the group index of the group image that should be modified.
| Image::Pointer mitk::SegSliceOperation::GetSlice | ( | ) | const |
Get the slice that is applied in the operation.
| const PlaneGeometry* mitk::SegSliceOperation::GetSlicePlaneGeometry | ( | ) | const |
Get the plane where the slice has to be applied in the volume.
| TimeStepType mitk::SegSliceOperation::GetTimeStep | ( | ) | const |
Get the time step the operation should be applied on.
|
override |
Check if it is a valid operation.
| mitk::SegSliceOperation::mitkClassMacro | ( | SegSliceOperation | , |
| SegChangeOperationBase | |||
| ) |
|
protected |
Definition at line 65 of file mitkSegSliceOperation.h.
|
protected |
Definition at line 63 of file mitkSegSliceOperation.h.
|
protected |
Ensures that the reference geometry of the plane geometry is not deleted to soon see bug T12338.
Definition at line 69 of file mitkSegSliceOperation.h.
|
protected |
Definition at line 66 of file mitkSegSliceOperation.h.
|
protected |
Definition at line 64 of file mitkSegSliceOperation.h.