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

Imaging/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 =========================================================================*/
00030 #ifndef __vtkImageResample_h
00031 #define __vtkImageResample_h
00032 
00033 
00034 #include "vtkImageReslice.h"
00035 
00036 class VTK_IMAGING_EXPORT vtkImageResample : public vtkImageReslice
00037 {
00038 public:
00039   static vtkImageResample *New();
00040   vtkTypeRevisionMacro(vtkImageResample,vtkImageReslice);
00041   void PrintSelf(ostream& os, vtkIndent indent);
00042 
00045   void SetAxisOutputSpacing(int axis, double spacing);
00046   
00048 
00050   void SetAxisMagnificationFactor(int axis, double factor);
00051   double GetAxisMagnificationFactor(int axis);
00053   
00055 
00059   vtkSetMacro(Dimensionality,int);
00060   vtkGetMacro(Dimensionality,int);
00062 
00063 protected:
00064   vtkImageResample();
00065   ~vtkImageResample() {};
00066 
00067   double MagnificationFactors[3];
00068   double OutputSpacing[3];
00069   int Dimensionality;
00070   
00071   void ExecuteInformation(vtkImageData *inData, vtkImageData *outData);
00072   void ExecuteInformation(){this->Superclass::ExecuteInformation();};
00073 
00074 private:
00075   vtkImageResample(const vtkImageResample&);  // Not implemented.
00076   void operator=(const vtkImageResample&);  // Not implemented.
00077 };
00078 
00079 #endif