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

vtkImagePadFilter.h

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