00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00031 #ifndef __vtkImageGradient_h
00032 #define __vtkImageGradient_h
00033
00034 #include "vtkThreadedImageAlgorithm.h"
00035
00036 class VTK_IMAGING_EXPORT vtkImageGradient : public vtkThreadedImageAlgorithm
00037 {
00038 public:
00039 static vtkImageGradient *New();
00040 vtkTypeRevisionMacro(vtkImageGradient,vtkThreadedImageAlgorithm);
00041 void PrintSelf(ostream& os, vtkIndent indent);
00042
00044
00045 vtkSetClampMacro(Dimensionality,int,2,3);
00046 vtkGetMacro(Dimensionality,int);
00048
00050
00054 vtkSetMacro(HandleBoundaries, int);
00055 vtkGetMacro(HandleBoundaries, int);
00056 vtkBooleanMacro(HandleBoundaries, int);
00058
00059 protected:
00060 vtkImageGradient();
00061 ~vtkImageGradient() {};
00062
00063 int HandleBoundaries;
00064 int Dimensionality;
00065
00066 virtual int RequestInformation (vtkInformation*,
00067 vtkInformationVector**,
00068 vtkInformationVector*);
00069 virtual int RequestUpdateExtent(vtkInformation*,
00070 vtkInformationVector**,
00071 vtkInformationVector*);
00072
00073 void ThreadedRequestData(vtkInformation*,
00074 vtkInformationVector**,
00075 vtkInformationVector*,
00076 vtkImageData*** inData,
00077 vtkImageData** outData,
00078 int outExt[6],
00079 int threadId);
00080 private:
00081 vtkImageGradient(const vtkImageGradient&);
00082 void operator=(const vtkImageGradient&);
00083 };
00084
00085 #endif
00086
00087
00088