Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
mitkVtkImageOverwrite.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 mitkVtkImageOverwrite_h
14 #define mitkVtkImageOverwrite_h
15 
17 #include <vtkImageReslice.h>
18 
51 class MITKSEGMENTATION_EXPORT mitkVtkImageOverwrite : public vtkImageReslice
52 {
53 public:
54  static mitkVtkImageOverwrite *New();
55  vtkTypeMacro(mitkVtkImageOverwrite, vtkImageReslice);
56 
60  void SetOverwriteMode(bool b);
61  bool IsOverwriteMode() { return m_Overwrite_Mode; }
66  void SetInputSlice(vtkImageData *slice);
67 
68 protected:
70  ~mitkVtkImageOverwrite() override;
71 
73 
75  void ThreadedRequestData(vtkInformation *vtkNotUsed(request),
76  vtkInformationVector **vtkNotUsed(inputVector),
77  vtkInformationVector *vtkNotUsed(outputVector),
78  vtkImageData ***inData,
79  vtkImageData **outData,
80  int outExt[6],
81  int id) override;
82 };
83 
84 #endif
mitkVtkImageOverwrite::IsOverwriteMode
bool IsOverwriteMode()
Definition: mitkVtkImageOverwrite.h:61
mitkVtkImageOverwrite
A vtk Filter based on vtkImageReslice with the additional feature to write a slice into the given inp...
Definition: mitkVtkImageOverwrite.h:51
MITKSEGMENTATION_EXPORT
#define MITKSEGMENTATION_EXPORT
Definition: MitkSegmentationExports.h:15
MitkSegmentationExports.h
mitkVtkImageOverwrite::m_Overwrite_Mode
bool m_Overwrite_Mode
Definition: mitkVtkImageOverwrite.h:72