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

Imaging/vtkExtractVOI.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkExtractVOI.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 =========================================================================*/
00048 #ifndef __vtkExtractVOI_h
00049 #define __vtkExtractVOI_h
00050 
00051 #include "vtkImageToImageFilter.h"
00052 
00053 class VTK_IMAGING_EXPORT vtkExtractVOI : public vtkImageToImageFilter
00054 {
00055 public:
00056   vtkTypeRevisionMacro(vtkExtractVOI,vtkImageToImageFilter);
00057   void PrintSelf(ostream& os, vtkIndent indent);
00058 
00060   static vtkExtractVOI *New();
00061 
00063 
00066   vtkSetVector6Macro(VOI,int);
00067   vtkGetVectorMacro(VOI,int,6);
00069 
00071 
00075   vtkSetVector3Macro(SampleRate, int);
00076   vtkGetVectorMacro(SampleRate, int, 3);
00078 
00079 protected:
00080   vtkExtractVOI();
00081   ~vtkExtractVOI() {};
00082 
00083   virtual void ComputeInputUpdateExtent(int inExt[6], int outExt[6]);
00084   void ExecuteInformation(vtkImageData *input, vtkImageData *output);
00085   void ExecuteInformation(){this->vtkImageToImageFilter::ExecuteInformation();};
00086   virtual void ExecuteData(vtkDataObject *);
00087 
00088   int VOI[6];
00089   int SampleRate[3];
00090 private:
00091   vtkExtractVOI(const vtkExtractVOI&);  // Not implemented.
00092   void operator=(const vtkExtractVOI&);  // Not implemented.
00093 };
00094 
00095 #endif
00096 
00097