VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
37 class VTKIMAGINGSTENCIL_EXPORT vtkImageToImageStencil : public vtkImageStencilAlgorithm
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 
71  virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
72  virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
73  virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
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
producer of vtkImageStencilData
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 *)
clip an image with a mask image
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)