Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1556 |
|
Package | display | |
Module | viewer |
include "viewercolormapmanager.g"
viewercolormapmanager | Create a Viewercolormapmanager tool |
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 |
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.