<<<<<<<<<<<<<<<<<

generic_data(visage) VISAGE generic_data(visage)

NAME

generic_data - a data-structure class that holds vector data of arbitrary dimension

DESCRIPTION

This object is not intended to be manipulated directly by the user. It acts as a liason between the AVS field file reader and the "data_operator" class, which emulates instances of type "visage_scalar" and "visage_vector", with the ability to switch dynamically between the two. Scripts that use the AVS field file reader directly, rather than through the visage user interface, should know that the reader creates an instance of generic_data called "<filename>_gendata", where <filename> is the same of the AVS field file, without the ".fld" suffix.

SUPERCLASS

visage_data

INSTANCE VARIABLES

length is the size of the data in terms of the geometry, that is, the number of points at which the vector is defined. Therefore, the number of components of the vector is defined as size/length.

MESSAGES

length? Returns the number of points at which the vector quantity is defined.

length= Sets the number of points at which the vector quantity is defined. Used internally by the AVS field file reader.

EXAMPLE

avs_field_reader new: "areader" file_prefix="/home/kreskin/u0/volpe/oscar/data/curvilinear" read!;

visage_geometry new: p1 extent=(1,1,1,32,1,32);

data_operator new: curvilinear_scalardata; curvilinear_scalardata data_source= "curvilinear_gendata" selection=(1);

curvilinear_gridset displays=(outline,p1) scalar_data=curvilinear_scalardata;

actor new: a color=(1,1,1) modeller=curvilinear;

/* insert whatever code needed to display an actor. E.g., lights, cameras,

renderers */

SEE ALSO

avs_field_reader, data_operator


Please send comments and suggestions to
consult@rpi.edu