Welcome to the Harris Geospatial product documentation center. Here you will find reference guides, help documents, and product libraries.


  >  Docs Center  >  Libraries  >  Motley  >  MGHGRPALETTE__DEFINE

MGHGRPALETTE__DEFINE

MGHGRPALETTE__DEFINE

Class Name


  MGHgrPalette

Purpose


  An MGHgrPalette is an IDLgrPalette with a few enhancements to the
  Init method.
  OBJECT CREATION SEQUENCE:
  palette = obj_new('MGHgrPalette', 10)
  palette = obj_new('MGHgrPalette', 'MGH Special 2')
  palette = obj_new('MGHgrPalette', mgh_color(['red','white','blue']))

Superclasses


  IDLgrPalette
  POSITIONAL PARAMETERS (Init method):
  tbl
    Synonym for TABLE property.

Properties


  The following properties (ie keywords to the Init, GetProperty &
  SetProperty methods) are supported in addition to those inherited
  from IDLgrPalette:
    INVERT (Init)
      Set this property to invert the colour table.
    REVERSE (Init)
      Set this property to reverse the colour table.
    SYSTEM (Init)
      This keyword has an effect only if the TABLE parameter is a
      scalar integer or string. It is passed to the MGH_GET_CT
      function and determines whether the user-default (SYSTEM=0) or
      system (SYSTEM=1) colour table file is to be read.
    TABLE (Init)
      Specify the colour table associated with the palette in one
      of the following forms:
        Scalar structure: The red, green and blue vectors of the
          palette's colour table are specified via the RED, GREEN and
          BLUE tags of the structure.
        Integer array [3,n]: The red, green and blue vectors of the
          palette's colour table are specified via the respective
          rows of the array.
        Scalar integer or string: The color table is read from the colour
          table file by function MGH_GET_CT; the table parameter
          specifies the zero-based index (numeric) or table name
          (string) of the colour table to be read.
###########################################################################
  Copyright (c) 2013 NIWA:
  http://www.niwa.co.nz/
  Licensed under the MIT open source license:
  http://www.opensource.org/licenses/mit-license.php
###########################################################################

Modification History


  Mark Hadfield, 2001-11:
    Written.
  Mark Hadfield, 2002-06:
    Changed initialisation options: reduced maximum number of
    positional parameters from 3 to 1 and added TABLE keyword.



© 2018 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us