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

vtkImageGradientMagnitude.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkImageGradientMagnitude.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 =========================================================================*/
00044 #ifndef __vtkImageGradientMagnitude_h
00045 #define __vtkImageGradientMagnitude_h
00046 
00047 
00048 #include "vtkThreadedImageAlgorithm.h"
00049 
00050 class VTK_IMAGING_EXPORT vtkImageGradientMagnitude : public vtkThreadedImageAlgorithm
00051 {
00052 public:
00053   static vtkImageGradientMagnitude *New();
00054   vtkTypeRevisionMacro(vtkImageGradientMagnitude,vtkThreadedImageAlgorithm);
00055   void PrintSelf(ostream& os, vtkIndent indent);
00056   
00058 
00060   vtkSetMacro(HandleBoundaries, int);
00061   vtkGetMacro(HandleBoundaries, int);
00062   vtkBooleanMacro(HandleBoundaries, int);
00064 
00066 
00067   vtkSetClampMacro(Dimensionality,int,2,3);
00068   vtkGetMacro(Dimensionality,int);
00070   
00072 
00075   vtkGetStringMacro(InputScalarsSelection);
00076   void SelectInputScalars(const char *fieldName) 
00077     {this->SetInputScalarsSelection(fieldName);}  
00079 
00080 protected:
00081   vtkImageGradientMagnitude();
00082   ~vtkImageGradientMagnitude() {};
00083 
00084   int HandleBoundaries;
00085   int Dimensionality;
00086   
00087   void ExecuteInformation (vtkInformation *, vtkInformationVector *, vtkInformationVector *);
00088   void RequestUpdateExtent (vtkInformation *, vtkInformationVector *, vtkInformationVector *);
00089   
00090   void ThreadedExecute (vtkImageData *inData, vtkImageData *outData,
00091                        int extent[6], int id);
00092 private:
00093   vtkImageGradientMagnitude(const vtkImageGradientMagnitude&);  // Not implemented.
00094   void operator=(const vtkImageGradientMagnitude&);  // Not implemented.
00095 };
00096 
00097 #endif
00098 
00099 
00100