VTK
vtkImageToImageStencil.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageToImageStencil.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
26 #ifndef vtkImageToImageStencil_h
27 #define vtkImageToImageStencil_h
28 
29 
30 #include "vtkImagingStencilModule.h" // For export macro
32 
33 class vtkImageData;
34 
35 class VTKIMAGINGSTENCIL_EXPORT vtkImageToImageStencil : public vtkImageStencilAlgorithm
36 {
37 public:
38  static vtkImageToImageStencil *New();
40  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
41 
43 
46  void SetInputData(vtkImageData *input);
47  vtkImageData *GetInput();
49 
53  void ThresholdByUpper(double thresh);
54 
58  void ThresholdByLower(double thresh);
59 
63  void ThresholdBetween(double lower, double upper);
64 
66 
69  vtkSetMacro(UpperThreshold, double);
70  vtkGetMacro(UpperThreshold, double);
71  vtkSetMacro(LowerThreshold, double);
72  vtkGetMacro(LowerThreshold, double);
74 
75 protected:
77  ~vtkImageToImageStencil() VTK_OVERRIDE;
78 
79  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
80  int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
81  int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
82  int FillInputPortInformation(int, vtkInformation*) VTK_OVERRIDE;
83 
84  double UpperThreshold;
85  double LowerThreshold;
86  double Threshold;
87 private:
88  vtkImageToImageStencil(const vtkImageToImageStencil&) VTK_DELETE_FUNCTION;
89  void operator=(const vtkImageToImageStencil&) VTK_DELETE_FUNCTION;
90 };
91 
92 #endif
Store vtkAlgorithm input/output information.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
producer of vtkImageStencilData
a simple class to control print indentation
Definition: vtkIndent.h:33
topologically and geometrically regular array of data
Definition: vtkImageData.h:39
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
static vtkImageStencilAlgorithm * New()
Store zero or more vtkInformation instances.
clip an image with a mask image