Go up one levelGo to Previous Go to Next

RtdImageTrans(n)

NAME

 
 RtdImageTrans - itcl widget for scaling, rotating and flipping an RtdImage widget

NAMESPACE

 
 rtd

PARENT CLASS

 
 util::FrameWidget

SYNOPSIS

 
 RtdImageTrans <path> ?options?

DESCRIPTION

 
 RtdImageTrans is an [incr Tk] widget class for setting and displaying
 image transformation states, such as rotation, flipX, flipY and scale
 (magnification).  The widget displays a menubutton with a selection of
 image scale factors (from 1/5x to 9x magnification), 2 optional buttons
 for incrementing and decrementing the scale factor, and buttons for
 setting rotation, flipX and flipY.


ITK COMPONENTS

 
 choose
        LabelMenu(n) widget to choose scale factor.

 flipx
        Tk checkbutton to flip the X axis.

 flipy
        Tk checkbutton to flip the Y axis.

 larger
        Tk button to zoom in.

 rotate
        Tk checkbutton to rotate (swap X/Y axis).

 smaller
        Tk button to zoom out.

STANDARD OPTIONS

 
 -background -foreground -state

WIDGET OPTIONS

 
 -image
        Target RtdImage (itcl widget).

 -labelfont
        Font for label and value.

 -labelwidth
        Set the width for  displaying the label.

 -max_scale
        Maximum allowed scale value.

 -min_scale
        Minimum allowed scale value.

 -show_Zz_buttons
        Flag: if true, display buttons for zooming the image in and out.

 -show_trans
        Flag: if true, display the rotate, flipxy items.

 -state
        Set the state to normal/disabled to enable/disable editing.

 -valuewidth
        Set the width for displaying the value.

PUBLIC METHODS

 
 fill_mag_menu {m}
        Fill the given menu with radiobuttons for changing the
        magnification of the image and keep them updated with the other
        controls.

 flip {xy}
        Flip or unflip the image about the x or y axis, as given by $xy.

 inc_zoom {inc}
        Add the given increment to the current zoom factor and re-scale
        the target image.

 rotate {}
        Toggle rotation of the image.

 update_trans {}
        Update the display based on the image scale factors (note that the
        menu values are referenced to here by their labels).

PROTECTED VARIABLES

 
 image_
        Internal rtdimage.

SEE ALSO

 
 FrameWidget(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