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

mio_dcube(mio) Volume I/O mio_dcube(mio)

NAME

mio_dcube - convert dividing cubes points files into an image that can be displayed like other mio images.

DESCRIPTION

This class reads dividing cubes points lists and generates an 8-bit 512x512 image. It does this with the support of the dcube and dcube_reader classes.

SUPERCLASS

mio_8bit

INSTANCE VARIABLES

renderer is the name of a dcube instance to render the image.

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.

MESSAGES

There are set (=) and get (?) messages for each of the instance variables listed above.

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.

EXAMPLE

dcube_reader new: read filename="/home/moose/u2/montnaro/oscar/viva/slices/jawlist" ;

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! ;

SEE ALSO

mio, mio_8bit


Please send comments and suggestions to
consult@rpi.edu