Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class 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 
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 __vtkImageMagnify_h
00031 #define __vtkImageMagnify_h
00032 
00033 #include "vtkImageToImageFilter.h"
00034 
00035 class VTK_IMAGING_EXPORT vtkImageMagnify : public vtkImageToImageFilter
00036 {
00037 public:
00038   static vtkImageMagnify *New();
00039   vtkTypeRevisionMacro(vtkImageMagnify,vtkImageToImageFilter);
00040   void PrintSelf(ostream& os, vtkIndent indent);
00041 
00043 
00044   vtkSetVector3Macro(MagnificationFactors,int);
00045   vtkGetVector3Macro(MagnificationFactors,int);
00047   
00049 
00050   vtkSetMacro(Interpolate,int);
00051   vtkGetMacro(Interpolate,int);
00052   vtkBooleanMacro(Interpolate,int);
00054   
00055 
00056 protected:
00057   vtkImageMagnify();
00058   ~vtkImageMagnify() {};
00059 
00060   int MagnificationFactors[3];
00061   int Interpolate;
00062   void ComputeInputUpdateExtent(int inExt[6], int outExt[6]);
00063   void ExecuteInformation(vtkImageData *inData, vtkImageData *outData);
00064   void ExecuteInformation(){this->vtkImageToImageFilter::ExecuteInformation();};
00065   void ThreadedExecute(vtkImageData *inData, vtkImageData *outData,
00066                        int extent[6], int id);
00067 private:
00068   vtkImageMagnify(const vtkImageMagnify&);  // Not implemented.
00069   void operator=(const vtkImageMagnify&);  // Not implemented.
00070 };
00071 
00072 #endif
00073 
00074 
00075 
00076