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

dox/Imaging/vtkImageResample.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkImageResample.h,v $
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00034 #ifndef __vtkImageResample_h
00035 #define __vtkImageResample_h
00036 
00037 
00038 #include "vtkImageReslice.h"
00039 
00040 class VTK_IMAGING_EXPORT vtkImageResample : public vtkImageReslice
00041 {
00042 public:
00043   static vtkImageResample *New();
00044   vtkTypeRevisionMacro(vtkImageResample,vtkImageReslice);
00045   void PrintSelf(ostream& os, vtkIndent indent);
00046 
00049   void SetAxisOutputSpacing(int axis, float spacing);
00050   
00052 
00054   void SetAxisMagnificationFactor(int axis, float factor);
00055   float GetAxisMagnificationFactor(int axis);
00057   
00059 
00063   vtkSetMacro(Dimensionality,int);
00064   vtkGetMacro(Dimensionality,int);
00066 
00067 protected:
00068   vtkImageResample();
00069   ~vtkImageResample() {};
00070 
00071   float MagnificationFactors[3];
00072   float OutputSpacing[3];
00073   int Dimensionality;
00074   
00075   void ExecuteInformation(vtkImageData *inData, vtkImageData *outData);
00076   void ExecuteInformation(){this->Superclass::ExecuteInformation();};
00077 
00078 private:
00079   vtkImageResample(const vtkImageResample&);  // Not implemented.
00080   void operator=(const vtkImageResample&);  // Not implemented.
00081 };
00082 
00083 #endif