Changeset 2204 for trunk/MagicSoft/Mars/mgui/MCamDisplay.cc
- Timestamp:
- 06/20/03 10:48:34 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mgui/MCamDisplay.cc
r2189 r2204 78 78 // Default Constructor. To be used by the root system ONLY. 79 79 // 80 MCamDisplay::MCamDisplay() : fGeomCam(NULL), fAutoScale(kTRUE) 80 MCamDisplay::MCamDisplay() : fGeomCam(NULL), fAutoScale(kTRUE), fColors(kItemsLegend) 81 81 { 82 82 fNumPixels = 0; … … 96 96 97 97 fNotify = NULL; 98 99 #if ROOT_VERSION_CODE < ROOT_VERSION(3,01,06) 100 SetPalette(1, 0); 101 #else 102 SetPalette(51, 0); 103 #endif 98 104 } 99 105 … … 409 415 gStyle->SetPalette(ncolors, colors); 410 416 417 if (!fPixels) 418 { 419 for (int i=0; i<kItemsLegend; i++) 420 fColors[i] = gStyle->GetColorPalette(i); 421 return; 422 } 423 411 424 // 412 425 // Change the colors of the pixels … … 446 459 447 460 // 448 // Store the color palette used for a l eter reverse lookup461 // Store the color palette used for a later reverse lookup 449 462 // 450 463 for (int i=0; i<kItemsLegend; i++) … … 454 467 } 455 468 } 469 456 470 457 471 void MCamDisplay::SetPrettyPalette()
Note:
See TracChangeset
for help on using the changeset viewer.