Imaging/vtkImageStencilSource.h Source File

Main Page Class Hierarchy Alphabetical List Compound List File List Compound 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 =========================================================================*/
    00047 #ifndef __vtkImageStencilSource_h
    00048 #define __vtkImageStencilSource_h
    00049
    00050
    00051 #include "vtkSource.h"
    00052
    00053 class vtkImageStencilData;
    00054
    00055 class VTK_IMAGING_EXPORT vtkImageStencilSource : public vtkSource
    00056 {
    00057 public:
    00058   static vtkImageStencilSource *New();
    00059   vtkTypeRevisionMacro(vtkImageStencilSource, vtkSource);
    00060
    00061   void PrintSelf(ostream& os, vtkIndent indent);
    00062
    00064
    00065   void SetOutput(vtkImageStencilData *output);
    00066   vtkImageStencilData *GetOutput();
    00068
    00069 protected:
    00070   vtkImageStencilSource();
    00071   ~vtkImageStencilSource();
    00072
    00073   void ExecuteData(vtkDataObject *out);
    00074   vtkImageStencilData *AllocateOutputData(vtkDataObject *out);
    00075
    00077
    00081   virtual void ThreadedExecute(vtkImageStencilData *output,
    00082                                int extent[6], int threadId);
    00084 private:
    00085   vtkImageStencilSource(const vtkImageStencilSource&);  // Not implemented.
    00086   void operator=(const vtkImageStencilSource&);  // Not implemented.
    00087 };
    00088
    00089 #endif