VTK  9.3.20240419
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
36 #ifndef vtkImageToImageStencil_h
37 #define vtkImageToImageStencil_h
38 
40 #include "vtkImagingStencilModule.h" // For export macro
41 
42 VTK_ABI_NAMESPACE_BEGIN
43 class vtkImageData;
44 
45 class VTKIMAGINGSTENCIL_EXPORT vtkImageToImageStencil : public vtkImageStencilAlgorithm
46 {
47 public:
50  void PrintSelf(ostream& os, vtkIndent indent) override;
51 
53 
56  void SetInputData(vtkImageData* input);
59 
63  void ThresholdByUpper(double thresh);
64 
68  void ThresholdByLower(double thresh);
69 
73  void ThresholdBetween(double lower, double upper);
74 
76 
79  vtkSetMacro(UpperThreshold, double);
80  vtkGetMacro(UpperThreshold, double);
81  vtkSetMacro(LowerThreshold, double);
82  vtkGetMacro(LowerThreshold, double);
84 
85 protected:
88 
93 
96  double Threshold;
97 
98 private:
100  void operator=(const vtkImageToImageStencil&) = delete;
101 };
102 
103 VTK_ABI_NAMESPACE_END
104 #endif
topologically and geometrically regular array of data
Definition: vtkImageData.h:156
producer of vtkImageStencilData
clip an image with a mask image
static vtkImageToImageStencil * New()
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void ThresholdByLower(double thresh)
The values less than or equal to the value match.
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
void SetInputData(vtkImageData *input)
Specify the image data to convert into a stencil.
vtkImageData * GetInput()
Specify the image data to convert into a stencil.
void ThresholdBetween(double lower, double upper)
The values in a range (inclusive) match.
void ThresholdByUpper(double thresh)
The values greater than or equal to the value match.
~vtkImageToImageStencil() override
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.