VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkImageResample.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 =========================================================================*/ 00030 #ifndef __vtkImageResample_h 00031 #define __vtkImageResample_h 00032 00033 00034 #include "vtkImagingCoreModule.h" // For export macro 00035 #include "vtkImageReslice.h" 00036 00037 class VTKIMAGINGCORE_EXPORT vtkImageResample : public vtkImageReslice 00038 { 00039 public: 00040 static vtkImageResample *New(); 00041 vtkTypeMacro(vtkImageResample,vtkImageReslice); 00042 void PrintSelf(ostream& os, vtkIndent indent); 00043 00046 void SetAxisOutputSpacing(int axis, double spacing); 00047 00049 00051 void SetAxisMagnificationFactor(int axis, double factor); 00052 double GetAxisMagnificationFactor(int axis, vtkInformation *inInfo=0); 00054 00056 00060 vtkSetMacro(Dimensionality,int); 00061 vtkGetMacro(Dimensionality,int); 00063 00064 protected: 00065 vtkImageResample(); 00066 ~vtkImageResample() {} 00067 00068 double MagnificationFactors[3]; 00069 double OutputSpacing[3]; 00070 int Dimensionality; 00071 00072 virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00073 00074 private: 00075 vtkImageResample(const vtkImageResample&); // Not implemented. 00076 void operator=(const vtkImageResample&); // Not implemented. 00077 }; 00078 00079 #endif