dd_function_filter(display) Display dd_function_filter(display)
NAME
dd_function_filter - a display_data filter which computes
simple functions of points, vectors, scalars, and/or normals by delegating the actual computation to a function
object.
DESCRIPTION
The dd_function_filter relieves the filter programmer from
much of the tedium involved with writing simple display_data filters. Sometimes the operation that a filter
performs is relatively simple, and involves merely computing new points, scalars, normals, vectors, and/or texture_coords from existing ones. Rather than going through
the overhead of writing a generate_data method for a filter, which involves getting the source data, mallocing
storage, updating the data out, and freeing storage, the
dd_function_filter will do all of that for you, and compute your data_out using a function object (subclass of
generic_function) that you supply by name.
SUPERCLASS
display_filter
INSTANCE VARIABLES
function
The name of an instance of a subclass of
generic_function which computes the function of
interest on the data_in.
MESSAGES
function[?=]
Standard string set and get messages.
generate_data!
Generate data_out from data_in using named function
object.
EXAMPLE
See man page for dipole_potential for an example of using
this object.
SEE ALSO
generic_function ds_function_filter dipole_potential
Please send comments and suggestions toconsult@rpi.edu