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

display_all(display) Display display_all(display)

NAME

display_all - a modeller to represent display data.

DESCRIPTION

Display_all takes as input a display_data (or display_filter) object, generating on output graphics primitives that represent the information in display_data. Display_all is a modeller, that is, it provides the usual methods of a modeller including transformation. Currently the information in the display_data object are points, lines, triangle strips, and polygons. The components of data in display_data may be turned on/off using the appropriate instance variables.

Display_all functions by creating instances of display_points, display_lines, display_polygons, and display_triangle_strips and then managing these. Alternatively, these instances may be set by the user for direct control of the data primitives (for example, to use the mask instance variable to turn on/off portions of the data).

SUPERCLASS

display_modeller

INSTANCE VARIABLES

display_points the name of the display_points object to display the points in display_data.

display_lines the name of the display_lines object to display the lines in display_data.

display_polygons the name of the display_polygons object to display the polygons in display_data.

display_triangle_strips the name of the display_triangle_strips object to display the triangle strips in display_data.

points_visibility boolean variable to turn on/off display of points.

lines_visibility boolean variable to turn on/off display of lines.

polygons_visibility boolean variable to turn on/off display of polygons.

triangle_strips_visibility boolean variable to turn on/off display of

triangle strips.

MESSAGES

display_points= name set the name of the display_points modeller.

display_points? name get the name of the display_points modeller.

display_lines= name set the name of the display_lines modeller.

display_lines? name get the name of the display_lines modeller.

display_polygons= name set the name of the display_polygons modeller.

display_polygons? name get the name of the display_polygons modeller.

display_triangle_strips= name set the name of the display_triangle_strips modeller.

display_triangle_strips? name get the name of the display_triangle_strips modeller.

points_on!, points_visibility_on! turn on the display of points.

points_off!, points_visibility_off! turn off the display of points.

points_visibility= value set the value of the points boolean instance variable. If =0, points are off, if !=0, points are on.

points_visibility? get the value of the points boolean instance variable.

lines_visibility_on!, lines_on! turn on the display of lines.

lines_visibility_off!, lines_off! turn off the display of lines.

lines_visibility= value set the value of the lines boolean instance variable. If =0, lines are off, if !=0, lines are on.

lines_visibility? get the value of the lines boolean instance variable.

polygons_visibility_on!, polygons_on! turn on the display of polygons.

polygons_visibility_off!, polygons_off! turn off the display of polygons.

polygons_visibility= value set the value of the polygons boolean instance variable. If =0, polygons are off, if !=0, polygons are on.

polygons_visibility? get the value of the polygons boolean instance variable.

triangle_strips_visibility_on!, triangle_strips_on! turn on the display of triangle_strips.

triangle_strips_visibility_off!, triangle_strips_off! turn off the display of triangle_strips.

triangle_strips_visibility= value set the value of the triangle_strips boolean instance variable. If =0, triangle_strips are off, if !=0, triangle_strips are on.

triangle_strips_visibility? get the value of the triangle_strips boolean instance variable.

all_on! turn on the display of all the componenets of display_data.

all_off! turn off the display of all the componenets of display_data.

EXAMPLE

In this example a structured grid set is read and a i,j,k plane of the grid is drawn. An outline of the object is displayed as well. Each object uses the display_all modeller.

/* * read in the data */ string new: data_name=bluntfin;

plot3d_reader new: areader

file_prefix=data_name ; /* * set up some displays */ display_geometry new: g1 data_in= areader extent=(1,100,1,100,1,1) ; display_all new: draw_g1 data_in= g1 range= [areader range?] ; actor new: a modeller=draw_g1 ; data_outline new: outline data_in= areader ; display_lines new: draw_outline data_in=outline ; actor new: outline_actor modeller= draw_outline ; camera new: acamera position=(1,1,1) range=[areader bounds?] default! on! ;

renderer new: main_renderer actors= [actor instances?] cameras= acamera render! ;

SEE ALSO

display_modeller, modeller, display_points, display_lines, display_polygons, display_triangle_strips, display_filter, display_geometry


Please send comments and suggestions to
consult@rpi.edu