This [incr Tk] widget is used to display a BLT graph in a popup window plotting the raw image pixel values along a given line drawn interactively on the image. Once created, the graph can be continuously updated as the line is moved or resized. This widget only sets up the layout. The real work is done in the rtdimage spectrum subcommand (see rtdimage(3)), that communicates directly with the BLT graph using its C interface.
fpos Tk frame for X,Y positions. graph BLT graph of pixel values. xpos Tk label for X position. yval Tk label for Y position.
-image Name of RtdImage itcl widget, set by caller. -line_id Canvas id of the spectrum line . -x0 X0 canvas coordinate of the spectrum line. -x1 X1 canvas coordinate of the spectrum line. -y0 Y0 canvas coordinate of the spectrum line. -y1 Y1 canvas coordinate of the spectrum line.
notify_cmd {{op update}} This method is called whenever the spectrum line is moved, resized or deleted or when the image changed and the graph should be updated. It updates the graph to show the image values along the line. print {} Make a hard copy of the graph display. quit {} Quit the window.
dispXY {x y} Display x, y values at cursor position. make_buttons {} Make the button frame at the bottom of the window. make_graph {} Make the graph subwindow.
canvas_ Name of image's canvas widget. draw_ Name of RtdImage's CanvasDraw object. graph_ Name of graph widget. image_ Name of internal rtdimage object. numValues_ Number of values displayed. xVector_ X vector for graph. yVector_ Y vector for graph.
Please send questions or comments to abrighto@eso.org.
Copyright © 1998 ESO - European Southern Observatory