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
23VTK_ABI_NAMESPACE_BEGIN
24class vtkImageData;
25
26class VTKIMAGINGSTENCIL_EXPORT vtkImageToImageStencil : public vtkImageStencilAlgorithm
27{
28public:
31 void PrintSelf(ostream& os, vtkIndent indent) override;
32
34
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
66protected:
69
74
77 double Threshold;
78
79private:
81 void operator=(const vtkImageToImageStencil&) = delete;
82};
83
84VTK_ABI_NAMESPACE_END
85#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:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.