vtkProgrammableFilter.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
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 *);
00101 void (*ExecuteMethodArgDelete)(void *);
00102 void *ExecuteMethodArg;
00103
00104 private:
00105 vtkProgrammableFilter(const vtkProgrammableFilter&);
00106 void operator=(const vtkProgrammableFilter&);
00107 };
00108
00109 #endif
00110