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
26 #ifndef vtkImageToImageStencil_h
27 #define vtkImageToImageStencil_h
28 
30 #include "vtkImagingStencilModule.h" // For export macro
31 
32 VTK_ABI_NAMESPACE_BEGIN
33 class vtkImageData;
34 
35 class VTKIMAGINGSTENCIL_EXPORT vtkImageToImageStencil : public vtkImageStencilAlgorithm
36 {
37 public:
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
43 
46  void SetInputData(vtkImageData* input);
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:
78 
83 
86  double Threshold;
87 
88 private:
90  void operator=(const vtkImageToImageStencil&) = delete;
91 };
92 
93 VTK_ABI_NAMESPACE_END
94 #endif
topologically and geometrically regular array of data
Definition: vtkImageData.h:52
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:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.