Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: Graphical User Interface Up: viewer - Module Previous: viewercanvasprintmanager.writexpm - Function


viewercolormapmanager - Tool



Package display
Module viewer


Postscript file available

Tool for managing colormaps used by the Viewer tool

include "viewercolormapmanager.g"

Constructors
viewercolormapmanager Create a Viewercolormapmanager tool
Functions
colormap Return a handle to a named colormap
colormapnames Return the names of the available colormaps
done Close down (destroy) this Viewercolormapmanager tool
getbrightness Return the brightness setting of a named colormap
getcontrast Return the contrast setting of a named colormap
getinvertflags Get the current red, green and blue invert state
gui Create a new graphical user interface for this tool
nmaps Return the number of colormaps available
reset reset the named colormap to its default state
resetall reset all colormaps to initial state
setbrightness Set the brightness of a named colormap
setcontrast Set the contrast of a named colormap
setinvertflags Set the red, green and blue invert state of a colormap
type Return the type of this tool
viewer Return the Viewer tool which manages this tool



Description

This tool provides services to manage and manipulate colormaps for use by the Viewer tool. A colormap, or color look-up table, provides a set of colors which are normally used to represent varying intensity values in false color images (rasters). The Viewercolormapmanager tool provides sixteen basic colormaps, amongst them two greyscale-type colormaps and four rainbow-type colormaps. Each Viewer tool has one and only one Viewercolormapmanager tool, from which it obtains the names of the available colormaps, and also the actual colormaps when they are needed by Viewerdisplaydata tools.

Colormaps can be modified in a number of simple ways to achieve quite significant effects. Foremost, colormaps can be "fiddled:" a colormap can be stretched and shifted so that only a fraction of the colormap is actually used for drawing. Secondly, the contrast and brightness of the colors in the map can be modified. Thirdly, the individual red, green and blue components of the map can be independently inverted, leading to completely different colormaps.


next up previous contents index
Next: Graphical User Interface Up: viewer - Module Previous: viewercanvasprintmanager.writexpm - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15