VTK
dox/Imaging/vtkImageStencilAlgorithm.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkImageStencilAlgorithm.h
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 =========================================================================*/
00026 #ifndef __vtkImageStencilAlgorithm_h
00027 #define __vtkImageStencilAlgorithm_h
00028 
00029 
00030 #include "vtkAlgorithm.h"
00031 
00032 class vtkImageStencilData;
00033 
00034 class VTK_IMAGING_EXPORT vtkImageStencilAlgorithm : public vtkAlgorithm
00035 {
00036 public:
00037   static vtkImageStencilAlgorithm *New();
00038   vtkTypeMacro(vtkImageStencilAlgorithm, vtkAlgorithm);
00039 
00040   void PrintSelf(ostream& os, vtkIndent indent);
00041 
00043 
00044   void SetOutput(vtkImageStencilData *output);
00045   vtkImageStencilData *GetOutput();
00047 
00049 
00050   virtual int ProcessRequest(vtkInformation*,
00051                              vtkInformationVector**,
00052                              vtkInformationVector*);
00054 
00055 protected:
00056   vtkImageStencilAlgorithm();
00057   ~vtkImageStencilAlgorithm();
00058 
00059   virtual int RequestData(vtkInformation *, vtkInformationVector **,
00060                   vtkInformationVector *);
00061   virtual int RequestInformation(vtkInformation *, vtkInformationVector **,
00062                                  vtkInformationVector *);
00063   virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **,
00064                                   vtkInformationVector *);
00065   vtkImageStencilData *AllocateOutputData(vtkDataObject *out, int* updateExt);
00066 
00067   virtual int FillOutputPortInformation(int, vtkInformation*);
00068 
00069 private:
00070   vtkImageStencilAlgorithm(const vtkImageStencilAlgorithm&);  // Not implemented.
00071   void operator=(const vtkImageStencilAlgorithm&);  // Not implemented.
00072 };
00073 
00074 #endif