Imaging/vtkImageResample.h Source File

Main Page Class Hierarchy Alphabetical List Compound List File List Compound 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   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 =========================================================================*/
    00046 #ifndef __vtkImageResample_h
    00047 #define __vtkImageResample_h
    00048
    00049
    00050 #include "vtkImageReslice.h"
    00051
    00052 class VTK_IMAGING_EXPORT vtkImageResample : public vtkImageReslice
    00053 {
    00054 public:
    00055   static vtkImageResample *New();
    00056   vtkTypeRevisionMacro(vtkImageResample,vtkImageReslice);
    00057   void PrintSelf(ostream& os, vtkIndent indent);
    00058
    00061   void SetAxisOutputSpacing(int axis, float spacing);
    00062
    00064
    00066   void SetAxisMagnificationFactor(int axis, float factor);
    00067   float GetAxisMagnificationFactor(int axis);
    00069
    00071
    00075   vtkSetMacro(Dimensionality,int);
    00076   vtkGetMacro(Dimensionality,int);
    00078
    00079 protected:
    00080   vtkImageResample();
    00081   ~vtkImageResample() {};
    00082
    00083   float MagnificationFactors[3];
    00084   float OutputSpacing[3];
    00085   int Dimensionality;
    00086
    00087   void ExecuteInformation(vtkImageData *inData, vtkImageData *outData);
    00088   void ExecuteInformation(){this->Superclass::ExecuteInformation();};
    00089
    00090 private:
    00091   vtkImageResample(const vtkImageResample&);  // Not implemented.
    00092   void operator=(const vtkImageResample&);  // Not implemented.
    00093 };
    00094
    00095 #endif