00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkImageCityBlockDistance.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 =========================================================================*/ 00034 #ifndef __vtkImageCityBlockDistance_h 00035 #define __vtkImageCityBlockDistance_h 00036 00037 00038 #include "vtkImageDecomposeFilter.h" 00039 00040 class VTK_IMAGING_EXPORT vtkImageCityBlockDistance : public vtkImageDecomposeFilter 00041 { 00042 public: 00043 static vtkImageCityBlockDistance *New(); 00044 vtkTypeRevisionMacro(vtkImageCityBlockDistance,vtkImageDecomposeFilter); 00045 00046 protected: 00047 vtkImageCityBlockDistance(); 00048 ~vtkImageCityBlockDistance() {}; 00049 00050 virtual int IterativeRequestUpdateExtent(vtkInformation* in, 00051 vtkInformation* out); 00052 virtual int IterativeRequestData(vtkInformation*, 00053 vtkInformationVector**, 00054 vtkInformationVector*); 00055 00056 void AllocateOutputScalars(vtkImageData *outData, 00057 int* updateExtent, 00058 int* wholeExtent); 00059 00060 private: 00061 vtkImageCityBlockDistance(const vtkImageCityBlockDistance&); // Not implemented. 00062 void operator=(const vtkImageCityBlockDistance&); // Not implemented. 00063 }; 00064 00065 #endif 00066 00067 00068