Medical Imaging Interaction Toolkit
2016.11.0
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... | |
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 | |
virtual | ~DiffSliceOperation () |
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 |
Protected Attributes inherited from mitk::Operation | |
OperationType | m_OperationType |
Additional Inherited Members | |
Public Types inherited from mitk::Operation | |
typedef Operation | Self |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
Static Public Member Functions inherited from mitk::Operation | |
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 42 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 23 of file mitkDiffSliceOperation.cpp.
References 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 33 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(), mitk::New(), and OnImageDeleted().
|
protectedvirtual |
Definition at line 74 of file mitkDiffSliceOperation.cpp.
|
inline |
Get th image volume.
Definition at line 70 of file mitkDiffSliceOperation.h.
Referenced by mitk::DiffSliceOperationApplier::ExecuteOperation().
mitk::Image::Pointer mitk::DiffSliceOperation::GetSlice | ( | ) |
Get the slice that is applied in the operation.
Definition at line 87 of file mitkDiffSliceOperation.cpp.
Referenced by mitk::DiffSliceOperationApplier::ExecuteOperation().
|
inline |
Get the axis where the slice has to be applied in the volume.
Definition at line 83 of file mitkDiffSliceOperation.h.
|
inline |
Set timeStep.
Definition at line 79 of file mitkDiffSliceOperation.h.
Referenced by mitk::DiffSliceOperationApplier::ExecuteOperation().
|
inline |
Get the axis where the slice has to be applied in the volume.
Definition at line 87 of file mitkDiffSliceOperation.h.
Referenced by mitk::DiffSliceOperationApplier::ExecuteOperation().
bool mitk::DiffSliceOperation::IsValid | ( | ) |
Check if it is a valid operation.
Definition at line 93 of file mitkDiffSliceOperation.cpp.
Referenced by mitk::DiffSliceOperationApplier::ExecuteOperation().
mitk::DiffSliceOperation::mitkClassMacro | ( | DiffSliceOperation | , |
OperationActor | |||
) |
|
protected |
Callback for image observer.
Definition at line 98 of file mitkDiffSliceOperation.cpp.
Referenced by DiffSliceOperation().
|
inline |
Set the axis where the slice has to be applied in the volume.
Definition at line 85 of file mitkDiffSliceOperation.h.
|
inline |
Set the image volume.
Definition at line 68 of file mitkDiffSliceOperation.h.
|
inline |
Set thee slice to be applied.
Definition at line 72 of file mitkDiffSliceOperation.h.
|
inline |
Set the axis where the slice has to be applied in the volume.
Definition at line 81 of file mitkDiffSliceOperation.h.
|
inline |
Get timeStep.
Definition at line 77 of file mitkDiffSliceOperation.h.
|
protected |
Definition at line 108 of file mitkDiffSliceOperation.h.
Referenced by DiffSliceOperation().
|
protected |
Definition at line 110 of file mitkDiffSliceOperation.h.
Referenced by DiffSliceOperation().
|
protected |
Definition at line 96 of file mitkDiffSliceOperation.h.
Referenced by DiffSliceOperation().
|
protected |
Definition at line 106 of file mitkDiffSliceOperation.h.
Referenced by DiffSliceOperation().
|
protected |
Definition at line 98 of file mitkDiffSliceOperation.h.
|
protected |
Definition at line 100 of file mitkDiffSliceOperation.h.
Referenced by DiffSliceOperation().
|
protected |
Definition at line 102 of file mitkDiffSliceOperation.h.
Referenced by DiffSliceOperation().
|
protected |
Definition at line 104 of file mitkDiffSliceOperation.h.
Referenced by DiffSliceOperation().
|
protected |
Definition at line 94 of file mitkDiffSliceOperation.h.
Referenced by DiffSliceOperation().