Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

vtkProgrammableDataObjectSource Class Reference

generate source data object via a user-specified function. More...

#include <vtkProgrammableDataObjectSource.h>

Inheritance diagram for vtkProgrammableDataObjectSource:

Inheritance graph
[legend]
Collaboration diagram for vtkProgrammableDataObjectSource:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
void SetExecuteMethod (void(*f)(void *), void *arg)
void SetExecuteMethodArgDelete (void(*f)(void *))
vtkDataObjectGetOutput ()
vtkDataObjectGetOutput (int idx)

Static Public Methods

vtkProgrammableDataObjectSource * New ()
int IsTypeOf (const char *type)
vtkProgrammableDataObjectSource * SafeDownCast (vtkObject *o)

Protected Methods

 vtkProgrammableDataObjectSource ()
 ~vtkProgrammableDataObjectSource ()
 vtkProgrammableDataObjectSource (const vtkProgrammableDataObjectSource &)
void operator= (const vtkProgrammableDataObjectSource &)
void Execute ()

Protected Attributes

void(* ExecuteMethod )(void *)
void(* ExecuteMethodArgDelete )(void *)
void * ExecuteMethodArg

Detailed Description

generate source data object via a user-specified function.

Date:
2000/12/10 20:08:48
Revision:
1.13

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)

Definition at line 70 of file vtkProgrammableDataObjectSource.h.


Constructor & Destructor Documentation

vtkProgrammableDataObjectSource::vtkProgrammableDataObjectSource   [protected]
 

vtkProgrammableDataObjectSource::~vtkProgrammableDataObjectSource   [protected]
 

vtkProgrammableDataObjectSource::vtkProgrammableDataObjectSource const vtkProgrammableDataObjectSource &    [inline, protected]
 

Definition at line 92 of file vtkProgrammableDataObjectSource.h.


Member Function Documentation

vtkProgrammableDataObjectSource* vtkProgrammableDataObjectSource::New   [static]
 

Instantiate object with no start, end, or progress methods.

Reimplemented from vtkSource.

virtual const char* vtkProgrammableDataObjectSource::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 vtkSource.

int vtkProgrammableDataObjectSource::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 vtkSource.

virtual int vtkProgrammableDataObjectSource::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 vtkSource.

vtkProgrammableDataObjectSource* vtkProgrammableDataObjectSource::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 vtkSource.

void vtkProgrammableDataObjectSource::PrintSelf ostream &    os,
vtkIndent    indent
[virtual]
 

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkSource.

void vtkProgrammableDataObjectSource::SetExecuteMethod void(*    f)(void *),
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(*    f)(void *)
 

Set the arg delete method. This is used to free user memory.

vtkDataObject* vtkProgrammableDataObjectSource::GetOutput  
 

Get the output data object.

vtkDataObject* vtkProgrammableDataObjectSource::GetOutput int    idx [inline]
 

Reimplemented from vtkSource.

Definition at line 86 of file vtkProgrammableDataObjectSource.h.

void vtkProgrammableDataObjectSource::operator= const vtkProgrammableDataObjectSource &    [inline, protected]
 

Definition at line 93 of file vtkProgrammableDataObjectSource.h.

void vtkProgrammableDataObjectSource::Execute   [protected, virtual]
 

Reimplemented from vtkSource.


Member Data Documentation

void(* vtkProgrammableDataObjectSource::ExecuteMethod)(void *) [protected]
 

void(* vtkProgrammableDataObjectSource::ExecuteMethodArgDelete)(void *) [protected]
 

void* vtkProgrammableDataObjectSource::ExecuteMethodArg [protected]
 

Definition at line 99 of file vtkProgrammableDataObjectSource.h.


The documentation for this class was generated from the following file:
Generated on Wed Nov 21 12:57:52 2001 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001