This class defines the Fourth of July 3 color map and allows the user to
customize any of the ranges as desired.
class KCC_FourthOfJuly3Map( KCC_ColorMapBase ) {
; Class for defining the preset Fourth of July 3 color map.
; <p>
; This class defines the Fourth of July 3 color map and allows the user to
; customize any of the ranges as desired.
; <p>
; For an example of what this map looks like,
; <a href="../additional/kcc5/images/Fourth of July 3 Map.jpg">click here</a>.
;
public:
import "common.ulb"
; Constructor
func KCC_FourthOfJuly3Map( Generic pparent )
KCC_ColorMapBase( pparent )
;
colorMap[0,0] = @fourthOfJuly3Max1, colorMap[0,1] = @fourthOfJuly3Min1
colorMap[1,0] = @fourthOfJuly3Max2, colorMap[1,1] = @fourthOfJuly3Min2
colorMap[2,0] = @fourthOfJuly3Max3, colorMap[2,1] = @fourthOfJuly3Min3
colorRanges = @colorRanges
endfunc
; Initialize the color map using the user selected parameters.
func initColorMap()
;
colorMap[0,0] = @fourthOfJuly3Max1, colorMap[0,1] = @fourthOfJuly3Min1
colorMap[1,0] = @fourthOfJuly3Max2, colorMap[1,1] = @fourthOfJuly3Min2
colorMap[2,0] = @fourthOfJuly3Max3, colorMap[2,1] = @fourthOfJuly3Min3
colorRanges = 3
endfunc
private:
default:
title = "Fourth of July 3 Map"
int param v_KCC_FourthOfJuly3Map
caption = "Version (KCC_FourthOfJuly3Map)"
default = 100
hint = "This version parameter is used to detect when a change has been \
made to the formula that is incompatible with the previous version. \
When that happens, this field will reflect the old version number to \
alert you to the fact that an alternate rendering is being used."
visible = @v_KCC_FourthOfJuly3Map < 100
endparam
int param colorRanges
caption = "# of Ranges"
min = 1
max = 3
default = 3
endparam
;--------------------------------------------------------------------
; Color Defaults for Fourth of July 3
;--------------------------------------------------------------------
heading
caption = " Fourth of July 3 Map Settings"
visible = (@customize)
endheading
color param fourthOfJuly3Max1
caption = "Color Range 1 High"
default = rgb(255/255,0/255,0/255)
hint = "Specifies the color at the high end of Range #1."
visible = (@customize)
endparam
color param fourthOfJuly3Min1
caption = "Color Range 1 Low"
default = rgb(128/255,0/255,0/255)
hint = "Specifies the color at the low end of Range #1."
visible = (@customize)
endparam
color param fourthOfJuly3Max2
caption = "Color Range 2 High"
default = rgb(64/255,64/255,255/255)
hint = "Specifies the color at the high end of Range #2."
visible = (@customize)
endparam
color param fourthOfJuly3Min2
caption = "Color Range 2 Low"
default = rgb(0/255,0/255,128/255)
hint = "Specifies the color at the low end of Range #2."
visible = (@customize)
endparam
color param fourthOfJuly3Max3
caption = "Color Range 3 High"
default = rgb(255/255,255/255,255/255)
hint = "Specifies the color at the high end of Range #2."
visible = (@customize)
endparam
color param fourthOfJuly3Min3
caption = "Color Range 3 Low"
default = rgb(128/255,128/255,128/255)
hint = "Specifies the color at the low end of Range #2."
visible = (@customize)
endparam
}