00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkImageStencilSource.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 =========================================================================*/ 00043 #ifndef __vtkImageStencilSource_h 00044 #define __vtkImageStencilSource_h 00045 00046 00047 #include "vtkSource.h" 00048 00049 class vtkImageStencilData; 00050 00051 class VTK_IMAGING_EXPORT vtkImageStencilSource : public vtkSource 00052 { 00053 public: 00054 static vtkImageStencilSource *New(); 00055 vtkTypeRevisionMacro(vtkImageStencilSource, vtkSource); 00056 00057 void PrintSelf(ostream& os, vtkIndent indent); 00058 00060 00061 void SetOutput(vtkImageStencilData *output); 00062 vtkImageStencilData *GetOutput(); 00064 00065 protected: 00066 vtkImageStencilSource(); 00067 ~vtkImageStencilSource(); 00068 00069 void ExecuteData(vtkDataObject *out); 00070 vtkImageStencilData *AllocateOutputData(vtkDataObject *out); 00071 00073 00077 virtual void ThreadedExecute(vtkImageStencilData *output, 00078 int extent[6], int threadId); 00080 00081 virtual int FillOutputPortInformation(int, vtkInformation*); 00082 private: 00083 vtkImageStencilSource(const vtkImageStencilSource&); // Not implemented. 00084 void operator=(const vtkImageStencilSource&); // Not implemented. 00085 }; 00086 00087 #endif