Main Page Class Hierarchy Alphabetical List Compound List Compound Members Related Pages
vtkProgrammableFilter Class Reference
a user-programmable filter.
More...
#include <vtkProgrammableFilter.h>
Inheritance diagram for vtkProgrammableFilter:
[legend]Collaboration diagram for vtkProgrammableFilter:
[legend]List of all members.
Detailed Description
a user-programmable filter.
-
Date:
-
2000/12/10 20:08:48
-
Revision:
-
1.15
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.
-
Warning:
-
The filter correctly manages 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:
-
vtkProgrammablePointDataFilter vtkProgrammableSource
-
Examples:
-
vtkProgrammableFilter (examples)
Member Function Documentation
virtual const char* vtkProgrammableFilter::GetClassName |
( |
|
) |
[virtual] |
|
|
Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkDataSetToDataSetFilter. |
vtkPolyData* vtkProgrammableFilter::GetPolyDataInput |
( |
|
) |
|
|
|
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. |
virtual int vtkProgrammableFilter::IsA |
( |
const char * |
type |
) |
[virtual] |
|
|
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 vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkDataSetToDataSetFilter. |
int vtkProgrammableFilter::IsTypeOf |
( |
const char * |
type |
) |
[static] |
|
|
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 vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkDataSetToDataSetFilter. |
vtkProgrammableFilter* vtkProgrammableFilter::New |
( |
|
) |
[static] |
|
|
Instantiate object with no start, end, or progress methods.
Reimplemented from vtkDataSetSource. |
vtkProgrammableFilter* vtkProgrammableFilter::SafeDownCast |
( |
vtkObject * |
o |
) |
[static] |
|
|
Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkDataSetToDataSetFilter. |
void vtkProgrammableFilter::SetExecuteMethod |
( |
void(* |
f)(void *), |
|
|
void * |
arg |
|
) |
|
|
|
Specify the function to use to operate on the point attribute data. Note that the function takes a single (void *) argument. |
void vtkProgrammableFilter::SetExecuteMethodArgDelete |
( |
void(* |
f)(void *) |
) |
|
|
|
Set the arg delete method. This is used to free user memory. |
The documentation for this class was generated from the following file:
Generated on Tue Mar 19 13:31:30 2002 for VTK by
1.2.14 written by Dimitri van Heesch,
© 1997-2002