Changeset 2204
- Timestamp:
- 06/20/03 10:48:34 (22 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r2200 r2204 1 1 -*-*- END OF LINE -*-*- 2 3 2003/06/19: Thomas Bretz 4 5 * mgui/MCamDisplay.[h,cc]: 6 - fixed color palette when loading MCamDisplay 7 8 2 9 3 10 2003/06/18: Thomas Bretz -
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() -
trunk/MagicSoft/Mars/mgui/MCamDisplay.h
r2189 r2204 45 45 Float_t fRange; // the range in millimeters of the present geometry 46 46 47 TArrayI fColors; // Color conversion table47 TArrayI fColors; //! Color conversion table 48 48 49 49 TArrow *fArrowX; // Coordinate System
Note:
See TracChangeset
for help on using the changeset viewer.