GenerateColormap is an IRIS Explorer module for editing color maps. Spline curves are used to establish a relationship between data values and color parameters. Colors may be edited in the RGB (Red, Green, Blue) and HSV (Hue, Saturation, Value) color spaces. GenerateColormap's output is a one dimensional floating point lattice of 4-tuples, of length 256. Each entry in the output lattice is a color vector with Red, Green, Blue, and Opacity components. Opacity here is 1 minus Transparency. The 256 color values are mapped uniformly on the minimum and maximum data domain values.
THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Port: Colormap In
Type: Lattice
Optional: This port is optional.
Constraints: 1-D
Constraints: 4-vector
Constraints: float
Constraints: uniform
Input colormap.
Port: Data In
Type: Lattice
Optional: This port is optional.
This lattice is used to set the minimum and maximum domain for the colormap. The module will scan the data in this lattice and assign the minimum and maximum domain values to those in the lattice.
Port: Data In Pyr
Type: Pyramid
Optional: This port is optional.
Constraints: 1..-layer
Constraints: 1..-baseLat
Constraints: n-D compression
Constraints: n-compression type
This pyramid is used to set the minimum and maximum domain for the colormap. The module will scan the data in the selected data lattice from this pyramid and assign the minimum and maximum domain values to those in the lattice. Lattice selection is handled by the "Pyramid Layer" widget (see below).
Port: Palette Window
Type: Drawing Area
Port: Edit Window
Type: Drawing Area
Port: Scale Window
Type: Drawing Area
Port: Min Domain
Type: Dial
Lower bound of the domain of the generated colormap.
Port: Max Domain
Type: Dial
Upper bound of the domain of the generated colormap.
Port: Color Band
Type: Option Menu
Menu Item: Red
Menu Item: Green
Menu Item: Blue
Menu Item: Opacity
Curve to edit, hue, saturation, value, or opacity in HSV mode; red, blue, green, or opacity in RGB mode.
Port: Edit Mode
Type: Option Menu
Menu Item: Move
Menu Item: Insert
Menu Item: Delete
Mode of user editing, moving control points, adding new ones, or removing old ones.
Port: Color Space
Type: Option Menu
Menu Item: R-G-B
Menu Item: H-S-V
RGB or HSV color space
Port: Output?
Type: Check Box
Whether to send out the colormap on each change. Outputs automatically when checked.
Port: Channel
Type: Slider
Determines which channel of the Data In lattice to be used for setting the domain.
Port: Pyramid Layer
Type: Slider
Select the layer of the pyramid from which to take the data lattice. Layer 0 is the base lattice which is the most common choice. If a layer is selected that has no data lattice a warning message will appear and the base lattice will be used.
Port: Colormap
Type: Lattice
Constraints: 1-D
Constraints: 4-vector
Constraints: float
Constraints: uniform
Output colormap in a lattice.
UNIX systems only: when using X Pseudo-Color Visuals with limited bit planes, GenerateColormap can fail to allocate the color cells required for its display, and will not display the Palette window.
WaveFormColormap, Contour, PyrToGeom, LatToGeom, Render