Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
mitk::DiffSliceOperation Class Reference

An Operation for applying an edited slice to the volume. More...

#include <mitkDiffSliceOperation.h>

Inheritance diagram for mitk::DiffSliceOperation:
Collaboration diagram for mitk::DiffSliceOperation:

Public Member Functions

 mitkClassMacro (DiffSliceOperation, OperationActor)
 
 DiffSliceOperation ()
 Creates an empty instance. Note that it is not valid yet. The properties of the object have to be set. More...
 
 DiffSliceOperation (mitk::Image *imageVolume, const mitk::Image *slice, const SlicedGeometry3D *sliceGeometry, const TimeStepType timestep, const BaseGeometry *currentWorldGeometry)
 
bool IsValid ()
 Check if it is a valid operation. More...
 
mitk::ImageGetImage ()
 Get th image volume. More...
 
const mitk::ImageGetImage () const
 
Image::Pointer GetSlice ()
 Get the slice that is applied in the operation. More...
 
TimeStepType GetTimeStep () const
 Set timeStep. More...
 
const SlicedGeometry3DGetSliceGeometry () const
 Get the axis where the slice has to be applied in the volume. More...
 
const BaseGeometryGetWorldGeometry () const
 Get the axis where the slice has to be applied in the volume. More...
 
- Public Member Functions inherited from mitk::Operation
virtual std::vector< std::string > GetClassHierarchy () const
 
 itkTypeMacroNoParent (Operation) Operation(OperationType operationType)
 
virtual ~Operation ()
 
OperationType GetOperationType ()
 

Protected Member Functions

 ~DiffSliceOperation () override
 
void OnImageDeleted ()
 Callback for image observer. More...
 

Protected Attributes

CompressedImageContainer m_CompressedImageContainer
 
mitk::Imagem_Image
 
vtkSmartPointer< vtkImageData > m_Slice
 
SlicedGeometry3D::ConstPointer m_SliceGeometry
 
TimeStepType m_TimeStep
 
BaseGeometry::ConstPointer m_WorldGeometry
 
bool m_ImageIsValid
 
unsigned long m_DeleteObserverTag
 
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 ()
 

Detailed Description

An Operation for applying an edited slice to the volume.

See also
DiffSliceOperationApplier

The information for the operation is specified by properties:

imageVolume the volume where the slice was extracted from. slice the slice to be applied. timestep the timestep in an 4D image. currentWorldGeometry specifies the axis where the slice has to be applied in the volume.

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

Definition at line 38 of file mitkDiffSliceOperation.h.

Constructor & Destructor Documentation

◆ DiffSliceOperation() [1/2]

mitk::DiffSliceOperation::DiffSliceOperation ( )

Creates an empty instance. Note that it is not valid yet. The properties of the object have to be set.

◆ DiffSliceOperation() [2/2]

mitk::DiffSliceOperation::DiffSliceOperation ( mitk::Image imageVolume,
const mitk::Image slice,
const SlicedGeometry3D sliceGeometry,
const TimeStepType  timestep,
const BaseGeometry currentWorldGeometry 
)

◆ ~DiffSliceOperation()

mitk::DiffSliceOperation::~DiffSliceOperation ( )
overrideprotected

Member Function Documentation

◆ GetImage() [1/2]

mitk::Image* mitk::DiffSliceOperation::GetImage ( )
inline

Get th image volume.

Definition at line 64 of file mitkDiffSliceOperation.h.

◆ GetImage() [2/2]

const mitk::Image* mitk::DiffSliceOperation::GetImage ( ) const
inline

Definition at line 65 of file mitkDiffSliceOperation.h.

◆ GetSlice()

Image::Pointer mitk::DiffSliceOperation::GetSlice ( )

Get the slice that is applied in the operation.

◆ GetSliceGeometry()

const SlicedGeometry3D* mitk::DiffSliceOperation::GetSliceGeometry ( ) const
inline

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

Definition at line 73 of file mitkDiffSliceOperation.h.

◆ GetTimeStep()

TimeStepType mitk::DiffSliceOperation::GetTimeStep ( ) const
inline

Set timeStep.

Definition at line 71 of file mitkDiffSliceOperation.h.

◆ GetWorldGeometry()

const BaseGeometry* mitk::DiffSliceOperation::GetWorldGeometry ( ) const
inline

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

Definition at line 75 of file mitkDiffSliceOperation.h.

◆ IsValid()

bool mitk::DiffSliceOperation::IsValid ( )

Check if it is a valid operation.

◆ mitkClassMacro()

mitk::DiffSliceOperation::mitkClassMacro ( DiffSliceOperation  ,
OperationActor   
)

◆ OnImageDeleted()

void mitk::DiffSliceOperation::OnImageDeleted ( )
protected

Callback for image observer.

Member Data Documentation

◆ m_CompressedImageContainer

CompressedImageContainer mitk::DiffSliceOperation::m_CompressedImageContainer
protected

Definition at line 82 of file mitkDiffSliceOperation.h.

◆ m_DeleteObserverTag

unsigned long mitk::DiffSliceOperation::m_DeleteObserverTag
protected

Definition at line 96 of file mitkDiffSliceOperation.h.

◆ m_GuardReferenceGeometry

mitk::BaseGeometry::ConstPointer mitk::DiffSliceOperation::m_GuardReferenceGeometry
protected

Definition at line 98 of file mitkDiffSliceOperation.h.

◆ m_Image

mitk::Image* mitk::DiffSliceOperation::m_Image
protected

Definition at line 84 of file mitkDiffSliceOperation.h.

◆ m_ImageIsValid

bool mitk::DiffSliceOperation::m_ImageIsValid
protected

Definition at line 94 of file mitkDiffSliceOperation.h.

◆ m_Slice

vtkSmartPointer<vtkImageData> mitk::DiffSliceOperation::m_Slice
protected

Definition at line 86 of file mitkDiffSliceOperation.h.

◆ m_SliceGeometry

SlicedGeometry3D::ConstPointer mitk::DiffSliceOperation::m_SliceGeometry
protected

Definition at line 88 of file mitkDiffSliceOperation.h.

◆ m_TimeStep

TimeStepType mitk::DiffSliceOperation::m_TimeStep
protected

Definition at line 90 of file mitkDiffSliceOperation.h.

◆ m_WorldGeometry

BaseGeometry::ConstPointer mitk::DiffSliceOperation::m_WorldGeometry
protected

Definition at line 92 of file mitkDiffSliceOperation.h.


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