Changeset 1400 for trunk/MagicSoft/Mars/mgui/MCamDisplay.cc
- Timestamp:
- 07/12/02 10:13:34 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mgui/MCamDisplay.cc
r1390 r1400 317 317 318 318 fDrawingPad->SetBorderMode(0); 319 fDrawingPad->SetFillColor(22); 319 320 320 321 // … … 341 342 342 343 // 343 // Setup the correct environment344 //345 gPad->SetFillColor(22);346 347 //348 344 // Draw all pixels of the camera 349 345 // (means apend all pixelobjects to the current pad) … … 351 347 for (UInt_t i=0; i<fNumPixels; i++) 352 348 { 349 #if ROOT_VERSION_CODE > ROOT_VERSION(3,01,06) 350 (*this)[i].SetBit(kNoContextMenu|kCannotPick); 351 #endif 353 352 (*this)[i].SetFillColor(22); 354 353 (*this)[i].Draw(); … … 371 370 box->SetY2(H*((i+1)*h - 1.)); 372 371 box->SetFillColor(22); 372 #if ROOT_VERSION_CODE > ROOT_VERSION(3,01,06) 373 box->SetBit(kNoContextMenu|kCannotPick); 374 #endif 373 375 box->Draw(); 374 376 … … 376 378 txt->SetX(fRange+1.5*w); 377 379 txt->SetY(H*((i+0.5)*h - 1.)); 380 #if ROOT_VERSION_CODE > ROOT_VERSION(3,01,06) 381 txt->SetBit(kNoContextMenu|kCannotPick); 382 #endif 378 383 txt->Draw(); 379 384 } … … 400 405 const MHexagon &h = (MHexagon&)*(*fPixels)[i]; 401 406 TText *nt = txt.DrawText(h.GetX(), h.GetY(), num); 402 nt->SetTextSize(0. 0005*h.GetD());407 nt->SetTextSize(0.3*h.GetD()/fGeomCam->GetMaxRadius()); 403 408 } 404 409 } … … 460 465 // Update display physically 461 466 // 462 gPad->Modified();463 gPad->Update();467 fDrawingPad->Modified(); 468 fDrawingPad->Update(); 464 469 } 465 470
Note:
See TracChangeset
for help on using the changeset viewer.