Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef mitkVtkImageOverwrite_h_Included
18 #define mitkVtkImageOverwrite_h_Included
19 
21 #include <vtkImageReslice.h>
22 
55 class MITKSEGMENTATION_EXPORT mitkVtkImageOverwrite : public vtkImageReslice
56 {
57 public:
58  static mitkVtkImageOverwrite *New();
59  vtkTypeMacro(mitkVtkImageOverwrite, vtkImageReslice);
60 
64  void SetOverwriteMode(bool b);
65  bool IsOverwriteMode() { return m_Overwrite_Mode; }
70  void SetInputSlice(vtkImageData *slice);
71 
72 protected:
74  virtual ~mitkVtkImageOverwrite();
75 
77 
79  virtual void ThreadedRequestData(vtkInformation *vtkNotUsed(request),
80  vtkInformationVector **vtkNotUsed(inputVector),
81  vtkInformationVector *vtkNotUsed(outputVector),
82  vtkImageData ***inData,
83  vtkImageData **outData,
84  int outExt[6],
85  int id) override;
86 };
87 
88 #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...
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.