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

Graphics/vtkProgrammableFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkProgrammableFilter.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 =========================================================================*/
00049 #ifndef __vtkProgrammableFilter_h
00050 #define __vtkProgrammableFilter_h
00051 
00052 #include "vtkDataSetToDataSetFilter.h"
00053 
00054 class VTK_GRAPHICS_EXPORT vtkProgrammableFilter : public vtkDataSetToDataSetFilter
00055 {
00056 public:
00057   static vtkProgrammableFilter *New();
00058   vtkTypeRevisionMacro(vtkProgrammableFilter,vtkDataSetToDataSetFilter);
00059 
00062   void SetExecuteMethod(void (*f)(void *), void *arg);
00063 
00065   void SetExecuteMethodArgDelete(void (*f)(void *));
00066 
00071   vtkPolyData *GetPolyDataInput();
00072 
00074   vtkStructuredPoints *GetStructuredPointsInput();
00075 
00077   vtkStructuredGrid *GetStructuredGridInput();
00078 
00080   vtkUnstructuredGrid *GetUnstructuredGridInput();
00081 
00083   vtkRectilinearGrid *GetRectilinearGridInput();
00084 
00085 protected:
00086   vtkProgrammableFilter();
00087   ~vtkProgrammableFilter();
00088 
00089   void Execute();
00090 
00091   void (*ExecuteMethod)(void *); //function to invoke
00092   void (*ExecuteMethodArgDelete)(void *);
00093   void *ExecuteMethodArg;
00094   
00095 private:
00096   vtkProgrammableFilter(const vtkProgrammableFilter&);  // Not implemented.
00097   void operator=(const vtkProgrammableFilter&);  // Not implemented.
00098 };
00099 
00100 #endif
00101