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

vtkImplicitFunctionToImageStencil.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkImplicitFunctionToImageStencil.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 =========================================================================*/
00041 #ifndef __vtkImplicitFunctionToImageStencil_h
00042 #define __vtkImplicitFunctionToImageStencil_h
00043 
00044 
00045 #include "vtkImageStencilSource.h"
00046 
00047 class vtkImplicitFunction;
00048 
00049 class VTK_IMAGING_EXPORT vtkImplicitFunctionToImageStencil : public vtkImageStencilSource
00050 {
00051 public:
00052   static vtkImplicitFunctionToImageStencil *New();
00053   vtkTypeRevisionMacro(vtkImplicitFunctionToImageStencil, vtkImageStencilSource);
00054   void PrintSelf(ostream& os, vtkIndent indent);
00055 
00057 
00058   virtual void SetInput(vtkImplicitFunction*);
00059   vtkGetObjectMacro(Input, vtkImplicitFunction);
00061 
00063 
00064   vtkSetMacro(Threshold, double);
00065   vtkGetMacro(Threshold, double);
00067 
00068 protected:
00069   vtkImplicitFunctionToImageStencil();
00070   ~vtkImplicitFunctionToImageStencil();
00071 
00072   void ThreadedExecute(vtkImageStencilData *output,
00073                        int extent[6], int threadId);
00074 
00075   void ExecuteInformation();
00076   
00077   vtkImplicitFunction *Input;
00078   double Threshold;
00079 private:
00080   vtkImplicitFunctionToImageStencil(const vtkImplicitFunctionToImageStencil&);  // Not implemented.
00081   void operator=(const vtkImplicitFunctionToImageStencil&);  // Not implemented.
00082 };
00083 
00084 #endif
00085