vtkProgrammableFilter - a user-programmable filter
Super Class: vtkFilter
Description:
vtkProgrammableFilter is a filter that can be programmed by the user. To use the filter you define a function that retrieves input of the correct type, creates data, and then manipulates the output of the filter. Using this filter avoids the need for subclassing - and the function can be defined in an interpreter wrapper language such as Tcl or Java. The trickiest part of using this filter is that the input and output methods are unusual and cannot be compile-time type checked. Instead, as a user of this filter it is your responsibility to set and get the correct input and output types.
Caveats:
The filter correctlymanages modified time and network execution in most cases. However, if you change the definition of the filter function, you'll want to send a manual Modified() method to the filter to force it to reexecute.
See Also:
Methods:
void vtkProgrammableFilter () | |
void vtkProgrammableFilter () | |
static vtkProgrammableFilter *New () | |
const char *GetClassName () | |
void PrintSelf (unknown & ,vtkIndent ) | |
void SetExecuteMethod (const ) | |
void SetExecuteMethodArgDelete (const ) | |
void SetInput (vtkDataSet *) | |
vtkPolyData *GetPolyDataInput () | |
vtkStructuredPoints *GetStructuredPointsInput () | |
vtkStructuredGrid *GetStructuredGridInput () | |
vtkUnstructuredGrid *GetUnstructuredGridInput () | |
vtkRectilinearGrid *GetRectilinearGridInput () | |
vtkPolyData *GetPolyDataOutput () | |
vtkStructuredPoints *GetStructuredPointsOutput () | |
vtkStructuredGrid *GetStructuredGridOutput () | |
vtkUnstructuredGrid *GetUnstructuredGridOutput () | |
vtkRectilinearGrid *GetRectilinearGridOutput () | |
void Execute () |
Detailed Method Descriptions:
void SetExecuteMethod (const ) |
void SetExecuteMethodArgDelete (const ) |
void SetInput (vtkDataSet *) |
vtkPolyData *GetPolyDataInput () |
vtkPolyData *GetPolyDataOutput () |