Changeset 1384 for trunk/MagicSoft/Mars/mgui
- Timestamp:
- 07/08/02 10:55:07 (23 years ago)
- Location:
- trunk/MagicSoft/Mars/mgui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mgui/MCamDisplay.cc
r1330 r1384 269 269 } 270 270 271 void 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 271 293 // ------------------------------------------------------------------------ 272 294 // -
trunk/MagicSoft/Mars/mgui/MCamDisplay.h
r1325 r1384 58 58 void DrawPhotNum(const MCerPhotEvt *event); 59 59 60 void DrawPixelNumbers(); 61 60 62 void Reset(); 61 63 void Draw(Option_t *option=""); -
trunk/MagicSoft/Mars/mgui/MHexagon.h
r1076 r1384 57 57 virtual void SavePrimitive(ofstream &out, Option_t *); 58 58 59 Float_t GetX() const { return fX; } 60 Float_t GetY() const { return fY; } 61 Float_t GetD() const { return fD; } 62 59 63 ClassDef(MHexagon, 0) // A hexagon for MAGIC 60 64 };
Note:
See TracChangeset
for help on using the changeset viewer.