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

Imaging/vtkImageMagnify.h

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