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

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 =========================================================================*/
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, double);
00068   vtkGetMacro(Tolerance, double);
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   void ExecuteInformation();
00079 
00080   double Tolerance;
00081   vtkOBBTree *OBBTree;
00082 
00083   virtual void ReportReferences(vtkGarbageCollector*);
00084   virtual void RemoveReferences();
00085   virtual int FillInputPortInformation(int, vtkInformation*);
00086 private:
00087   vtkPolyDataToImageStencil(const vtkPolyDataToImageStencil&);  // Not implemented.
00088   void operator=(const vtkPolyDataToImageStencil&);  // Not implemented.
00089 };
00090 
00091 #endif