All public instance variables are inherited from its superclasses. In particular the scalar_visibility instance variable is used to control whether the scalar data colors the output primitives (if scalar data is present in the input display_data), and the range instance variable controls the mapping of the scalar data through the lookup table.
Masks may also be used to specify which points are visible. The mask is a list of zero/non-zero values corresponding to the points in display_data. A non-zero mask value indicates that a line should be drawn, a value of zero indicates that the line should not be drawn. By default, all points are drawn.
/* * read in the data */ string new: data_name=case1;
plot3d_reader new: areader file_prefix=data_name read! ; /* * Set up the data set */ string new: data_set = data_name + "_gridset01"; string new: geometry = data_set + "_grid";
string new: scalar_data = data_set + "_velocity.magnitude"; string new: vector_data = data_set + "_velocity";
object# data_set scalar_data= scalar_data vector_data= vector_data compute_properties! ; /* * set up some displays */ display_geometry new: g1 data_in= data_set extent=(1,100,10,10,10,10) ; display_all new: draw_g1 data_in= g1 range= ([object# scalar_data range?]) ; actor new: a modeller=draw_g1 ; display_outline new: outline data_in= data_set ; display_points new: draw_outline data_in=outline ; actor new: outline_actor modeller= draw_outline ; vector new: bbox dimension=6; bbox = ([object# data_set bounds?]); camera new: acamera position=(1,1,1) x_range=([bbox @1 ?],[bbox @2 ?]) y_range=([bbox @3 ?],[bbox @4 ?]) z_range=([bbox @5 ?],[bbox @6 ?]) default! on! ;
light new: alight position=(30,30,50) on! ;
logic new: test; environment new: _env variable="LYMB_RENDERER"; test = [_env defined?] false: "#Environment variable LYMB_RENDERER must be set." false: "parser exit!;" ;
string new: current_renderer = [_env value?];
object# current_renderer new: main_renderer actors=([actor instances?]) lights=alight cameras=acamera render! ; /* * Create a control panel to manipulate object */ environment new: _display variable="DISPLAY";
test = [_display defined?]
false: "# Please define DISPLAY variable"
false: "ui exit!;"
true: "
SEE ALSO
display_modeller, modeller, display_all, display_surface,
display_data, display_filter, data_outline
Please send comments and suggestions toconsult@rpi.edu