Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
An Operation for applying an edited slice to the volume. More...
#include <mitkDiffSliceOperation.h>
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::Image * | GetImage () |
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... | |
SlicedGeometry3D * | GetSliceGeometry () |
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... | |
BaseGeometry * | GetWorldGeometry () |
Get the axis where the slice has to be applied in the volume. More... | |
![]() | |
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::Image * | m_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 |
![]() | |
OperationType | m_OperationType |
Additional Inherited Members | |
![]() | |
typedef Operation | Self |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
![]() | |
static const char * | GetStaticNameOfClass () |
An Operation for applying an edited slice to the volume.
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.
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.
mitk::DiffSliceOperation::DiffSliceOperation | ( | mitk::Image * | imageVolume, |
mitk::Image * | slice, | ||
SlicedGeometry3D * | sliceGeometry, | ||
unsigned int | timestep, | ||
BaseGeometry * | currentWorldGeometry | ||
) |
Definition at line 30 of file mitkDiffSliceOperation.cpp.
References mitk::SlicedGeometry3D::Clone(), mitk::BaseGeometry::Clone(), m_DeleteObserverTag, m_GuardReferenceGeometry, m_Image, m_ImageIsValid, m_SliceGeometry, m_TimeStep, m_WorldGeometry, m_zlibSliceContainer, mitk::CompressedImageContainer::New(), and OnImageDeleted().
|
overrideprotected |
Definition at line 72 of file mitkDiffSliceOperation.cpp.
References m_DeleteObserverTag, m_Image, m_ImageIsValid, m_WorldGeometry, and m_zlibSliceContainer.
|
inline |
Get th image volume.
Definition at line 66 of file mitkDiffSliceOperation.h.
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.
|
inline |
Get the axis where the slice has to be applied in the volume.
Definition at line 79 of file mitkDiffSliceOperation.h.
|
inline |
Set timeStep.
Definition at line 75 of file mitkDiffSliceOperation.h.
|
inline |
Get the axis where the slice has to be applied in the volume.
Definition at line 83 of file mitkDiffSliceOperation.h.
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.
mitk::DiffSliceOperation::mitkClassMacro | ( | DiffSliceOperation | , |
OperationActor | |||
) |
|
protected |
Callback for image observer.
Definition at line 96 of file mitkDiffSliceOperation.cpp.
References m_ImageIsValid.
Referenced by DiffSliceOperation().
|
inline |
Set the axis where the slice has to be applied in the volume.
Definition at line 81 of file mitkDiffSliceOperation.h.
|
inline |
|
inline |
Set thee slice to be applied.
Definition at line 68 of file mitkDiffSliceOperation.h.
|
inline |
Set the axis where the slice has to be applied in the volume.
Definition at line 77 of file mitkDiffSliceOperation.h.
|
inline |
Get timeStep.
Definition at line 73 of file mitkDiffSliceOperation.h.
|
protected |
Definition at line 104 of file mitkDiffSliceOperation.h.
Referenced by DiffSliceOperation(), and ~DiffSliceOperation().
|
protected |
Definition at line 106 of file mitkDiffSliceOperation.h.
Referenced by DiffSliceOperation().
|
protected |
Definition at line 92 of file mitkDiffSliceOperation.h.
Referenced by DiffSliceOperation(), and ~DiffSliceOperation().
|
protected |
Definition at line 102 of file mitkDiffSliceOperation.h.
Referenced by DiffSliceOperation(), IsValid(), OnImageDeleted(), and ~DiffSliceOperation().
|
protected |
Definition at line 94 of file mitkDiffSliceOperation.h.
|
protected |
Definition at line 96 of file mitkDiffSliceOperation.h.
Referenced by DiffSliceOperation().
|
protected |
Definition at line 98 of file mitkDiffSliceOperation.h.
Referenced by DiffSliceOperation().
|
protected |
Definition at line 100 of file mitkDiffSliceOperation.h.
Referenced by DiffSliceOperation(), IsValid(), and ~DiffSliceOperation().
|
protected |
Definition at line 90 of file mitkDiffSliceOperation.h.
Referenced by DiffSliceOperation(), GetSlice(), IsValid(), and ~DiffSliceOperation().