00001 // -*- c++ -*- 00002 /*========================================================================= 00003 00004 Program: Visualization Toolkit 00005 Module: $RCSfile: vtkGradientFilter.h,v $ 00006 00007 Copyright (c) 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 =========================================================================*/ 00016 /*---------------------------------------------------------------------------- 00017 Copyright (c) Sandia Corporation 00018 See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details. 00019 ----------------------------------------------------------------------------*/ 00020 00034 #ifndef __vtkGradientFilter_h 00035 #define __vtkGradientFilter_h 00036 00037 #include "vtkDataSetAlgorithm.h" 00038 00039 class VTK_GRAPHICS_EXPORT vtkGradientFilter : public vtkDataSetAlgorithm 00040 { 00041 public: 00042 vtkTypeRevisionMacro(vtkGradientFilter, vtkDataSetAlgorithm); 00043 virtual void PrintSelf(ostream &os, vtkIndent indent); 00044 00045 static vtkGradientFilter *New(); 00046 00048 00053 virtual void SetInputScalars(int fieldAssociation, const char *name); 00054 virtual void SetInputScalars(int fieldAssociation, int fieldAttributeType); 00056 00058 00060 vtkGetStringMacro(ResultArrayName); 00061 vtkSetStringMacro(ResultArrayName); 00063 00064 protected: 00065 vtkGradientFilter(); 00066 ~vtkGradientFilter(); 00067 00068 virtual int RequestUpdateExtent(vtkInformation *, 00069 vtkInformationVector **, 00070 vtkInformationVector *); 00071 virtual int RequestData(vtkInformation *, vtkInformationVector **, 00072 vtkInformationVector *); 00073 00074 char *ResultArrayName; 00075 00076 private: 00077 vtkGradientFilter(const vtkGradientFilter &); // Not implemented 00078 void operator=(const vtkGradientFilter &); // Not implemented 00079 }; 00080 00081 #endif //_vtkGradientFilter_h