VTK
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 =========================================================================*/
29 #ifndef vtkImageToImageStencil_h
30 #define vtkImageToImageStencil_h
31 
32 
33 #include "vtkImagingStencilModule.h" // For export macro
35 
36 class vtkImageData;
37 
38 class VTKIMAGINGSTENCIL_EXPORT vtkImageToImageStencil : public vtkImageStencilAlgorithm
39 {
40 public:
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
46 
49  void SetInputData(vtkImageData *input);
52 
56  void ThresholdByUpper(double thresh);
57 
61  void ThresholdByLower(double thresh);
62 
66  void ThresholdBetween(double lower, double upper);
67 
69 
72  vtkSetMacro(UpperThreshold, double);
73  vtkGetMacro(UpperThreshold, double);
74  vtkSetMacro(LowerThreshold, double);
75  vtkGetMacro(LowerThreshold, double);
77 
78 protected:
81 
86 
89  double Threshold;
90 private:
91  vtkImageToImageStencil(const vtkImageToImageStencil&) VTK_DELETE_FUNCTION;
92  void operator=(const vtkImageToImageStencil&) VTK_DELETE_FUNCTION;
93 };
94 
95 #endif
topologically and geometrically regular array of data
Definition: vtkImageData.h:46
producer of vtkImageStencilData
clip an image with a mask image
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
static vtkImageToImageStencil * New()
void PrintSelf(ostream &os, vtkIndent indent)
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.
virtual int FillInputPortInformation(int, vtkInformation *)
Fill the input port information objects for this algorithm.
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.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
void ThresholdByUpper(double thresh)
The values greater than or equal to the value match.
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.