vtkProgrammableDataObjectSource.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00051 #ifndef __vtkProgrammableDataObjectSource_h
00052 #define __vtkProgrammableDataObjectSource_h
00053
00054 #include "vtkSource.h"
00055
00056 class VTK_GRAPHICS_EXPORT vtkProgrammableDataObjectSource : public vtkSource
00057 {
00058 public:
00059 static vtkProgrammableDataObjectSource *New();
00060 vtkTypeRevisionMacro(vtkProgrammableDataObjectSource,vtkSource);
00061 void PrintSelf(ostream& os, vtkIndent indent);
00062
00065 void SetExecuteMethod(void (*f)(void *), void *arg);
00066
00068 void SetExecuteMethodArgDelete(void (*f)(void *));
00069
00071
00072 vtkDataObject *GetOutput();
00073 vtkDataObject *GetOutput(int idx)
00074 {return (vtkDataObject *) this->vtkSource::GetOutput(idx); };
00076
00077 protected:
00078 vtkProgrammableDataObjectSource();
00079 ~vtkProgrammableDataObjectSource();
00080
00081 void Execute();
00082
00083 void (*ExecuteMethod)(void *);
00084 void (*ExecuteMethodArgDelete)(void *);
00085 void *ExecuteMethodArg;
00086 private:
00087 vtkProgrammableDataObjectSource(const vtkProgrammableDataObjectSource&);
00088 void operator=(const vtkProgrammableDataObjectSource&);
00089 };
00090
00091 #endif
00092