VTK  9.2.6
vtkImageToImageStencil.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkImageToImageStencil.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
28
29#ifndef vtkImageToImageStencil_h
30#define vtkImageToImageStencil_h
31
33#include "vtkImagingStencilModule.h" // For export macro
34
35class vtkImageData;
36
37class VTKIMAGINGSTENCIL_EXPORT vtkImageToImageStencil : public vtkImageStencilAlgorithm
38{
39public:
42 void PrintSelf(ostream& os, vtkIndent indent) override;
43
45
51
55 void ThresholdByUpper(double thresh);
56
60 void ThresholdByLower(double thresh);
61
65 void ThresholdBetween(double lower, double upper);
66
68
71 vtkSetMacro(UpperThreshold, double);
72 vtkGetMacro(UpperThreshold, double);
73 vtkSetMacro(LowerThreshold, double);
74 vtkGetMacro(LowerThreshold, double);
76
77protected:
80
85
88 double Threshold;
89
90private:
92 void operator=(const vtkImageToImageStencil&) = delete;
93};
94
95#endif
topologically and geometrically regular array of data
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:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.