file_format is the image file format. This format should correspond to an mio class. For example, if this file format is 2d, the mio_2d class will be used to read the image.
depth is the depth of the generated xpixmap. The default is 8.
height is the height of the generated xpixmap.
ivm_mapper is the name of an ivm_mapper object to map the raw mio data into the xpixmap object.
mio is the name of the mio object from which the ivm_pixmap gets its data.
prefix is the mio datafile prefix.
slice_number is the current mio slice.
width is the width of the generated xpixmap.
file_format? returns the value of the file_format instance variable.
height? returns the height of the xpixmap.
ivm_mapper? returns the name of the ivm_mapper object.
mio? returns the name of the mio object.
prefix? returns the value of the prefix instance variable.
slice_number? slice? returns the current slice number
width? returns the width of the xpixmap.
xpixmap? returns the name of the xpixmap object managed by this object.
free! frees the ivm_pixmap object and any storage it created. In particular, it sends a free! message to the xpixmap object, since it is responsible for its creation. It does not free the ivm_mapper object.
check_xpixmap? checks for the existence of an xpixmap. If it has not been created, it attempts to create one.
create_xpixmap! creates (or recreates) the xpixmap.
histogram? returns a histogram of the pixel values in the current mio image. The data is returned as an array of floats and a length.
color_cells= cells= sets the name of the color cell object through which the data is mapped.
file_format= sets the mio file format type.
height= sets the height of the mapped data.
ivm_mapper= sets the name of the ivm_mapper object.
mio= sets the name of the mio object.
prefix= sets the file prefix.
slice_number= slice= sets the current slice number.
width= sets the width of the generated xpixmap.
xprivate_cells new: pv_cells number_of_colors=8 @1 rgb:(0,0,0) @2 rgb:(0,0,1) @3 rgb:(0,1,0) @4 rgb:(0,1,1) @5 rgb:(1,0,0) @6 rgb:(1,0,1) @7 rgb:(1,1,0) @8 rgb:(1,1,1) ;
mio_2d new: mio_headsq; ivm_mapper new: mapper;
ivm_pixmap new: manager prefix="/home/moose/u2/montnaro/oscar/viva/slices/headsq" slice=10 cells="pv_cells" ivm_"mapper=mapper" mio="mio_headsq" width=100 height=100 file_format="2d" create_xpixmap! ;
xwindow new: win width=100 height=100 map! ;
win copy_area:([manager xpixmap?], 100, 100); xdisplay flush!;