kcc5
Class KCC_ColorMapBase

Object
  extended by common:Generic
      extended by common:GradientWrapper
          extended by kcc5:KCC_ColorMapBase
Direct Known Subclasses:
KCC_Alhambra8Map, KCC_Belvedere8Map, KCC_BlueSilver2Map, KCC_BlueWhite2Map, KCC_Bouquet8Map, KCC_Chill8Map, KCC_CloudNine8Map, KCC_ColorSwitch8Map, KCC_ColorWheel12Map, KCC_CyanMagenta2Map, KCC_CyanYellow2Map, KCC_Default12Map, KCC_Default16Map, KCC_Default24Map, KCC_Default8Map, KCC_EveningSky8Map, KCC_Fall8Map, KCC_Fantasia8Map, KCC_FloweringOrchard8Map, KCC_FourthOfJuly3Map, KCC_GenerateColorMap, KCC_GoldGreen2Map, KCC_GoldGreen8Map, KCC_GoldGreenAlt8Map, KCC_GoldSilver8Map, KCC_GoldSilverAlt8Map, KCC_GradientColors, KCC_LaTerra8Map, KCC_Mojave8Map, KCC_MorningSky8Map, KCC_Pastel8Map, KCC_PastelRainbow8Map, KCC_PurpleYellow2Map, KCC_PurpleYellow8Map, KCC_PurpleYellowAlt8Map, KCC_RedTan2Map, KCC_SantaFe8Map, KCC_Showtime8Map, KCC_Soleil8Map, KCC_Spring8Map, KCC_Summer8Map, KCC_Winter8Map

class 
GradientWrapper:KCC_ColorMapBase

Default base class for color map classes.

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 one of the classes extended from this class.


Ultra Fractal Source

Toggle UF Source Code Display


Constructor Summary
KCC_ColorMapBase()
           
KCC_ColorMapBase(Generic pparent)
          Constructor
 
Method Summary
 color getColorChannel(float pindex, int pchannel)
          Lookup function supporting multiple channels By default, we use the UF gradient
 void perturb8RangeMap()
          Perturb an 8 range color map.
 int perturbRanges(int rangeNum)
          Perturb the color ranges.
 
Methods inherited from class common:GradientWrapper
getColor
 
Methods inherited from class common:Generic
GetParent
 
Methods inherited from class Object
 

Constructor Detail

KCC_ColorMapBase

public KCC_ColorMapBase(Generic pparent)
Constructor

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

KCC_ColorMapBase

public KCC_ColorMapBase()
Method Detail

getColorChannel

public color getColorChannel(float pindex,
                             int pchannel)
Description copied from class: GradientWrapper
Lookup function supporting multiple channels By default, we use the UF gradient

Overrides:
getColorChannel in class GradientWrapper

perturbRanges

public int perturbRanges(int rangeNum)
Perturb the color ranges.

Given a range number, return the value after perturbation. This function is usually called from the getColorChannel() function to return the color range before assigning the color to the point.

Parameters:
rangeNum - The range number to perturb
Returns:
The perturbed range number

perturb8RangeMap

public void perturb8RangeMap()
Perturb an 8 range color map. This function takes an 8 range color map and perburbs it according to the user specified perturbation.