00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkImageCityBlockDistance.h,v $ 00005 Language: C++ 00006 00007 Copyright (c) 1993-2002 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 =========================================================================*/ 00038 #ifndef __vtkImageCityBlockDistance_h 00039 #define __vtkImageCityBlockDistance_h 00040 00041 00042 #include "vtkImageDecomposeFilter.h" 00043 00044 class VTK_IMAGING_EXPORT vtkImageCityBlockDistance : public vtkImageDecomposeFilter 00045 { 00046 public: 00047 static vtkImageCityBlockDistance *New(); 00048 vtkTypeRevisionMacro(vtkImageCityBlockDistance,vtkImageDecomposeFilter); 00049 00050 protected: 00051 vtkImageCityBlockDistance(); 00052 ~vtkImageCityBlockDistance() {}; 00053 00054 void ComputeInputUpdateExtent(int inExt[6], int outExt[6]); 00055 void IterativeExecuteData(vtkImageData *inData, vtkImageData *outData); 00056 00057 void AllocateOutputScalars(vtkImageData *outData); 00058 00059 private: 00060 vtkImageCityBlockDistance(const vtkImageCityBlockDistance&); // Not implemented. 00061 void operator=(const vtkImageCityBlockDistance&); // Not implemented. 00062 }; 00063 00064 #endif 00065 00066 00067