Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | 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 
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 =========================================================================*/
00042 #ifndef __vtkImageGradient_h
00043 #define __vtkImageGradient_h
00044 
00045 
00046 #include "vtkThreadedImageAlgorithm.h"
00047 
00048 class VTK_IMAGING_EXPORT vtkImageGradient : 
00049   public vtkThreadedImageAlgorithm
00050 {
00051 public:
00052   static vtkImageGradient *New();
00053   vtkTypeRevisionMacro(vtkImageGradient,vtkThreadedImageAlgorithm);
00054   void PrintSelf(ostream& os, vtkIndent indent);
00055   
00057 
00058   vtkSetClampMacro(Dimensionality,int,2,3);
00059   vtkGetMacro(Dimensionality,int);
00061   
00063 
00065   vtkSetMacro(HandleBoundaries, int);
00066   vtkGetMacro(HandleBoundaries, int);
00067   vtkBooleanMacro(HandleBoundaries, int);
00069 
00071 
00074   vtkGetStringMacro(InputScalarsSelection);
00075   void SelectInputScalars(const char *fieldName) 
00076     {this->SetInputScalarsSelection(fieldName);}  
00078 
00079 protected:
00080   vtkImageGradient();
00081   ~vtkImageGradient() {};
00082 
00083   int HandleBoundaries;
00084   int Dimensionality;
00085   
00086   void ExecuteInformation (vtkInformation *, vtkInformationVector *, vtkInformationVector *); 
00087   void RequestUpdateExtent (vtkInformation *, 
00088                             vtkInformationVector *, vtkInformationVector *);
00089   
00090   void ThreadedExecute (vtkImageData *inData, vtkImageData *outData,
00091                        int extent[6], int id);
00092 private:
00093   vtkImageGradient(const vtkImageGradient&);  // Not implemented.
00094   void operator=(const vtkImageGradient&);  // Not implemented.
00095 };
00096 
00097 #endif
00098 
00099 
00100