43 #ifndef __vtkProgrammableSource_h
44 #define __vtkProgrammableSource_h
46 #include "vtkFiltersSourcesModule.h"
47 #include "vtkDataSetAlgorithm.h"
50 class vtkStructuredPoints;
51 class vtkStructuredGrid;
52 class vtkUnstructuredGrid;
53 class vtkRectilinearGrid;
68 typedef void (*ProgrammableMethodCallbackType)(
void *arg);
72 void SetExecuteMethod(
void (*f)(
void *),
void *arg);
75 void SetExecuteMethodArgDelete(
void (*f)(
void *));
79 void SetRequestInformationMethod(
void (*f)(
void *));
85 vtkPolyData *GetPolyDataOutput();
88 vtkStructuredPoints *GetStructuredPointsOutput();
91 vtkStructuredGrid *GetStructuredGridOutput();
94 vtkUnstructuredGrid *GetUnstructuredGridOutput();
97 vtkRectilinearGrid *GetRectilinearGridOutput();
103 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
104 virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
105 virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
ProgrammableMethodCallbackType ExecuteMethodArgDelete
ProgrammableMethodCallbackType ExecuteMethod
ProgrammableMethodCallbackType RequestInformationMethod
generate source dataset via a user-specified function