VTK  9.3.1
vtkImageToImageStencil.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
17 #ifndef vtkImageToImageStencil_h
18 #define vtkImageToImageStencil_h
19 
21 #include "vtkImagingStencilModule.h" // For export macro
22 
23 VTK_ABI_NAMESPACE_BEGIN
24 class vtkImageData;
25 
26 class VTKIMAGINGSTENCIL_EXPORT vtkImageToImageStencil : public vtkImageStencilAlgorithm
27 {
28 public:
29  static vtkImageToImageStencil* New();
31  void PrintSelf(ostream& os, vtkIndent indent) override;
32 
34 
37  void SetInputData(vtkImageData* input);
38  vtkImageData* GetInput();
40 
44  void ThresholdByUpper(double thresh);
45 
49  void ThresholdByLower(double thresh);
50 
54  void ThresholdBetween(double lower, double upper);
55 
57 
60  vtkSetMacro(UpperThreshold, double);
61  vtkGetMacro(UpperThreshold, double);
62  vtkSetMacro(LowerThreshold, double);
63  vtkGetMacro(LowerThreshold, double);
65 
66 protected:
68  ~vtkImageToImageStencil() override;
69 
73  int FillInputPortInformation(int, vtkInformation*) override;
74 
77  double Threshold;
78 
79 private:
81  void operator=(const vtkImageToImageStencil&) = delete;
82 };
83 
84 VTK_ABI_NAMESPACE_END
85 #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:28
topologically and geometrically regular array of data
Definition: vtkImageData.h:42
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 *)