VTK  9.0.1
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 =========================================================================*/
26 #ifndef vtkImageToImageStencil_h
27 #define vtkImageToImageStencil_h
28 
30 #include "vtkImagingStencilModule.h" // For export macro
31 
32 class vtkImageData;
33 
34 class VTKIMAGINGSTENCIL_EXPORT vtkImageToImageStencil : public vtkImageStencilAlgorithm
35 {
36 public:
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
42 
45  void SetInputData(vtkImageData* input);
48 
52  void ThresholdByUpper(double thresh);
53 
57  void ThresholdByLower(double thresh);
58 
62  void ThresholdBetween(double lower, double upper);
63 
65 
68  vtkSetMacro(UpperThreshold, double);
69  vtkGetMacro(UpperThreshold, double);
70  vtkSetMacro(LowerThreshold, double);
71  vtkGetMacro(LowerThreshold, double);
73 
74 protected:
77 
82 
85  double Threshold;
86 
87 private:
89  void operator=(const vtkImageToImageStencil&) = delete;
90 };
91 
92 #endif
topologically and geometrically regular array of data
Definition: vtkImageData.h:42
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()
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:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.