Medical Imaging Interaction Toolkit  2023.12.99-4c75e429
Medical Imaging Interaction Toolkit
mitkDiffSliceOperation.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkDiffSliceOperation_h
14 #define mitkDiffSliceOperation_h
15 
18 #include <mitkOperation.h>
19 
20 #include <vtkSmartPointer.h>
21 
22 namespace mitk
23 {
24  class Image;
25 
39  {
40  public:
42 
43  // itkFactorylessNewMacro(Self)
44  // itkCloneMacro(Self)
45 
46  // mitkNewMacro4Param(DiffSliceOperation,mitk::Image,mitk::Image,unsigned int, mitk::PlaneGeometry);
47 
52 
54  DiffSliceOperation(mitk::Image *imageVolume,
55  const mitk::Image *slice,
56  const SlicedGeometry3D *sliceGeometry,
57  const TimeStepType timestep,
58  const BaseGeometry *currentWorldGeometry);
59 
61  bool IsValid();
62 
64  mitk::Image *GetImage() { return this->m_Image; }
65  const mitk::Image* GetImage() const { return this->m_Image; }
66 
68  Image::Pointer GetSlice();
69 
71  TimeStepType GetTimeStep() const { return this->m_TimeStep; }
73  const SlicedGeometry3D *GetSliceGeometry() const { return this->m_SliceGeometry; }
75  const BaseGeometry *GetWorldGeometry() const { return this->m_WorldGeometry; }
76  protected:
77  ~DiffSliceOperation() override;
78 
80  void OnImageDeleted();
81 
83 
85 
87 
89 
91 
93 
95 
96  unsigned long m_DeleteObserverTag;
97 
99  };
100 }
101 #endif
mitk::OperationActor
abstract class, that can be used by Undo to undo an operation.
Definition: mitkOperationActor.h:41
mitk::DiffSliceOperation::m_Image
mitk::Image * m_Image
Definition: mitkDiffSliceOperation.h:84
mitk::DiffSliceOperation::m_Slice
vtkSmartPointer< vtkImageData > m_Slice
Definition: mitkDiffSliceOperation.h:86
mitk::DiffSliceOperation::m_SliceGeometry
SlicedGeometry3D::ConstPointer m_SliceGeometry
Definition: mitkDiffSliceOperation.h:88
mitk::DiffSliceOperation::GetImage
const mitk::Image * GetImage() const
Definition: mitkDiffSliceOperation.h:65
mitk::Operation
Base class of all Operation-classes.
Definition: mitkOperation.h:29
mitk::DiffSliceOperation::m_GuardReferenceGeometry
mitk::BaseGeometry::ConstPointer m_GuardReferenceGeometry
Definition: mitkDiffSliceOperation.h:98
vtkSmartPointer< vtkImageData >
mitk::Image
Image class for storing images.
Definition: mitkImage.h:69
itk::SmartPointer< Self >
mitkCompressedImageContainer.h
mitk::DiffSliceOperation::m_ImageIsValid
bool m_ImageIsValid
Definition: mitkDiffSliceOperation.h:94
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::DiffSliceOperation::m_TimeStep
TimeStepType m_TimeStep
Definition: mitkDiffSliceOperation.h:90
mitk::DiffSliceOperation::m_DeleteObserverTag
unsigned long m_DeleteObserverTag
Definition: mitkDiffSliceOperation.h:96
mitk::BaseGeometry
BaseGeometry Describes the geometry of a data object.
Definition: mitkBaseGeometry.h:94
mitk::DiffSliceOperation::m_WorldGeometry
BaseGeometry::ConstPointer m_WorldGeometry
Definition: mitkDiffSliceOperation.h:92
MITKSEGMENTATION_EXPORT
#define MITKSEGMENTATION_EXPORT
Definition: MitkSegmentationExports.h:15
mitk::CompressedImageContainer
Definition: mitkCompressedImageContainer.h:24
mitk::DiffSliceOperation
An Operation for applying an edited slice to the volume.
Definition: mitkDiffSliceOperation.h:38
mitk::SlicedGeometry3D
Describes the geometry of a data object consisting of slices.
Definition: mitkSlicedGeometry3D.h:62
mitk::TimeStepType
std::size_t TimeStepType
Definition: mitkTimeGeometry.h:27
mitk::DiffSliceOperation::GetWorldGeometry
const BaseGeometry * GetWorldGeometry() const
Get the axis where the slice has to be applied in the volume.
Definition: mitkDiffSliceOperation.h:75
mitkOperation.h
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
itk::Image
class ITK_EXPORT Image
Definition: mitkGeometryClipImageFilter.h:25
MitkSegmentationExports.h
mitk::DiffSliceOperation::GetTimeStep
TimeStepType GetTimeStep() const
Set timeStep.
Definition: mitkDiffSliceOperation.h:71
mitk::DiffSliceOperation::GetImage
mitk::Image * GetImage()
Get th image volume.
Definition: mitkDiffSliceOperation.h:64
mitk::DiffSliceOperation::m_CompressedImageContainer
CompressedImageContainer m_CompressedImageContainer
Definition: mitkDiffSliceOperation.h:82
mitk::DiffSliceOperation::GetSliceGeometry
const SlicedGeometry3D * GetSliceGeometry() const
Get the axis where the slice has to be applied in the volume.
Definition: mitkDiffSliceOperation.h:73