Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

dox/Imaging/vtkImageToImageStencil.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkImageToImageStencil.h,v $ 00005 Language: C++ 00006 00007 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notice for more information. 00014 00015 =========================================================================*/ 00032 #ifndef __vtkImageToImageStencil_h 00033 #define __vtkImageToImageStencil_h 00034 00035 00036 #include "vtkImageStencilSource.h" 00037 00038 class vtkImageData; 00039 00040 class VTK_IMAGING_EXPORT vtkImageToImageStencil : public vtkImageStencilSource 00041 { 00042 public: 00043 static vtkImageToImageStencil *New(); 00044 vtkTypeRevisionMacro(vtkImageToImageStencil, vtkImageStencilSource); 00045 void PrintSelf(ostream& os, vtkIndent indent); 00046 00048 00049 void SetInput(vtkImageData *input); 00050 vtkImageData *GetInput(); 00052 00054 void ThresholdByUpper(float thresh); 00055 00057 void ThresholdByLower(float thresh); 00058 00060 void ThresholdBetween(float lower, float upper); 00061 00063 00064 vtkSetMacro(UpperThreshold, float); 00065 vtkGetMacro(UpperThreshold, float); 00066 vtkSetMacro(LowerThreshold, float); 00067 vtkGetMacro(LowerThreshold, float); 00069 00070 protected: 00071 vtkImageToImageStencil(); 00072 ~vtkImageToImageStencil(); 00073 00074 void ThreadedExecute(vtkImageStencilData *output, 00075 int extent[6], int threadId); 00076 00077 float UpperThreshold; 00078 float LowerThreshold; 00079 float Threshold; 00080 private: 00081 vtkImageToImageStencil(const vtkImageToImageStencil&); // Not implemented. 00082 void operator=(const vtkImageToImageStencil&); // Not implemented. 00083 }; 00084 00085 #endif