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

Imaging/vtkImagePadFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkImagePadFilter.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 =========================================================================*/
00039 #ifndef __vtkImagePadFilter_h
00040 #define __vtkImagePadFilter_h
00041 
00042 #include "vtkImageToImageFilter.h"
00043 
00044 class VTK_IMAGING_EXPORT vtkImagePadFilter : public vtkImageToImageFilter
00045 {
00046 public:
00047   static vtkImagePadFilter *New();
00048   vtkTypeRevisionMacro(vtkImagePadFilter,vtkImageToImageFilter);
00049   void PrintSelf(ostream& os, vtkIndent indent);
00050 
00052 
00053   void SetOutputWholeExtent(int extent[6]);
00054   void SetOutputWholeExtent(int minX, int maxX, int minY, int maxY, 
00055                             int minZ, int maxZ);
00056   void GetOutputWholeExtent(int extent[6]);
00057   int *GetOutputWholeExtent() {return this->OutputWholeExtent;}
00059 
00061 
00062   vtkSetMacro(OutputNumberOfScalarComponents, int);
00063   vtkGetMacro(OutputNumberOfScalarComponents, int);
00065   
00066 protected:
00067   vtkImagePadFilter();
00068   ~vtkImagePadFilter() {};
00069 
00070   int OutputWholeExtent[6];
00071   int OutputNumberOfScalarComponents;
00072 
00073   void ExecuteInformation(vtkImageData *inData, vtkImageData *outData);
00074   void ComputeInputUpdateExtent(int inExt[6], int outExt[6]);
00075   void ExecuteInformation(){this->vtkImageToImageFilter::ExecuteInformation();};
00076 private:
00077   vtkImagePadFilter(const vtkImagePadFilter&);  // Not implemented.
00078   void operator=(const vtkImagePadFilter&);  // Not implemented.
00079 };
00080 
00081 #endif
00082 
00083 
00084