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

ivm_image(ivm) Interactive View and Measure ivm_image(ivm)

NAME

ivm_image - an X image and its attributes.

DESCRIPTION

This class is used to create an image (using mio and ivm_mapper classes) and track its attributes (file format, filename.)

SUPERCLASS

object

INSTANCE VARIABLES

color_cells is the name of the color cells to map the image through. This object is either an xprivate_cells object or an xshared_cells object.

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.

height is the height of the X image.

ivm_mapper is the name of the ivm_mapper object that is used to map the image through the color cells and scale the image.

mio is the name of the mio object that is used to read the image.

prefix is the prefix for the image.

slice_number is the slice number.

MESSAGES

check_ximage? checks to see if an ximage has been created. If not, it attempts to create one. Then, if the ximage exists, this method returns 1 for true. Else it returns 0.

color_cells?, cells? returns the name of the color cells object.

color_cells= cells_object , cells= cells_object sets the color_cells instance variable.

create_ximage! creates (or recreates) the ximage.

file_format? returns the value of the file_format instance variable.

file_format= format sets the file_format instance variable.

height? returns the value of the height instance variable.

height= value sets the height instance variable.

ivm_mapper? returns the name of the ivm_mapper object.

ivm_mapper= ivm_mapper_object sets the ivm_mapper instance variable.

mio? returns the name of the mio object.

mio= mio_object sets the mio instance variable.

prefix? returns the value of the prefix instance variable.

prefix= value sets the prefix instance variable.

width? returns the value of the width instance variable.

width= value sets the width instance variable.

slice_number?, slice? returns the value of the slice_number instance variable.

slice_number= value , slice= value sets the slice_number instance variable.

ximage? returns the name of the ximage.

EXAMPLE

/* create the ivm image */

ivm_image new: the_ivm_image

slice= 2

cells = name_of_xshared_cells_or_xprivate_cells

prefix = "/home/myhost/mydisk/me/volume_name"

width= 256

height= 256

file_format= "2d";

/* place the image in an xwindow */

xwindow new: the_window

width= 300

height= 300

put_image: [the_ivm_image ximage?];

SEE ALSO

mio, ivm_mapper, xprivate_cells, xshared_cells


Please send comments and suggestions to
consult@rpi.edu