VTK  9.1.0
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 =========================================================================*/
45 #ifndef vtkImageToImageStencil_h
46 #define vtkImageToImageStencil_h
47 
49 #include "vtkImagingStencilModule.h" // For export macro
50 
51 class vtkImageData;
52 
53 class VTKIMAGINGSTENCIL_EXPORT vtkImageToImageStencil : public vtkImageStencilAlgorithm
54 {
55 public:
58  void PrintSelf(ostream& os, vtkIndent indent) override;
59 
61 
64  void SetInputData(vtkImageData* input);
67 
71  void ThresholdByUpper(double thresh);
72 
76  void ThresholdByLower(double thresh);
77 
81  void ThresholdBetween(double lower, double upper);
82 
84 
87  vtkSetMacro(UpperThreshold, double);
88  vtkGetMacro(UpperThreshold, double);
89  vtkSetMacro(LowerThreshold, double);
90  vtkGetMacro(LowerThreshold, double);
92 
93 protected:
96 
101 
104  double Threshold;
105 
106 private:
108  void operator=(const vtkImageToImageStencil&) = delete;
109 };
110 
111 #endif
vtkImageToImageStencil::New
static vtkImageToImageStencil * New()
vtkImageStencilAlgorithm
producer of vtkImageStencilData
Definition: vtkImageStencilAlgorithm.h:36
vtkImageToImageStencil::RequestUpdateExtent
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:145
vtkImageToImageStencil::ThresholdBetween
void ThresholdBetween(double lower, double upper)
The values in a range (inclusive) match.
vtkImageToImageStencil::~vtkImageToImageStencil
~vtkImageToImageStencil() override
vtkImageToImageStencil::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
vtkImageToImageStencil::RequestInformation
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
vtkImageToImageStencil::Threshold
double Threshold
Definition: vtkImageToImageStencil.h:104
vtkImageToImageStencil::ThresholdByLower
void ThresholdByLower(double thresh)
The values less than or equal to the value match.
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:157
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkImageToImageStencil::vtkImageToImageStencil
vtkImageToImageStencil()
vtkImageToImageStencil::FillInputPortInformation
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
vtkImageToImageStencil::GetInput
vtkImageData * GetInput()
Specify the image data to convert into a stencil.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:183
vtkImageToImageStencil
clip an image with a mask image
Definition: vtkImageToImageStencil.h:54
vtkImageToImageStencil::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkImageToImageStencil::LowerThreshold
double LowerThreshold
Definition: vtkImageToImageStencil.h:103
vtkImageToImageStencil::UpperThreshold
double UpperThreshold
Definition: vtkImageToImageStencil.h:102
vtkImageToImageStencil::ThresholdByUpper
void ThresholdByUpper(double thresh)
The values greater than or equal to the value match.
vtkImageToImageStencil::SetInputData
void SetInputData(vtkImageData *input)
Specify the image data to convert into a stencil.
vtkImageStencilAlgorithm.h