VTK
|
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 "vtkImagingCoreModule.h" // For export macro 00031 #include "vtkAlgorithm.h" 00032 00033 class vtkImageStencilData; 00034 00035 class VTKIMAGINGCORE_EXPORT vtkImageStencilAlgorithm : public vtkAlgorithm 00036 { 00037 public: 00038 static vtkImageStencilAlgorithm *New(); 00039 vtkTypeMacro(vtkImageStencilAlgorithm, vtkAlgorithm); 00040 00041 void PrintSelf(ostream& os, vtkIndent indent); 00042 00044 00045 void SetOutput(vtkImageStencilData *output); 00046 vtkImageStencilData *GetOutput(); 00048 00050 00051 virtual int ProcessRequest(vtkInformation*, 00052 vtkInformationVector**, 00053 vtkInformationVector*); 00055 00056 protected: 00057 vtkImageStencilAlgorithm(); 00058 ~vtkImageStencilAlgorithm(); 00059 00060 virtual int RequestData(vtkInformation *, vtkInformationVector **, 00061 vtkInformationVector *); 00062 virtual int RequestInformation(vtkInformation *, vtkInformationVector **, 00063 vtkInformationVector *); 00064 virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, 00065 vtkInformationVector *); 00066 vtkImageStencilData *AllocateOutputData(vtkDataObject *out, int* updateExt); 00067 00068 virtual int FillOutputPortInformation(int, vtkInformation*); 00069 00070 private: 00071 vtkImageStencilAlgorithm(const vtkImageStencilAlgorithm&); // Not implemented. 00072 void operator=(const vtkImageStencilAlgorithm&); // Not implemented. 00073 }; 00074 00075 #endif