Ignore:
Timestamp:
07/08/02 10:55:07 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mgui
Files:
3 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//
  • trunk/MagicSoft/Mars/mgui/MCamDisplay.h

    r1325 r1384  
    5858    void DrawPhotNum(const MCerPhotEvt *event);
    5959
     60    void DrawPixelNumbers();
     61
    6062    void Reset();
    6163    void Draw(Option_t *option="");
  • trunk/MagicSoft/Mars/mgui/MHexagon.h

    r1076 r1384  
    5757    virtual void  SavePrimitive(ofstream &out, Option_t *);
    5858
     59    Float_t GetX() const { return fX; }
     60    Float_t GetY() const { return fY; }
     61    Float_t GetD() const { return fD; }
     62
    5963    ClassDef(MHexagon, 0)    // A hexagon for MAGIC
    6064};
Note: See TracChangeset for help on using the changeset viewer.