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

vtkImageGradient.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkImageGradient.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 =========================================================================*/
00035 #ifndef __vtkImageGradient_h
00036 #define __vtkImageGradient_h
00037 
00038 
00039 #include "vtkImageToImageFilter.h"
00040 
00041 class VTK_IMAGING_EXPORT vtkImageGradient : public vtkImageToImageFilter
00042 {
00043 public:
00044   static vtkImageGradient *New();
00045   vtkTypeRevisionMacro(vtkImageGradient,vtkImageToImageFilter);
00046   void PrintSelf(ostream& os, vtkIndent indent);
00047   
00049 
00050   vtkSetClampMacro(Dimensionality,int,2,3);
00051   vtkGetMacro(Dimensionality,int);
00053   
00055 
00057   vtkSetMacro(HandleBoundaries, int);
00058   vtkGetMacro(HandleBoundaries, int);
00059   vtkBooleanMacro(HandleBoundaries, int);
00061 
00062 protected:
00063   vtkImageGradient();
00064   ~vtkImageGradient() {};
00065 
00066   int HandleBoundaries;
00067   int Dimensionality;
00068   
00069   void ExecuteInformation(vtkImageData *inData, vtkImageData *outData); 
00070   void ComputeInputUpdateExtent(int inExt[6], int outExt[6]);
00071   void ExecuteInformation(){this->vtkImageToImageFilter::ExecuteInformation();};
00072   void ThreadedExecute(vtkImageData *inData, vtkImageData *outData,
00073                        int extent[6], int id);
00074 private:
00075   vtkImageGradient(const vtkImageGradient&);  // Not implemented.
00076   void operator=(const vtkImageGradient&);  // Not implemented.
00077 };
00078 
00079 #endif
00080 
00081 
00082