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 =========================================================================*/
28 #ifndef vtkImageToImageStencil_h
29 #define vtkImageToImageStencil_h
30 
31 
32 #include "vtkImagingStencilModule.h" // For export macro
34 
35 class vtkImageData;
36 
38 {
39 public:
40  static vtkImageToImageStencil *New();
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
45 
46  void SetInputData(vtkImageData *input);
47  vtkImageData *GetInput();
49 
51  void ThresholdByUpper(double thresh);
52 
54  void ThresholdByLower(double thresh);
55 
57  void ThresholdBetween(double lower, double upper);
58 
60 
61  vtkSetMacro(UpperThreshold, double);
62  vtkGetMacro(UpperThreshold, double);
63  vtkSetMacro(LowerThreshold, double);
64  vtkGetMacro(LowerThreshold, double);
66 
67 protected:
70 
74  virtual int FillInputPortInformation(int, vtkInformation*);
75 
78  double Threshold;
79 private:
80  vtkImageToImageStencil(const vtkImageToImageStencil&); // Not implemented.
81  void operator=(const vtkImageToImageStencil&); // Not implemented.
82 };
83 
84 #endif
Store vtkAlgorithm input/output information.
producer of vtkImageStencilData
#define VTKIMAGINGSTENCIL_EXPORT
a simple class to control print indentation
Definition: vtkIndent.h:38
topologically and geometrically regular array of data
Definition: vtkImageData.h:44
virtual int FillInputPortInformation(int port, vtkInformation *info)
void PrintSelf(ostream &os, vtkIndent indent)
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 *)