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

vtkImageToImageStencil.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkImageToImageStencil.h,v $
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00028 #ifndef __vtkImageToImageStencil_h
00029 #define __vtkImageToImageStencil_h
00030 
00031 
00032 #include "vtkImageStencilSource.h"
00033 
00034 class vtkImageData;
00035 
00036 class VTK_IMAGING_EXPORT vtkImageToImageStencil : public vtkImageStencilSource
00037 {
00038 public:
00039   static vtkImageToImageStencil *New();
00040   vtkTypeRevisionMacro(vtkImageToImageStencil, vtkImageStencilSource);
00041   void PrintSelf(ostream& os, vtkIndent indent);
00042 
00044 
00045   void SetInput(vtkImageData *input);
00046   vtkImageData *GetInput();
00048 
00050   void ThresholdByUpper(double thresh);
00051   
00053   void ThresholdByLower(double thresh);
00054   
00056   void ThresholdBetween(double lower, double upper);
00057   
00059 
00060   vtkSetMacro(UpperThreshold, double);
00061   vtkGetMacro(UpperThreshold, double);
00062   vtkSetMacro(LowerThreshold, double);
00063   vtkGetMacro(LowerThreshold, double);
00065 
00066 protected:
00067   vtkImageToImageStencil();
00068   ~vtkImageToImageStencil();
00069 
00070   virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00071   virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00072   virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00073   virtual int FillInputPortInformation(int, vtkInformation*);
00074   
00075   double UpperThreshold;
00076   double LowerThreshold;
00077   double Threshold;
00078 private:
00079   vtkImageToImageStencil(const vtkImageToImageStencil&);  // Not implemented.
00080   void operator=(const vtkImageToImageStencil&);  // Not implemented.
00081 };
00082 
00083 #endif

Generated on Mon Jan 21 23:07:30 2008 for VTK by  doxygen 1.4.3-20050530