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

An Operation for applying an edited slice to the a group of a MultiLabelSegmentation. More...

#include <mitkSegSliceOperation.h>

Inheritance diagram for mitk::SegSliceOperation:
Collaboration diagram for mitk::SegSliceOperation:

Public Member Functions

 mitkClassMacro (SegSliceOperation, SegChangeOperationBase)
 
 SegSliceOperation (MultiLabelSegmentation *segmentation, MultiLabelSegmentation::GroupIndexType groupID, const Image *slice, const TimeStepType timestep, const PlaneGeometry *planeGeometry)
 
 ~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 PlaneGeometryGetSlicePlaneGeometry () 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 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 ()
 

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
 

Additional Inherited Members

- Public Types inherited from mitk::Operation
typedef Operation Self
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 
- Static Public Member Functions inherited from mitk::Operation
static const char * GetStaticNameOfClass ()
 
- 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 an edited slice to the a group of a MultiLabelSegmentation.

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

Definition at line 28 of file mitkSegSliceOperation.h.

Constructor & Destructor Documentation

◆ SegSliceOperation()

mitk::SegSliceOperation::SegSliceOperation ( MultiLabelSegmentation segmentation,
MultiLabelSegmentation::GroupIndexType  groupID,
const Image slice,
const TimeStepType  timestep,
const PlaneGeometry planeGeometry 
)

◆ ~SegSliceOperation()

mitk::SegSliceOperation::~SegSliceOperation ( )
overridedefault

Member Function Documentation

◆ GetGroupID()

MultiLabelSegmentation::GroupIndexType mitk::SegSliceOperation::GetGroupID ( ) const

Get the group index of the group image that should be modified.

◆ GetSlice()

Image::Pointer mitk::SegSliceOperation::GetSlice ( ) const

Get the slice that is applied in the operation.

◆ GetSlicePlaneGeometry()

const PlaneGeometry* mitk::SegSliceOperation::GetSlicePlaneGeometry ( ) const

Get the plane where the slice has to be applied in the volume.

◆ GetTimeStep()

TimeStepType mitk::SegSliceOperation::GetTimeStep ( ) const

Get the time step the operation should be applied on.

◆ IsValid()

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

Check if it is a valid operation.

◆ mitkClassMacro()

mitk::SegSliceOperation::mitkClassMacro ( SegSliceOperation  ,
SegChangeOperationBase   
)

Member Data Documentation

◆ m_CompressedImageContainer

CompressedImageContainer mitk::SegSliceOperation::m_CompressedImageContainer
protected

Definition at line 56 of file mitkSegSliceOperation.h.

◆ m_GroupID

MultiLabelSegmentation::GroupIndexType mitk::SegSliceOperation::m_GroupID
protected

Definition at line 54 of file mitkSegSliceOperation.h.

◆ m_GuardReferenceGeometry

mitk::BaseGeometry::ConstPointer mitk::SegSliceOperation::m_GuardReferenceGeometry
protected

Ensures that the reference geometry of the plane geometry is not deleted to soon see bug T12338.

Definition at line 60 of file mitkSegSliceOperation.h.

◆ m_PlaneGeometry

PlaneGeometry::ConstPointer mitk::SegSliceOperation::m_PlaneGeometry
protected

Definition at line 57 of file mitkSegSliceOperation.h.

◆ m_TimeStep

TimeStepType mitk::SegSliceOperation::m_TimeStep
protected

Definition at line 55 of file mitkSegSliceOperation.h.


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