vtkImageToImageStencil.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00040 #ifndef __vtkImageToImageStencil_h
00041 #define __vtkImageToImageStencil_h
00042
00043
00044 #include "vtkImageStencilSource.h"
00045
00046 class vtkImageData;
00047
00048 class VTK_IMAGING_EXPORT vtkImageToImageStencil : public vtkImageStencilSource
00049 {
00050 public:
00051 static vtkImageToImageStencil *New();
00052 vtkTypeRevisionMacro(vtkImageToImageStencil, vtkImageStencilSource);
00053 void PrintSelf(ostream& os, vtkIndent indent);
00054
00056
00057 void SetInput(vtkImageData *input);
00058 vtkImageData *GetInput();
00060
00062 void ThresholdByUpper(double thresh);
00063
00065 void ThresholdByLower(double thresh);
00066
00068 void ThresholdBetween(double lower, double upper);
00069
00071
00072 vtkSetMacro(UpperThreshold, double);
00073 vtkGetMacro(UpperThreshold, double);
00074 vtkSetMacro(LowerThreshold, double);
00075 vtkGetMacro(LowerThreshold, double);
00077
00078 protected:
00079 vtkImageToImageStencil();
00080 ~vtkImageToImageStencil();
00081
00082 void ThreadedExecute(vtkImageStencilData *output,
00083 int extent[6], int threadId);
00084 void ExecuteInformation();
00085 virtual int FillInputPortInformation(int, vtkInformation*);
00086
00087 double UpperThreshold;
00088 double LowerThreshold;
00089 double Threshold;
00090 private:
00091 vtkImageToImageStencil(const vtkImageToImageStencil&);
00092 void operator=(const vtkImageToImageStencil&);
00093 };
00094
00095 #endif