Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkImageResample.h

Go to the documentation of this file.
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 =========================================================================*/
00042 #ifndef __vtkImageResample_h
00043 #define __vtkImageResample_h
00044 
00045 
00046 #include "vtkImageReslice.h"
00047 
00048 class VTK_IMAGING_EXPORT vtkImageResample : public vtkImageReslice
00049 {
00050 public:
00051   static vtkImageResample *New();
00052   vtkTypeRevisionMacro(vtkImageResample,vtkImageReslice);
00053   void PrintSelf(ostream& os, vtkIndent indent);
00054 
00057   void SetAxisOutputSpacing(int axis, double spacing);
00058   
00060 
00062   void SetAxisMagnificationFactor(int axis, double factor);
00063   double GetAxisMagnificationFactor(int axis);
00065   
00067 
00071   vtkSetMacro(Dimensionality,int);
00072   vtkGetMacro(Dimensionality,int);
00074 
00075 protected:
00076   vtkImageResample();
00077   ~vtkImageResample() {};
00078 
00079   double MagnificationFactors[3];
00080   double OutputSpacing[3];
00081   int Dimensionality;
00082   
00083   void ExecuteInformation(vtkImageData *inData, vtkImageData *outData);
00084   void ExecuteInformation(){this->Superclass::ExecuteInformation();};
00085 
00086 private:
00087   vtkImageResample(const vtkImageResample&);  // Not implemented.
00088   void operator=(const vtkImageResample&);  // Not implemented.
00089 };
00090 
00091 #endif