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:
41  static vtkImageToImageStencil *New();
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
46 
49  void SetInputData(vtkImageData *input);
50  vtkImageData *GetInput();
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 
85  virtual int FillInputPortInformation(int, vtkInformation*);
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
Store vtkAlgorithm input/output information.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
producer of vtkImageStencilData
a simple class to control print indentation
Definition: vtkIndent.h:39
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
static vtkImageStencilAlgorithm * New()
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Store zero or more vtkInformation instances.
clip an image with a mask image
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)