cdf_modeller(netcdf) VISAGE I/O" cdf_modeller(netcdf)
NAME
cdf_modeller - a modeller for netCDF files containing display_data
DESCRIPTION
The cdf_modeller is a convenience object that interfaces
the cdf_display_data_reader with modeller functionality.
That is, it reads netCDF display_data and then can be used
to draw it.
The cdf_modeller delegates all unrecognized messages to
its cdf_display_data_reader. Hence cdf_modeller responds
to all messages that the cdf_display_data_reader does
(e.g., "points_on!", "scalars_off!", etc).
Because the cdf_modeller is a subclass of new_modeller, it
responds to the "data?" message and can be used in the
display_data pipeline. In addition, cdf_modeller also
inherits the convenience routines from new_modeller (e.g.,
output!).
SUPERCLASS
new_modeller
INSTANCE VARIABLES
cdf_reader
the name of the cdf_display_data_reader used to
read the netCDF files. This is usually created
automatically.
cdf_reader= reader_name
Set the name of the reader instance.
cdf_reader?
Get the name of the reader instance.
EXAMPLE
/*
* Read a netCDF file and display it.
*/
cdf_modeller new: cdf
filename=`dd.cdf'
;
actor new: anactor
modeller=cdf
;
/*
* Create rendering stuff
*/
renderer new: aren
actors=[actor instances?]
render!
;
SEE ALSO
new_modeller, cdf_display_data_reader, display_data, display_filter
Please send comments and suggestions toconsult@rpi.edu