1 /*========================================================================= 2 3 Program: Visualization Toolkit 4 Module: vtkSimpleImageFilterExample.h 5 6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 7 All rights reserved. 8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 9 10 This software is distributed WITHOUT ANY WARRANTY; without even 11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 12 PURPOSE. See the above copyright notice for more information. 13 14 =========================================================================*/ 15 // .NAME vtkSimpleImageFilterExample - Simple example of an image-image filter. 16 // .SECTION Description 17 // This is an example of a simple image-image filter. It copies it's input 18 // to it's output (point by point). It shows how templates can be used 19 // to support various data types. 20 // .SECTION See also 21 // vtkSimpleImageToImageFilter 22 23 #ifndef vtkSimpleImageFilterExample_h 24 #define vtkSimpleImageFilterExample_h 25 26 #include "vtkImagingGeneralModule.h" // For export macro 27 #include "vtkSimpleImageToImageFilter.h" 28 29 class VTKIMAGINGGENERAL_EXPORT vtkSimpleImageFilterExample : public vtkSimpleImageToImageFilter 30 { 31 public: 32 static vtkSimpleImageFilterExample *New(); 33 vtkTypeMacro(vtkSimpleImageFilterExample,vtkSimpleImageToImageFilter); 34 35 protected: 36 vtkSimpleImageFilterExample()37 vtkSimpleImageFilterExample() {} ~vtkSimpleImageFilterExample()38 ~vtkSimpleImageFilterExample() {} 39 40 virtual void SimpleExecute(vtkImageData* input, vtkImageData* output); 41 private: 42 vtkSimpleImageFilterExample(const vtkSimpleImageFilterExample&); // Not implemented. 43 void operator=(const vtkSimpleImageFilterExample&); // Not implemented. 44 }; 45 46 #endif 47 48 49 50 51 52 53 54 // VTK-HeaderTest-Exclude: vtkSimpleImageFilterExample.h 55