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 
33 
34 class vtkImageData;
35 
37 {
38 public:
39  static vtkImageToImageStencil *New();
41  void PrintSelf(ostream& os, vtkIndent indent);
42 
44 
45  void SetInput(vtkImageData *input);
46  vtkImageData *GetInput();
48 
50  void ThresholdByUpper(double thresh);
51 
53  void ThresholdByLower(double thresh);
54 
56  void ThresholdBetween(double lower, double upper);
57 
59 
60  vtkSetMacro(UpperThreshold, double);
61  vtkGetMacro(UpperThreshold, double);
62  vtkSetMacro(LowerThreshold, double);
63  vtkGetMacro(LowerThreshold, double);
65 
66 protected:
69 
73  virtual int FillInputPortInformation(int, vtkInformation*);
74 
77  double Threshold;
78 private:
79  vtkImageToImageStencil(const vtkImageToImageStencil&); // Not implemented.
80  void operator=(const vtkImageToImageStencil&); // Not implemented.
81 };
82 
83 #endif