VTK  9.3.0
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:
31  void PrintSelf(ostream& os, vtkIndent indent) override;
32 
34 
37  void SetInputData(vtkImageData* input);
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:
69 
74 
77  double Threshold;
78 
79 private:
81  void operator=(const vtkImageToImageStencil&) = delete;
82 };
83 
84 VTK_ABI_NAMESPACE_END
85 #endif
topologically and geometrically regular array of data
Definition: vtkImageData.h:43
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:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.