#include <vtkProgrammableFilter.h>
Inheritance diagram for vtkProgrammableFilter:
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.
Definition at line 54 of file vtkProgrammableFilter.h.
Public Types | |
typedef vtkDataSetToDataSetFilter | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | SetExecuteMethod (void(*f)(void *), void *arg) |
void | SetExecuteMethodArgDelete (void(*f)(void *)) |
vtkPolyData * | GetPolyDataInput () |
vtkStructuredPoints * | GetStructuredPointsInput () |
vtkStructuredGrid * | GetStructuredGridInput () |
vtkUnstructuredGrid * | GetUnstructuredGridInput () |
vtkRectilinearGrid * | GetRectilinearGridInput () |
Static Public Member Functions | |
vtkProgrammableFilter * | New () |
int | IsTypeOf (const char *type) |
vtkProgrammableFilter * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkProgrammableFilter () | |
~vtkProgrammableFilter () | |
void | Execute () |
Protected Attributes | |
void(* | ExecuteMethod )(void *) |
void(* | ExecuteMethodArgDelete )(void *) |
void * | ExecuteMethodArg |
|
Reimplemented from vtkDataSetToDataSetFilter. Definition at line 58 of file vtkProgrammableFilter.h. |
|
|
|
|
|
Create an object with Debug turned off, modified time initialized to zero, and reference counting on. Reimplemented from vtkObject.
|
|
Reimplemented from vtkDataSetToDataSetFilter.
|
|
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkDataSetToDataSetFilter.
|
|
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkDataSetToDataSetFilter.
|
|
Reimplemented from vtkDataSetToDataSetFilter.
|
|
Specify the function to use to operate on the point attribute data. Note that the function takes a single (void *) argument. |
|
Set the arg delete method. This is used to free user memory. |
|
Get the input as a concrete type. This method is typically used by the writer of the filter function to get the input as a particular type (i.e., it essentially does type casting). It is the users responsibility to know the correct type of the input data. |
|
Get the input as a concrete type. |
|
Get the input as a concrete type. |
|
Get the input as a concrete type. |
|
Get the input as a concrete type. |
|
This method is the old style execute method Reimplemented from vtkSource.
|
|
|
|
|
|
Definition at line 93 of file vtkProgrammableFilter.h. |