00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkImageResample.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 =========================================================================*/ 00027 #ifndef __vtkImageResample_h 00028 #define __vtkImageResample_h 00029 00030 00031 #include "vtkImageReslice.h" 00032 00033 class VTK_IMAGING_EXPORT vtkImageResample : public vtkImageReslice 00034 { 00035 public: 00036 static vtkImageResample *New(); 00037 vtkTypeRevisionMacro(vtkImageResample,vtkImageReslice); 00038 void PrintSelf(ostream& os, vtkIndent indent); 00039 00042 void SetAxisOutputSpacing(int axis, double spacing); 00043 00045 00047 void SetAxisMagnificationFactor(int axis, double factor); 00048 double GetAxisMagnificationFactor(int axis, vtkInformation *inInfo=0); 00050 00052 00056 vtkSetMacro(Dimensionality,int); 00057 vtkGetMacro(Dimensionality,int); 00059 00060 protected: 00061 vtkImageResample(); 00062 ~vtkImageResample() {}; 00063 00064 double MagnificationFactors[3]; 00065 double OutputSpacing[3]; 00066 int Dimensionality; 00067 00068 virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00069 00070 private: 00071 vtkImageResample(const vtkImageResample&); // Not implemented. 00072 void operator=(const vtkImageResample&); // Not implemented. 00073 }; 00074 00075 #endif