Medical Imaging Interaction Toolkit  2018.4.99-389bf124
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, mitk::Image *slice, SlicedGeometry3D *sliceGeometry, unsigned int timestep, BaseGeometry *currentWorldGeometry)
 
bool IsValid ()
 Check if it is a valid operation. More...
 
void SetImage (mitk::Image *image)
 Set the image volume. More...
 
mitk::ImageGetImage ()
 Get th image volume. More...
 
void SetImage (vtkImageData *slice)
 Set thee slice to be applied. More...
 
Image::Pointer GetSlice ()
 Get the slice that is applied in the operation. More...
 
void SetTimeStep (unsigned int timestep)
 Get timeStep. More...
 
unsigned int GetTimeStep ()
 Set timeStep. More...
 
void SetSliceGeometry (SlicedGeometry3D *sliceGeometry)
 Set the axis where the slice has to be applied in the volume. More...
 
SlicedGeometry3DGetSliceGeometry ()
 Get the axis where the slice has to be applied in the volume. More...
 
void SetCurrentWorldGeometry (BaseGeometry *worldGeometry)
 Set the axis where the slice has to be applied in the volume. More...
 
BaseGeometryGetWorldGeometry ()
 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::Pointer m_zlibSliceContainer
 
mitk::Imagem_Image
 
vtkSmartPointer< vtkImageData > m_Slice
 
SlicedGeometry3D::Pointer m_SliceGeometry
 
unsigned int m_TimeStep
 
BaseGeometry::Pointer 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.

Definition at line 19 of file mitkDiffSliceOperation.cpp.

References m_DeleteObserverTag, m_Image, m_ImageIsValid, m_SliceGeometry, m_TimeStep, m_WorldGeometry, and m_zlibSliceContainer.

◆ DiffSliceOperation() [2/2]

mitk::DiffSliceOperation::DiffSliceOperation ( mitk::Image imageVolume,
mitk::Image slice,
SlicedGeometry3D sliceGeometry,
unsigned int  timestep,
BaseGeometry currentWorldGeometry 
)

◆ ~DiffSliceOperation()

mitk::DiffSliceOperation::~DiffSliceOperation ( )
overrideprotected

Member Function Documentation

◆ GetImage()

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

Get th image volume.

Definition at line 66 of file mitkDiffSliceOperation.h.

◆ GetSlice()

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

Get the slice that is applied in the operation.

Definition at line 85 of file mitkDiffSliceOperation.cpp.

References image, and m_zlibSliceContainer.

◆ GetSliceGeometry()

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

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

Definition at line 79 of file mitkDiffSliceOperation.h.

◆ GetTimeStep()

unsigned int mitk::DiffSliceOperation::GetTimeStep ( )
inline

Set timeStep.

Definition at line 75 of file mitkDiffSliceOperation.h.

◆ GetWorldGeometry()

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

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

Definition at line 83 of file mitkDiffSliceOperation.h.

◆ IsValid()

bool mitk::DiffSliceOperation::IsValid ( )

Check if it is a valid operation.

Definition at line 91 of file mitkDiffSliceOperation.cpp.

References m_ImageIsValid, m_WorldGeometry, and m_zlibSliceContainer.

◆ mitkClassMacro()

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

◆ OnImageDeleted()

void mitk::DiffSliceOperation::OnImageDeleted ( )
protected

Callback for image observer.

Definition at line 96 of file mitkDiffSliceOperation.cpp.

References m_ImageIsValid.

Referenced by DiffSliceOperation().

◆ SetCurrentWorldGeometry()

void mitk::DiffSliceOperation::SetCurrentWorldGeometry ( BaseGeometry worldGeometry)
inline

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

Definition at line 81 of file mitkDiffSliceOperation.h.

◆ SetImage() [1/2]

void mitk::DiffSliceOperation::SetImage ( mitk::Image image)
inline

Set the image volume.

Definition at line 64 of file mitkDiffSliceOperation.h.

References image.

◆ SetImage() [2/2]

void mitk::DiffSliceOperation::SetImage ( vtkImageData *  slice)
inline

Set thee slice to be applied.

Definition at line 68 of file mitkDiffSliceOperation.h.

◆ SetSliceGeometry()

void mitk::DiffSliceOperation::SetSliceGeometry ( SlicedGeometry3D sliceGeometry)
inline

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

Definition at line 77 of file mitkDiffSliceOperation.h.

◆ SetTimeStep()

void mitk::DiffSliceOperation::SetTimeStep ( unsigned int  timestep)
inline

Get timeStep.

Definition at line 73 of file mitkDiffSliceOperation.h.

Member Data Documentation

◆ m_DeleteObserverTag

unsigned long mitk::DiffSliceOperation::m_DeleteObserverTag
protected

Definition at line 104 of file mitkDiffSliceOperation.h.

Referenced by DiffSliceOperation(), and ~DiffSliceOperation().

◆ m_GuardReferenceGeometry

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

Definition at line 106 of file mitkDiffSliceOperation.h.

Referenced by DiffSliceOperation().

◆ m_Image

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

Definition at line 92 of file mitkDiffSliceOperation.h.

Referenced by DiffSliceOperation(), and ~DiffSliceOperation().

◆ m_ImageIsValid

bool mitk::DiffSliceOperation::m_ImageIsValid
protected

◆ m_Slice

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

Definition at line 94 of file mitkDiffSliceOperation.h.

◆ m_SliceGeometry

SlicedGeometry3D::Pointer mitk::DiffSliceOperation::m_SliceGeometry
protected

Definition at line 96 of file mitkDiffSliceOperation.h.

Referenced by DiffSliceOperation().

◆ m_TimeStep

unsigned int mitk::DiffSliceOperation::m_TimeStep
protected

Definition at line 98 of file mitkDiffSliceOperation.h.

Referenced by DiffSliceOperation().

◆ m_WorldGeometry

BaseGeometry::Pointer mitk::DiffSliceOperation::m_WorldGeometry
protected

Definition at line 100 of file mitkDiffSliceOperation.h.

Referenced by DiffSliceOperation(), IsValid(), and ~DiffSliceOperation().

◆ m_zlibSliceContainer

CompressedImageContainer::Pointer mitk::DiffSliceOperation::m_zlibSliceContainer
protected

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