Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound 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 =========================================================================*/
00043 #ifndef __vtkPolyDataToImageStencil_h
00044 #define __vtkPolyDataToImageStencil_h
00045 
00046 
00047 #include "vtkImageStencilSource.h"
00048 
00049 class vtkPolyData;
00050 class vtkOBBTree;
00051 
00052 class VTK_HYBRID_EXPORT vtkPolyDataToImageStencil : public vtkImageStencilSource
00053 {
00054 public:
00055   static vtkPolyDataToImageStencil *New();
00056   vtkTypeRevisionMacro(vtkPolyDataToImageStencil, vtkImageStencilSource);
00057   void PrintSelf(ostream& os, vtkIndent indent);
00058 
00060 
00061   void SetInput(vtkPolyData *input);
00062   vtkPolyData *GetInput();
00064 
00066 
00067   vtkSetMacro(Tolerance, float);
00068   vtkGetMacro(Tolerance, float);
00070 
00071 protected:
00072   vtkPolyDataToImageStencil();
00073   ~vtkPolyDataToImageStencil();
00074 
00075   void ExecuteData(vtkDataObject *out);
00076   void ThreadedExecute(vtkImageStencilData *output,
00077                        int extent[6], int threadId);
00078 
00079   float Tolerance;
00080   vtkOBBTree *OBBTree;
00081 private:
00082   vtkPolyDataToImageStencil(const vtkPolyDataToImageStencil&);  // Not implemented.
00083   void operator=(const vtkPolyDataToImageStencil&);  // Not implemented.
00084 };
00085 
00086 #endif