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

vtkProgrammableFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkProgrammableFilter.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 =========================================================================*/
00058 #ifndef __vtkProgrammableFilter_h
00059 #define __vtkProgrammableFilter_h
00060 
00061 #include "vtkDataSetToDataSetFilter.h"
00062 
00063 class VTK_GRAPHICS_EXPORT vtkProgrammableFilter : public vtkDataSetToDataSetFilter
00064 {
00065 public:
00066   static vtkProgrammableFilter *New();
00067   vtkTypeRevisionMacro(vtkProgrammableFilter,vtkDataSetToDataSetFilter);
00068 
00071   void SetExecuteMethod(void (*f)(void *), void *arg);
00072 
00074   void SetExecuteMethodArgDelete(void (*f)(void *));
00075 
00080   vtkPolyData *GetPolyDataInput();
00081 
00083   vtkStructuredPoints *GetStructuredPointsInput();
00084 
00086   vtkStructuredGrid *GetStructuredGridInput();
00087 
00089   vtkUnstructuredGrid *GetUnstructuredGridInput();
00090 
00092   vtkRectilinearGrid *GetRectilinearGridInput();
00093 
00094 protected:
00095   vtkProgrammableFilter();
00096   ~vtkProgrammableFilter();
00097 
00098   void Execute();
00099 
00100   void (*ExecuteMethod)(void *); //function to invoke
00101   void (*ExecuteMethodArgDelete)(void *);
00102   void *ExecuteMethodArg;
00103   
00104 private:
00105   vtkProgrammableFilter(const vtkProgrammableFilter&);  // Not implemented.
00106   void operator=(const vtkProgrammableFilter&);  // Not implemented.
00107 };
00108 
00109 #endif
00110