Ignore:
Timestamp:
07/08/02 10:55:07 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mgui/MCamDisplay.cc

    r1330 r1384  
    269269}
    270270
     271void MCamDisplay::DrawPixelNumbers()
     272{
     273    if (!fDrawingPad)
     274        Draw();
     275
     276    fDrawingPad->cd();
     277
     278    TText txt;
     279    txt.SetTextFont(122);
     280    txt.SetTextAlign(22);   // centered/centered
     281
     282    for (UInt_t i=0; i<fNumPixels; i++)
     283    {
     284        TString num;
     285        num += i;
     286
     287        const MHexagon &h = (MHexagon&)*(*fPixels)[i];
     288        TText *nt = txt.DrawText(h.GetX(), h.GetY(), num);
     289        nt->SetTextSize(0.0005*h.GetD());
     290    }
     291}
     292
    271293// ------------------------------------------------------------------------
    272294//
Note: See TracChangeset for help on using the changeset viewer.