inlib  1.2.0
Public Types | Public Member Functions
inlib::sg::style_ROOT_colormap Class Reference
Inheritance diagram for inlib::sg::style_ROOT_colormap:
Inheritance graph
[legend]
Collaboration diagram for inlib::sg::style_ROOT_colormap:
Collaboration graph
[legend]

List of all members.

Public Types

enum  EColor {
  kWhite, kBlack, kRed, kGreen,
  kBlue, kYellow, kMagenta, kCyan
}

Public Member Functions

 style_ROOT_colormap ()

Detailed Description

Definition at line 146 of file style_colormap.


Member Enumeration Documentation

Enumerator:
kWhite 
kBlack 
kRed 
kGreen 
kBlue 
kYellow 
kMagenta 
kCyan 

Definition at line 148 of file style_colormap.


Constructor & Destructor Documentation

inlib::sg::style_ROOT_colormap::style_ROOT_colormap ( ) [inline]

Definition at line 150 of file style_colormap.

                        {
    // ROOT-4.00.08/TApplication.cxx/InitializeColors
    resize(51);

    //base/inc/Gtypes.h

    new_TColor(kWhite,1,1,1,"background");
    new_TColor(kBlack,0,0,0,"black");
    new_TColor(kRed,1,0,0,"red");
    new_TColor(kGreen,0,1,0,"green");
    new_TColor(kBlue,0,0,1,"blue");
    new_TColor(kYellow,1,1,0,"yellow");
    new_TColor(kMagenta,1,0,1,"magenta");
    new_TColor(kCyan,0,1,1,"cyan");
    new_TColor(10,0.999,0.999,0.999,"white");
    new_TColor(11,0.754,0.715,0.676,"editcol");

    // The color white above is defined as being nearly white.
    // Sets the associated dark color also to white.
    //new_TColor(110,0.999,0.999,.999,"Color110");

    // Initialize Custom colors
    new_TColor(20,0.8,0.78,0.67,"Color20");
    new_TColor(31,0.54,0.66,0.63,"Color31");
    new_TColor(41,0.83,0.81,0.53,"Color41");
    new_TColor(30,0.52,0.76,0.64,"Color30");
    new_TColor(32,0.51,0.62,0.55,"Color32");
    new_TColor(24,0.70,0.65,0.59,"Color24");
    new_TColor(21,0.8,0.78,0.67,"Color21");
    new_TColor(47,0.67,0.56,0.58,"Color47");
    new_TColor(35,0.46,0.54,0.57,"Color35");
    new_TColor(33,0.68,0.74,0.78,"Color33");
    new_TColor(39,0.5,0.5,0.61,"Color39");
    new_TColor(37,0.43,0.48,0.52,"Color37");
    new_TColor(38,0.49,0.6,0.82,"Color38");
    new_TColor(36,0.41,0.51,0.59,"Color36");
    new_TColor(49,0.58,0.41,0.44,"Color49");
    new_TColor(43,0.74,0.62,0.51,"Color43");
    new_TColor(22,0.76,0.75,0.66,"Color22");
    new_TColor(45,0.75,0.51,0.47,"Color45");
    new_TColor(44,0.78,0.6,0.49,"Color44");
    new_TColor(26,0.68,0.6,0.55,"Color26");
    new_TColor(28,0.53,0.4,0.34,"Color28");
    new_TColor(25,0.72,0.64,0.61,"Color25");
    new_TColor(27,0.61,0.56,0.51,"Color27");
    new_TColor(23,0.73,0.71,0.64,"Color23");
    new_TColor(42,0.87,0.73,0.53,"Color42");
    new_TColor(46,0.81,0.37,0.38,"Color46");
    new_TColor(48,0.65,0.47,0.48,"Color48");
    new_TColor(34,0.48,0.56,0.6,"Color34");
    new_TColor(40,0.67,0.65,0.75,"Color40");
    new_TColor(29,0.69,0.81,0.78,"Color29");

    // Initialize some additional greyish non saturated colors
    new_TColor(8, 0.35,0.83,0.33,"Color8");
    new_TColor(9, 0.35,0.33,0.85,"Color9");
    new_TColor(12,.3,.3,.3,"grey12");
    new_TColor(13,.4,.4,.4,"grey13");
    new_TColor(14,.5,.5,.5,"grey14");
    new_TColor(15,.6,.6,.6,"grey15");
    new_TColor(16,.7,.7,.7,"grey16");
    new_TColor(17,.8,.8,.8,"grey17");
    new_TColor(18,.9,.9,.9,"grey18");
    new_TColor(19,.95,.95,.95,"grey19");
    new_TColor(50, 0.83,0.35,0.33,"Color50");

    // Initialize the Pretty Palette Spectrum Violet->Red
    //   The color model used here is based on the HLS model which
    //   is much more suitable for creating palettes than RGB.
    //   Fixing the saturation and lightness we can scan through the
    //   spectrum of visible light by using "hue" alone.
    //   In Root hue takes values from 0 to 360.
    /*FIXME
    float  saturation = 1;
    float  lightness = 0.5;
    float  MaxHue = 280;
    float  MinHue = 0;
    Int_t  MaxPretty = 50;
    float  hue;

    for (i=0 ; i<MaxPretty ; i++) {
      hue = MaxHue-(i+1)*((MaxHue-MinHue)/MaxPretty);
      TColor::HLStoRGB(hue, lightness, saturation, r, g, b);
      new_TColor(i+51, r, g, b);
    }*/

    // Initialize the Pretty Palette Spectrum Violet->Red
    //   The color model used here is based on the HLS model which
    //   is much more suitable for creating palettes than RGB.
    //   Fixing the saturation and lightness we can scan through the
    //   spectrum of visible light by using "hue" alone.
    //   In Root hue takes values from 0 to 360.
    /*FIXME
    float  saturation = 1;
    float  lightness = 0.5;
    float  MaxHue = 280;
    float  MinHue = 0;
    Int_t  MaxPretty = 50;
    float  hue;

    for (i=0 ; i<MaxPretty ; i++) {
      hue = MaxHue-(i+1)*((MaxHue-MinHue)/MaxPretty);
      TColor::HLStoRGB(hue, lightness, saturation, r, g, b);
      new_TColor(i+51, r, g, b);
    }*/

  }

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines