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 =========================================================================*/ 00031 #ifndef __vtkImageStencilSource_h 00032 #define __vtkImageStencilSource_h 00033 00034 00035 #include "vtkSource.h" 00036 00037 class vtkImageStencilData; 00038 00039 class VTK_IMAGING_EXPORT vtkImageStencilSource : public vtkSource 00040 { 00041 public: 00042 static vtkImageStencilSource *New(); 00043 vtkTypeRevisionMacro(vtkImageStencilSource, vtkSource); 00044 00045 void PrintSelf(ostream& os, vtkIndent indent); 00046 00048 00049 void SetOutput(vtkImageStencilData *output); 00050 vtkImageStencilData *GetOutput(); 00052 00053 protected: 00054 vtkImageStencilSource(); 00055 ~vtkImageStencilSource(); 00056 00057 void ExecuteData(vtkDataObject *out); 00058 vtkImageStencilData *AllocateOutputData(vtkDataObject *out); 00059 00061 00065 virtual void ThreadedExecute(vtkImageStencilData *output, 00066 int extent[6], int threadId); 00068 private: 00069 vtkImageStencilSource(const vtkImageStencilSource&); // Not implemented. 00070 void operator=(const vtkImageStencilSource&); // Not implemented. 00071 }; 00072 00073 #endif