VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkImageTranslateExtent.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 =========================================================================*/ 00025 #ifndef __vtkImageTranslateExtent_h 00026 #define __vtkImageTranslateExtent_h 00027 00028 #include "vtkImagingCoreModule.h" // For export macro 00029 #include "vtkImageAlgorithm.h" 00030 00031 class VTKIMAGINGCORE_EXPORT vtkImageTranslateExtent : public vtkImageAlgorithm 00032 { 00033 public: 00034 static vtkImageTranslateExtent *New(); 00035 vtkTypeMacro(vtkImageTranslateExtent,vtkImageAlgorithm); 00036 void PrintSelf(ostream& os, vtkIndent indent); 00037 00039 00040 vtkSetVector3Macro(Translation, int); 00041 vtkGetVector3Macro(Translation, int); 00043 00044 protected: 00045 vtkImageTranslateExtent(); 00046 ~vtkImageTranslateExtent() {}; 00047 00048 int Translation[3]; 00049 00050 virtual int RequestUpdateExtent (vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00051 virtual int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00052 00053 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00054 00055 private: 00056 vtkImageTranslateExtent(const vtkImageTranslateExtent&); // Not implemented. 00057 void operator=(const vtkImageTranslateExtent&); // Not implemented. 00058 }; 00059 00060 #endif