00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkSimpleImageToImageFilter.h 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 =========================================================================*/ 00039 #ifndef __vtkSimpleImageToImageFilter_h 00040 #define __vtkSimpleImageToImageFilter_h 00041 00042 #include "vtkImageAlgorithm.h" 00043 00044 class VTK_FILTERING_EXPORT vtkSimpleImageToImageFilter : public vtkImageAlgorithm 00045 { 00046 public: 00047 vtkTypeMacro(vtkSimpleImageToImageFilter,vtkImageAlgorithm); 00048 void PrintSelf(ostream& os, vtkIndent indent); 00049 00050 protected: 00051 vtkSimpleImageToImageFilter(); 00052 ~vtkSimpleImageToImageFilter(); 00053 00054 // These are called by the superclass. 00055 virtual int RequestUpdateExtent (vtkInformation *, 00056 vtkInformationVector **, 00057 vtkInformationVector *); 00058 00059 // You don't have to touch this unless you have a good reason. 00060 virtual int RequestData(vtkInformation *, 00061 vtkInformationVector **, 00062 vtkInformationVector *); 00063 00064 // In the simplest case, this is the only method you need to define. 00065 virtual void SimpleExecute(vtkImageData* input, vtkImageData* output) = 0; 00066 00067 private: 00068 vtkSimpleImageToImageFilter(const vtkSimpleImageToImageFilter&); // Not implemented. 00069 void operator=(const vtkSimpleImageToImageFilter&); // Not implemented. 00070 }; 00071 00072 #endif 00073 00074 00075 00076 00077 00078 00079