Medical Imaging Interaction Toolkit  2021.10.00
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_Included
14 #define mitkDiffSliceOperation_h_Included
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 
86  vtkSmartPointer<vtkImageData> m_Slice;
87 
89 
91 
93 
95 
96  unsigned long m_DeleteObserverTag;
97 
99  };
100 }
101 #endif
TimeStepType GetTimeStep() const
Set timeStep.
Base class of all Operation-classes.
Definition: mitkOperation.h:29
#define MITKSEGMENTATION_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
vtkSmartPointer< vtkImageData > m_Slice
An Operation for applying an edited slice to the volume.
abstract class, that can be used by Undo to undo an operation.
const mitk::Image * GetImage() const
class ITK_EXPORT Image
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::BaseGeometry::ConstPointer m_GuardReferenceGeometry
Image class for storing images.
Definition: mitkImage.h:69
std::vcl_size_t TimeStepType
SlicedGeometry3D::ConstPointer m_SliceGeometry
Describes the geometry of a data object consisting of slices.
const BaseGeometry * GetWorldGeometry() const
Get the axis where the slice has to be applied in the volume.
BaseGeometry::ConstPointer m_WorldGeometry
const SlicedGeometry3D * GetSliceGeometry() const
Get the axis where the slice has to be applied in the volume.
CompressedImageContainer m_CompressedImageContainer
BaseGeometry Describes the geometry of a data object.
mitk::Image * GetImage()
Get th image volume.