camera is the name of a camera instance for the renderer to use.
actor is the name of a actor instance for the renderer to use.
points is the name of a display_points instance for the actor to use as a modeller.
reader is the name of a dcube_reader object to read the points from the file.
filename? returns the filename for the current slice. This is simply the prefix instance variable. No default extension is assumed by the class.
resolution? returns the resolution.
display_points new: points data_in=read ;
actor new: a modeller=points ;
vector new: v = [points bbox?];
camera new: c1 range=v focal_point=(0,0,0) position=(0,0,-5) default! on! ;
dcube new: ren cameras=[camera instances?] actors="a" render! ;
mio_dcube new: jawlist renderer=`ren' camera=`c1' actor=`a' points=`points' reader=`read' prefix="/home/moose/u2/montnaro/oscar/viva/slices/jawlist" ;
xpseudo_color_visual new: the_visual
match! ;
xcolormap new: cmap visual= the_visual ;
string new: the_map = "cmap"; string new: cell_type = "xprivate_cells"; scalar new: number_of_cells = 256; -- found in .../scripts/x <grayscale
ivm_mapper new: mapper width= 512 height= 512 cells= the_cells image= jawlist ;
xz_pixmap new: image width=512 height=512 data=[mapper data?] create! ;
xwindow new: win
width=512 height=512 colormap: cmap create! map! ;