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

Imaging/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   void ThreadedExecute(vtkImageStencilData *output,
00071                        int extent[6], int threadId);
00072 
00073   double UpperThreshold;
00074   double LowerThreshold;
00075   double Threshold;
00076 private:
00077   vtkImageToImageStencil(const vtkImageToImageStencil&);  // Not implemented.
00078   void operator=(const vtkImageToImageStencil&);  // Not implemented.
00079 };
00080 
00081 #endif