Go up one levelGo to Previous Go to Next

RtdImageColors(n)

NAME

 
 RtdImageColors - itcl widget for managing colormap for an rtdimage

NAMESPACE

 
 rtd

PARENT CLASS

 
 util::TopLevelWidget

SYNOPSIS

 
 RtdImageColors <path> ?options?

DESCRIPTION

 
 This [incr Tk] widget presents a user interface for manipulating colors
 and colormaps for an RtdImage widget. The widget creates a new toplevel
 window containing items for "color scaling" the image, loading a MIDAS
 style colormap or ITT (intensity transfer table) and for setting the
 number of color cells allocated in the colormap.


ITK COMPONENTS

 
 alloc
        Frame for displaying allocated/free colors.

 allocated
        LabelEntryScale widget displaying the number of allocated colors.

 apply
        Apply button.

 buttons
        Frame for buttons.

 close
        Close button.

 colormaps
        Chooser(n) widget listing available colormaps.

 defaults
        Defaults button.

 free
        LabelValue(n) widget displaying the number of free colors.

 itts
        Chooser(n) widget listing available intensity tables.

 scale
        LabelChoice(n) widget for choosing a color scale algorithm.

 top
        Top frame.

WIDGET OPTIONS

 
 -cmap_dir
        Directory for colormap and ITT files.

 -cmap_suffix
        Suffix for colormap files.

 -default_cmap
        Default (midas) colormap.

 -default_itt
        Default (midas) intensity transfer table.

 -image
        Name of RtdImage itcl widget, set by caller.

 -itt_suffix
        Suffix for ITT files.

 -max_colors
        Max number of colors to allocate.

 -min_free
        Min number of free colors to leave.

PUBLIC METHODS

 
 reallocate {}
        Called when the scale value is changed to reallocate the colors.

 set_cmap {cmap}
        This method is called to set the colormap for the image.

 set_color_scale {alg}
        This method is called to set the color scaling algorithm.

 set_defaults {}
        Set the default colormap and itt.

 set_itt {itt}
        This method is called to set the itt for the image.

 update_allocated {}
        Update the display to show the number of free and allocated
        colors.

 update_values {im}
        Update the display with the values set in the given rtdimage.

 use_private_colormap {}
        If flag is true, use a private colormap, otherwise the default.

PROTECTED METHODS

 
 make_short_help {}
        Add a short help window.

 set_allocated {num_colors}
        This method is called to set the number of allocated colors.

PROTECTED VARIABLES

 
 allocated_
        Number of colors allocated.

 free_
        Number of free colors.

COMMON CLASS VARIABLES

 
 image_
        Name of current internal rtdimage object.

 images_
        Array (itk RtdImage) of C++ RtdImage objects, for updating clone
        colors.

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