>  Docs Center  >  Libraries  >  Coyote  >  CINDEX
Libraries

CINDEX

CINDEX

Name


      CIndex

Purpose


      This is a program for viewing the current colors in the
      colortable with their index numbers overlayed on each color.
      On 24-bit systems you must click the cursor in the graphics window
      to see the colors in the current color table.

Author


      FANNING SOFTWARE CONSULTING
      David Fanning, Ph.D.
      1645 Sheely Drive
      Fort Collins, CO 80526 USA
      Phone: 970-221-0438
      E-mail: david@idlcoyote.com
      Coyote's Guide to IDL Programming: http://www.idlcoyote.com
  CATEGORY: Graphics
  CALLING SEQUENCE: CIndex
  INPUTS: None.

Input Keywords



  BREWER: If this keyword is set, the BREWER colors will be loaded with the
              Change Colors button. (Assuming the brewer color table file, fsc_brewer.tbl,
              has been installed.
  OUTPUTS: None
  OPTIONAL OUTPUTS: None

Output Keywords



  NOTIFYID: A two-element array containing the Change Colors button widget
              identifier and the identifier of the top-level base widget. This
              array is meant to be sent to an XCOLORS routine via its NOTIFYID
              keyword. This will allow instant updating of the CINDEX interface.
  COMMON BLOCKS: None
  SIDE EFFECTS: None
  RESTRICTIONS: Reqires XCOLORS and cgImage from the Coyote Library:
                    http://www.idlcoyote.com/programs/xcolors.pro
                    http://www.idlcoyote.com/programs/cgImage.pro

Procedure



  Draws a 31x25 set of small rectangles in 256 different colors.
  Writes the color index number on top of each rectangle.
  MODIFICATION HISTORY: Written by David Fanning, May 1995
  Widgetized and made it work in 24-bit color. Colors are
    updated by clicking in window. 22 Oct 98. DWF
  Replace POLYFILL with TV command to avoid underflow error in
    Z-buffer. 8 March 99. DWF
  Fixed a problem with 24-bit devices with color decomposition ON. 15 Feb 2000. DWF.
  Added the NOTIFYID keyword, 15 Dec 2005. DWF.
  Added BREWER keyword, 19 May 2008. DWF.



© 2024 NV5 Geospatial Solutions, Inc. |  Legal
   Contact Us