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
32VTK_ABI_NAMESPACE_BEGIN
33class vtkImageData;
34
35class VTKIMAGINGSTENCIL_EXPORT vtkImageToImageStencil : public vtkImageStencilAlgorithm
36{
37public:
40 void PrintSelf(ostream& os, vtkIndent indent) override;
41
43
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
75protected:
78
83
86 double Threshold;
87
88private:
90 void operator=(const vtkImageToImageStencil&) = delete;
91};
92
93VTK_ABI_NAMESPACE_END
94#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:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.