Changeset 2109 for trunk/MagicSoft/Mars/mgui
- Timestamp:
- 05/10/03 18:27:17 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/mgui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mgui/MCamDisplay.cc
r2010 r2109 787 787 } 788 788 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 // 794 char *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 77 77 void DrawPixelNumbers(); 78 78 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; 84 85 //virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py); 85 86 … … 90 91 void SetInvDeepBlueSeaPalette(); // *MENU* 91 92 92 void 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 93 94 94 95 ClassDef(MCamDisplay, 0) // Displays the magic camera
Note:
See TracChangeset
for help on using the changeset viewer.