Go up one levelGo to Previous Go to Next

RtdImageSpectrum(n)

NAME

 
 RtdImageSpectrum - itcl widget for displaying graph of image data values

NAMESPACE

 
 rtd

PARENT CLASS

 
 util::TopLevelWidget

SYNOPSIS

 
 RtdImageSpectrum <path> ?options?

DESCRIPTION

 
 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.


ITK COMPONENTS

 
 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.

WIDGET OPTIONS

 
 -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.

PUBLIC METHODS

 
 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.

PROTECTED METHODS

 
 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.

PROTECTED VARIABLES

 
 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.

SEE ALSO

 
 TopLevelWidget(n)

 


- - - - - -
Last change: 07 May 99

 


Go up one levelGo to Previous Go to Next

Please send questions or comments to abrighto@eso.org.
Copyright © 1998 ESO - European Southern Observatory