VTK  9.2.6
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 =========================================================================*/
29 #ifndef vtkImageToImageStencil_h
30 #define vtkImageToImageStencil_h
31 
33 #include "vtkImagingStencilModule.h" // For export macro
34 
35 class vtkImageData;
36 
37 class VTKIMAGINGSTENCIL_EXPORT vtkImageToImageStencil : public vtkImageStencilAlgorithm
38 {
39 public:
40  static vtkImageToImageStencil* New();
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
45 
48  void SetInputData(vtkImageData* input);
49  vtkImageData* GetInput();
51 
55  void ThresholdByUpper(double thresh);
56 
60  void ThresholdByLower(double thresh);
61 
65  void ThresholdBetween(double lower, double upper);
66 
68 
71  vtkSetMacro(UpperThreshold, double);
72  vtkGetMacro(UpperThreshold, double);
73  vtkSetMacro(LowerThreshold, double);
74  vtkGetMacro(LowerThreshold, double);
76 
77 protected:
79  ~vtkImageToImageStencil() override;
80 
84  int FillInputPortInformation(int, vtkInformation*) override;
85 
88  double Threshold;
89 
90 private:
92  void operator=(const vtkImageToImageStencil&) = delete;
93 };
94 
95 #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:39
topologically and geometrically regular array of data
Definition: vtkImageData.h:53
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
static vtkImageStencilAlgorithm * New()
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Store zero or more vtkInformation instances.
clip an image with a mask image
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)