VTK
/Users/kitware/Dashboards/MyTests/VTK_BLD_Release_docs/Utilities/Doxygen/dox/Imaging/General/vtkImageGradientMagnitude.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkImageGradientMagnitude.h
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 =========================================================================*/
00033 #ifndef vtkImageGradientMagnitude_h
00034 #define vtkImageGradientMagnitude_h
00035 
00036 
00037 #include "vtkImagingGeneralModule.h" // For export macro
00038 #include "vtkThreadedImageAlgorithm.h"
00039 
00040 class VTKIMAGINGGENERAL_EXPORT vtkImageGradientMagnitude : public vtkThreadedImageAlgorithm
00041 {
00042 public:
00043   static vtkImageGradientMagnitude *New();
00044   vtkTypeMacro(vtkImageGradientMagnitude,vtkThreadedImageAlgorithm);
00045   void PrintSelf(ostream& os, vtkIndent indent);
00046 
00048 
00050   vtkSetMacro(HandleBoundaries, int);
00051   vtkGetMacro(HandleBoundaries, int);
00052   vtkBooleanMacro(HandleBoundaries, int);
00054 
00056 
00057   vtkSetClampMacro(Dimensionality,int,2,3);
00058   vtkGetMacro(Dimensionality,int);
00060 
00061 protected:
00062   vtkImageGradientMagnitude();
00063   ~vtkImageGradientMagnitude() {}
00064 
00065   int HandleBoundaries;
00066   int Dimensionality;
00067 
00068   virtual int RequestInformation (vtkInformation*,
00069                                   vtkInformationVector**,
00070                                   vtkInformationVector*);
00071   virtual int RequestUpdateExtent(vtkInformation*,
00072                                   vtkInformationVector**,
00073                                   vtkInformationVector*);
00074 
00075   void ThreadedExecute (vtkImageData *inData, vtkImageData *outData,
00076                        int extent[6], int id);
00077 private:
00078   vtkImageGradientMagnitude(const vtkImageGradientMagnitude&);  // Not implemented.
00079   void operator=(const vtkImageGradientMagnitude&);  // Not implemented.
00080 };
00081 
00082 #endif
00083 
00084 
00085