Ignore:
Timestamp:
05/10/03 18:27:17 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mgui
Files:
2 edited

Legend:

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

    r2010 r2109  
    787787}
    788788
     789// ------------------------------------------------------------------------
     790//
     791// Returns string containing info about the object at position (px,py).
     792// Returned string will be re-used (lock in MT environment).
     793//
     794char *MCamDisplay::GetObjectInfo(Int_t px, Int_t py) const
     795{
     796    static char info[64];
     797
     798    Int_t dist = 999999;
     799    UInt_t i;
     800    for (i=0; i<fNumPixels; i++)
     801    {
     802        if ((*fPixels)[i]->DistancetoPrimitive(px, py)>0)
     803            continue;
     804
     805        sprintf(info, "Pixel Id: %d", i);
     806        return info;
     807    }
     808    return TObject::GetObjectInfo(px, py);
     809}
  • trunk/MagicSoft/Mars/mgui/MCamDisplay.h

    r1965 r2109  
    7777    void DrawPixelNumbers();
    7878
    79     void     Paint(Option_t *option="");
    80     void     Reset();
    81     void     Draw(Option_t *option="");
    82     void     SavePrimitive(ofstream &out, Option_t *);
    83     Int_t    DistancetoPrimitive(Int_t px, Int_t py);
     79    void  Paint(Option_t *option="");
     80    void  Reset();
     81    void  Draw(Option_t *option="");
     82    void  SavePrimitive(ofstream &out, Option_t *);
     83    Int_t DistancetoPrimitive(Int_t px, Int_t py);
     84    char *GetObjectInfo(Int_t px, Int_t py) const;
    8485    //virtual void  ExecuteEvent(Int_t event, Int_t px, Int_t py);
    8586
     
    9091    void SetInvDeepBlueSeaPalette(); // *MENU*
    9192
    92     void  SetPix(const Int_t pixnum, const Int_t color, Float_t min, Float_t max);      // New function added by M.Lopez in 31-01-03
     93    void SetPix(const Int_t pixnum, const Int_t color, Float_t min, Float_t max);      // New function added by M.Lopez in 31-01-03
    9394
    9495    ClassDef(MCamDisplay, 0) // Displays the magic camera
Note: See TracChangeset for help on using the changeset viewer.