The shades class

Valid Parents: None

Valid Children: None

Description

An attribute object which defines Gsharp shading scales. The resources for this object are visible in the Shade Editor dialog which is available in the Gsharp Professional Edition by selecting Edit->Shades. Each shading scale is defined by a resource set to a float array containing n fixed color points. Each color point defines the distance to the next color and a fixed color:

<dist>,<red>,<green>,<blue>.

The shading scale is generated by interpolating the number of colors specified by the Domain resource XuNnumValues (Number of Values) from the fixed color points.

New Resources

shades Resource Set


Blue White Red (XuNblueWhiteRedScale[n])
Contains the definition of the pre­defined blue­white­red shading scale.

  • Type: float
  • Default:
  • Range: 0:100

Cyan Yellow Red (XuNcyanYellowRedScale[n])
Contains the definition of the pre­defined cyan­yellow­red shading scale.

  • Type: float
  • Default:
  • Range: 0:100

Default (XuNdefaultScale[n])
Contains the definition of the pre­defined grey shading scale.

  • Type: float
  • Default:
  • Range: (<dist>,<red>,<green>.<blue>),0:100

Grey (XuNgreyScale[n])
Contains the definition of the pre­defined grey shading scale.

  • Type: float
  • Default:
  • Range:  (<dist>,<red>,<green>.<blue>),0:100

Rainbow (XuNrainbowScale[n])
Contains the definition of the pre­defined rainbow shading scale.

  • Type: float
  • Default:
  • Range:  (<dist>,<red>,<green>.<blue>),0:100

Topographic (XuNtopographicScale[n])
Contains the definition of the pre­defined topographic shading scale.

  • Type: float
  • Default:
  • Range: (<dist>,<red>,<green>.<blue>),0:100

User 1 (XuNuser1Scale[n])
An empty shading scale which can be defined by the user.

  • Type: float
  • Default:
  • Range:(<dist>,<red>,<green>.<blue>),0:100

User 2 (XuNuser2Scale[n])
An empty shading scale which can be defined by the user.

  • Type: float
  • Default:
  • Range: (<dist>,<red>,<green>.<blue>),0:100

User 3 (XuNuser3Scale[n])
An empty shading scale which can be defined by the user.

  • Type: float
  • Default:
  • Range: (<dist>,<red>,<green>.<blue>),0:100

User 4 (XuNuser4Scale[n])
An empty shading scale which can be defined by the user.

  • Type: float
  • Default:
  • Range: (<dist>,<red>,<green>.<blue>),0:100

Inherited Resources

Controls Resource Set


Destroyable (XuNdestroyable)
This resource controls whether the object can be destroyed by a destroy or reset command. Values can be true (On) to set the object as destroyable, or false (Off) to set the object as permanent.

  • Type: float
  • Default: true
  • Range: false,true

Immutable (XuNimmutable)
This resource controls whether the object can be modified. Values are true (On) for non­modifiable, or false (Off) for modifiable. Setting this resource to true (On) locks the currents settings for the object and disables any further changes to the object, including resetting this resource.

  • Type: float
  • Default: false
  • Range: false,true

Object Name (XuNname)
The name of the object.

  • Type: string
  • Default:
  • Range: N/A

Object Enabled (XuNobjectEnabled)
This resource enables or disables the legend. This resource can be set to either true (On) to enable the object or false (Off) to disabled it.

  • Type: float
  • Default: true
  • Range: false,true

Include in Saved GSL (XuNsave)
This resource controls whether the object is included in saved GSL. Values are true (On) to include the object in saved GSL or false (Off) to omit the object.

  • Type: float
  • Default: true
  • Range: false,true

User Data (XuNuserData)
A dataset name or pointer which the user can associate with the object. The dataset is for user use and will not be used by Gsharp.

  • Type: string
  • Default: Unset
  • Range: N/A

Return to Gsharp Reference Manual