Medical Imaging Interaction Toolkit  2021.10.00
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_Included
14 #define mitkVtkImageOverwrite_h_Included
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_h_Included
#define MITKSEGMENTATION_EXPORT
A vtk Filter based on vtkImageReslice with the aditional feature to write a slice into the given inpu...