VTK  9.3.20240420
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
42VTK_ABI_NAMESPACE_BEGIN
43class vtkImageData;
44
45class VTKIMAGINGSTENCIL_EXPORT vtkImageToImageStencil : public vtkImageStencilAlgorithm
46{
47public:
50 void PrintSelf(ostream& os, vtkIndent indent) override;
51
53
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
85protected:
88
93
96 double Threshold;
97
98private:
100 void operator=(const vtkImageToImageStencil&) = delete;
101};
102
103VTK_ABI_NAMESPACE_END
104#endif
topologically and geometrically regular array of data
producer of vtkImageStencilData
clip an image with a mask image
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.
vtkImageData * GetInput()
Specify the image data to convert into a stencil.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
static vtkImageToImageStencil * New()
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
void SetInputData(vtkImageData *input)
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.