kcc5
Class KCC_Default8Map

Object
  extended by common:Generic
      extended by common:GradientWrapper
          extended by kcc5:KCC_ColorMapBase
              extended by kcc5:KCC_Default8Map

class 
KCC_ColorMapBase:KCC_Default8Map

Default base class for coloring options.

This class provides the base class for coloring options. It provides as a default an 8 range color map. It also provides functions for perturbing the map (changing the ordering of the ranges). This class does not have any user parameters for customizing the colors. For customizing, the user should use on of the classes extended from this class.

For an example of what this map looks like, click here.


Ultra Fractal Source

Toggle UF Source Code Display

 class KCC_Default8Map( KCC_ColorMapBase ) {
 ; Default base class for coloring options.
 ; <p>
 ; This class provides the base class for coloring options.  It provides as a
 ; default an 8 range color map.  It also provides functions for perturbing
 ; the map (changing the ordering of the ranges).  This class does not have
 ; any user parameters for customizing the colors.  For customizing, the
 ; user should use on of the classes extended from this class.
 ; <p>
 ; For an example of what this map looks like,
 ; <a href="../additional/kcc5/images/Default 8 Map.jpg">click here</a>.
 ;
 public:
   import "common.ulb"
 
   ; Constructor
   ; @param pparent = a reference to the object creating the new object; typically, 'this'
   func KCC_Default8Map( Generic pparent )
     KCC_ColorMapBase( pparent )
 
     ;
     colorMap[0,0] = @defaultMax1, colorMap[0,1] = @defaultMin1
     colorMap[1,0] = @defaultMax2, colorMap[1,1] = @defaultMin2
     colorMap[2,0] = @defaultMax3, colorMap[2,1] = @defaultMin3
     colorMap[3,0] = @defaultMax4, colorMap[3,1] = @defaultMin4
     colorMap[4,0] = @defaultMax5, colorMap[4,1] = @defaultMin5
     colorMap[5,0] = @defaultMax6, colorMap[5,1] = @defaultMin6
     colorMap[6,0] = @defaultMax7, colorMap[6,1] = @defaultMin7
     colorMap[7,0] = @defaultMax8, colorMap[7,1] = @defaultMin8
     colorRanges = 8
     colorRanges = @colorRanges
   endfunc
 
 protected:
 
 default:
   title = "Default 8 Map"
 
   int param v_KCC_Default8Map
     caption = "Version (KCC_Default8Map)"
     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_Default8Map < 100
   endparam
 
 ;--------------------------------------------------------------------
 ; Color Defaults for Default
 ;--------------------------------------------------------------------
 
   heading
     caption = "    Default 8 Map Settings"
     visible = (@customize)
   endheading
 
   color param defaultMax1
     caption = "Color Range 1 High"
     default = rgb(172/255,96/255,252/255)
     hint = "Specifies the color at the high end of Range #1."
     visible = (@customize)
   endparam
 
   color param defaultMin1
     caption = "Color Range 1 Low"
     default = rgb(72/255,0/255,80/255)
     hint = "Specifies the color at the low end of Range #1."
     visible = (@customize)
   endparam
 
   color param defaultMax2
     caption = "Color Range 2 High"
     default = rgb(252/255,0/255,172/255)
     hint = "Specifies the color at the high end of Range #2."
     visible = (@customize)
   endparam
 
   color param defaultMin2
     caption = "Color Range 2 Low"
     default = rgb(96/255,0/255,32/255)
     hint = "Specifies the color at the low end of Range #2."
     visible = (@customize)
   endparam
 
   color param defaultMax3
     caption = "Color Range 3 High"
     default = rgb(252/255,32/255,32/255)
     hint = "Specifies the color at the high end of Range #3."
     visible = (@customize)
   endparam
 
   color param defaultMin3
     caption = "Color Range 3 Low"
     default = rgb(96/255,0/255,0/255)
     hint = "Specifies the color at the low end of Range #3."
     visible = (@customize)
   endparam
 
   color param defaultMax4
     caption = "Color Range 4 High"
     default = rgb(252/255,128/255,0/255)
     hint = "Specifies the color at the high end of Range #4."
     visible = (@customize)
   endparam
 
   color param defaultMin4
     caption = "Color Range 4 Low"
     default = rgb(160/255,16/255,0/255)
     hint = "Specifies the color at the low end of Range #4."
     visible = (@customize)
   endparam
 
   color param defaultMax5
     caption = "Color Range 5 High"
     default = rgb(252/255,252/255,0/255)
     hint = "Specifies the color at the high end of Range #5."
     visible = (@customize)
   endparam
 
   color param defaultMin5
     caption = "Color Range 5 Low"
     default = rgb(152/255,64/255,0/255)
     hint = "Specifies the color at the low end of Range #5."
     visible = (@customize)
   endparam
 
   color param defaultMax6
     caption = "Color Range 6 High"
     default = rgb(0/255,252/255,128/255)
     hint = "Specifies the color at the high end of Range #6."
     visible = (@customize)
   endparam
 
   color param defaultMin6
     caption = "Color Range 6 Low"
     default = rgb(0/255,48/255,16/255)
     hint = "Specifies the color at the low end of Range #6."
     visible = (@customize)
   endparam
 
   color param defaultMax7
     caption = "Color Range 7 High"
     default = rgb(0/255,252/255,252/255)
     hint = "Specifies the color at the high end of Range #7."
     visible = (@customize)
   endparam
 
   color param defaultMin7
     caption = "Color Range 7 Low"
     default = rgb(0/255,48/255,48/255)
     hint = "Specifies the color at the low end of Range #7."
     visible = (@customize)
   endparam
 
   color param defaultMax8
     caption = "Color Range 8 High"
     default = rgb(64/255,64/255,252/255)
     hint = "Specifies the color at the high end of Range #8."
     visible = (@customize)
   endparam
 
   color param defaultMin8
     caption = "Color Range 8 Low"
     default = rgb(0/255,0/255,96/255)
     hint = "Specifies the color at the low end of Range #8."
     visible = (@customize)
   endparam
 }
 


Constructor Summary
KCC_Default8Map()
           
KCC_Default8Map(Generic pparent)
          Constructor
 
Method Summary
 
Methods inherited from class kcc5:KCC_ColorMapBase
getColorChannel, perturb8RangeMap, perturbRanges
 
Methods inherited from class common:GradientWrapper
getColor
 
Methods inherited from class common:Generic
GetParent
 
Methods inherited from class Object
 

Constructor Detail

KCC_Default8Map

public KCC_Default8Map(Generic pparent)
Constructor

Parameters:
pparent - = a reference to the object creating the new object; typically, 'this'

KCC_Default8Map

public KCC_Default8Map()