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

Imaging/vtkImageStencilSource.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkImageStencilSource.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 =========================================================================*/
00035 #ifndef __vtkImageStencilSource_h
00036 #define __vtkImageStencilSource_h
00037 
00038 
00039 #include "vtkSource.h"
00040 
00041 class vtkImageStencilData;
00042 
00043 class VTK_IMAGING_EXPORT vtkImageStencilSource : public vtkSource
00044 {
00045 public:
00046   static vtkImageStencilSource *New();
00047   vtkTypeRevisionMacro(vtkImageStencilSource, vtkSource);
00048 
00049   void PrintSelf(ostream& os, vtkIndent indent);
00050 
00052 
00053   void SetOutput(vtkImageStencilData *output);
00054   vtkImageStencilData *GetOutput();
00056 
00057 protected:
00058   vtkImageStencilSource();
00059   ~vtkImageStencilSource();
00060 
00061   void ExecuteData(vtkDataObject *out);
00062   vtkImageStencilData *AllocateOutputData(vtkDataObject *out);
00063 
00065 
00069   virtual void ThreadedExecute(vtkImageStencilData *output,
00070                                int extent[6], int threadId);
00072 private:
00073   vtkImageStencilSource(const vtkImageStencilSource&);  // Not implemented.
00074   void operator=(const vtkImageStencilSource&);  // Not implemented.
00075 };
00076 
00077 #endif