Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | 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 =========================================================================*/
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&);  // Not implemented.
00092   void operator=(const vtkImageToImageStencil&);  // Not implemented.
00093 };
00094 
00095 #endif