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

Hybrid/vtkPolyDataToImageStencil.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkPolyDataToImageStencil.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 =========================================================================*/
00042 #ifndef __vtkPolyDataToImageStencil_h
00043 #define __vtkPolyDataToImageStencil_h
00044 
00045 
00046 #include "vtkImageStencilSource.h"
00047 
00048 class vtkPolyData;
00049 class vtkOBBTree;
00050 
00051 class VTK_HYBRID_EXPORT vtkPolyDataToImageStencil : public vtkImageStencilSource
00052 {
00053 public:
00054   static vtkPolyDataToImageStencil *New();
00055   vtkTypeRevisionMacro(vtkPolyDataToImageStencil, vtkImageStencilSource);
00056   void PrintSelf(ostream& os, vtkIndent indent);
00057 
00059 
00060   void SetInput(vtkPolyData *input);
00061   vtkPolyData *GetInput();
00063 
00065 
00066   vtkSetMacro(Tolerance, float);
00067   vtkGetMacro(Tolerance, float);
00069 
00070 protected:
00071   vtkPolyDataToImageStencil();
00072   ~vtkPolyDataToImageStencil();
00073 
00074   void ExecuteData(vtkDataObject *out);
00075   void ThreadedExecute(vtkImageStencilData *output,
00076                        int extent[6], int threadId);
00077 
00078   float Tolerance;
00079   vtkOBBTree *OBBTree;
00080 private:
00081   vtkPolyDataToImageStencil(const vtkPolyDataToImageStencil&);  // Not implemented.
00082   void operator=(const vtkPolyDataToImageStencil&);  // Not implemented.
00083 };
00084 
00085 #endif