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 
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 __vtkPolyDataToImageStencil_h
00032 #define __vtkPolyDataToImageStencil_h
00033 
00034 
00035 #include "vtkImageStencilSource.h"
00036 
00037 class vtkPolyData;
00038 class vtkOBBTree;
00039 
00040 class VTK_HYBRID_EXPORT vtkPolyDataToImageStencil : public vtkImageStencilSource
00041 {
00042 public:
00043   static vtkPolyDataToImageStencil *New();
00044   vtkTypeRevisionMacro(vtkPolyDataToImageStencil, vtkImageStencilSource);
00045   void PrintSelf(ostream& os, vtkIndent indent);
00046 
00048 
00049   void SetInput(vtkPolyData *input);
00050   vtkPolyData *GetInput();
00052 
00054 
00055   vtkSetMacro(Tolerance, double);
00056   vtkGetMacro(Tolerance, double);
00058 
00059 protected:
00060   vtkPolyDataToImageStencil();
00061   ~vtkPolyDataToImageStencil();
00062 
00063   void ExecuteData(vtkDataObject *out);
00064   void ThreadedExecute(vtkImageStencilData *output,
00065                        int extent[6], int threadId);
00066 
00067   double Tolerance;
00068   vtkOBBTree *OBBTree;
00069 private:
00070   vtkPolyDataToImageStencil(const vtkPolyDataToImageStencil&);  // Not implemented.
00071   void operator=(const vtkPolyDataToImageStencil&);  // Not implemented.
00072 };
00073 
00074 #endif