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

vtkImageMagnify.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkImageMagnify.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 __vtkImageMagnify_h
00043 #define __vtkImageMagnify_h
00044 
00045 #include "vtkImageToImageFilter.h"
00046 
00047 class VTK_IMAGING_EXPORT vtkImageMagnify : public vtkImageToImageFilter
00048 {
00049 public:
00050   static vtkImageMagnify *New();
00051   vtkTypeRevisionMacro(vtkImageMagnify,vtkImageToImageFilter);
00052   void PrintSelf(ostream& os, vtkIndent indent);
00053 
00055 
00056   vtkSetVector3Macro(MagnificationFactors,int);
00057   vtkGetVector3Macro(MagnificationFactors,int);
00059   
00061 
00062   vtkSetMacro(Interpolate,int);
00063   vtkGetMacro(Interpolate,int);
00064   vtkBooleanMacro(Interpolate,int);
00066   
00067 
00068 protected:
00069   vtkImageMagnify();
00070   ~vtkImageMagnify() {};
00071 
00072   int MagnificationFactors[3];
00073   int Interpolate;
00074   void ComputeInputUpdateExtent(int inExt[6], int outExt[6]);
00075   void ExecuteInformation(vtkImageData *inData, vtkImageData *outData);
00076   void ExecuteInformation(){this->vtkImageToImageFilter::ExecuteInformation();};
00077   void ThreadedExecute(vtkImageData *inData, vtkImageData *outData,
00078                        int extent[6], int id);
00079 private:
00080   vtkImageMagnify(const vtkImageMagnify&);  // Not implemented.
00081   void operator=(const vtkImageMagnify&);  // Not implemented.
00082 };
00083 
00084 #endif
00085 
00086 
00087 
00088