generate source data object via a user-specified function
More...
#include <vtkProgrammableDataObjectSource.h>
Inherits vtkDataObjectAlgorithm.
generate source data object via a user-specified function
vtkProgrammableDataObjectSource is a source object that is programmable by the user. The output of the filter is a data object (vtkDataObject) which represents data via an instance of field data. To use this object, you must specify a function that creates the output.
Example use of this filter includes reading tabular data and encoding it as vtkFieldData. You can then use filters like vtkDataObjectToDataSetFilter to convert the data object to a dataset and then visualize it. Another important use of this class is that it allows users of interpreters (e.g., Tcl or Java) the ability to write source objects without having to recompile C++ code or generate new libraries.
- See Also
- vtkProgrammableFilter vtkProgrammableAttributeDataFilter vtkProgrammableSource vtkDataObjectToDataSetFilter
- Examples:
- vtkProgrammableDataObjectSource (Examples)
- Tests:
- vtkProgrammableDataObjectSource (Tests)
Definition at line 47 of file vtkProgrammableDataObjectSource.h.
typedef void(* vtkProgrammableDataObjectSource::ProgrammableMethodCallbackType)(void *arg) |
Signature definition for programmable method callbacks. Methods passed to SetExecuteMethod or SetExecuteMethodArgDelete must conform to this signature. The presence of this typedef is useful for reference and for external analysis tools, but it cannot be used in the method signatures in these header files themselves because it prevents the internal VTK wrapper generators from wrapping these methods.
Definition at line 61 of file vtkProgrammableDataObjectSource.h.
vtkProgrammableDataObjectSource::vtkProgrammableDataObjectSource |
( |
| ) |
|
|
protected |
vtkProgrammableDataObjectSource::~vtkProgrammableDataObjectSource |
( |
| ) |
|
|
protected |
static int vtkProgrammableDataObjectSource::IsTypeOf |
( |
const char * |
type | ) |
|
|
static |
virtual int vtkProgrammableDataObjectSource::IsA |
( |
const char * |
type | ) |
|
|
virtual |
virtual vtkObjectBase* vtkProgrammableDataObjectSource::NewInstanceInternal |
( |
| ) |
const |
|
protectedvirtual |
void vtkProgrammableDataObjectSource::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
| |
void vtkProgrammableDataObjectSource::SetExecuteMethod |
( |
void(*)(void *) |
f, |
|
|
void * |
arg |
|
) |
| |
Specify the function to use to generate the output data object. Note that the function takes a single (void *) argument.
void vtkProgrammableDataObjectSource::SetExecuteMethodArgDelete |
( |
void(*)(void *) |
f | ) |
|
Set the arg delete method. This is used to free user memory.
virtual int vtkProgrammableDataObjectSource::RequestData |
( |
vtkInformation * |
, |
|
|
vtkInformationVector ** |
, |
|
|
vtkInformationVector * |
|
|
) |
| |
|
protectedvirtual |
void* vtkProgrammableDataObjectSource::ExecuteMethodArg |
|
protected |
The documentation for this class was generated from the following file: