Medical Imaging Interaction Toolkit  2016.11.0
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

virtual ~DiffSliceOperation ()
 
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 42 of file mitkDiffSliceOperation.h.

Constructor & Destructor Documentation

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 
)
mitk::DiffSliceOperation::~DiffSliceOperation ( )
protectedvirtual

Definition at line 74 of file mitkDiffSliceOperation.cpp.

Member Function Documentation

mitk::Image* mitk::DiffSliceOperation::GetImage ( void  )
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().

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

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

Definition at line 83 of file mitkDiffSliceOperation.h.

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

Set timeStep.

Definition at line 79 of file mitkDiffSliceOperation.h.

Referenced by mitk::DiffSliceOperationApplier::ExecuteOperation().

BaseGeometry* mitk::DiffSliceOperation::GetWorldGeometry ( )
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   
)
void mitk::DiffSliceOperation::OnImageDeleted ( )
protected

Callback for image observer.

Definition at line 98 of file mitkDiffSliceOperation.cpp.

Referenced by DiffSliceOperation().

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

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

Definition at line 85 of file mitkDiffSliceOperation.h.

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

Set the image volume.

Definition at line 68 of file mitkDiffSliceOperation.h.

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

Set thee slice to be applied.

Definition at line 72 of file mitkDiffSliceOperation.h.

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

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

Definition at line 81 of file mitkDiffSliceOperation.h.

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

Get timeStep.

Definition at line 77 of file mitkDiffSliceOperation.h.

Member Data Documentation

unsigned long mitk::DiffSliceOperation::m_DeleteObserverTag
protected

Definition at line 108 of file mitkDiffSliceOperation.h.

Referenced by DiffSliceOperation().

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

Definition at line 110 of file mitkDiffSliceOperation.h.

Referenced by DiffSliceOperation().

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

Definition at line 96 of file mitkDiffSliceOperation.h.

Referenced by DiffSliceOperation().

bool mitk::DiffSliceOperation::m_ImageIsValid
protected

Definition at line 106 of file mitkDiffSliceOperation.h.

Referenced by DiffSliceOperation().

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

Definition at line 98 of file mitkDiffSliceOperation.h.

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

Definition at line 100 of file mitkDiffSliceOperation.h.

Referenced by DiffSliceOperation().

unsigned int mitk::DiffSliceOperation::m_TimeStep
protected

Definition at line 102 of file mitkDiffSliceOperation.h.

Referenced by DiffSliceOperation().

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

Definition at line 104 of file mitkDiffSliceOperation.h.

Referenced by DiffSliceOperation().

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

Definition at line 94 of file mitkDiffSliceOperation.h.

Referenced by DiffSliceOperation().


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