Changeset 1384 for trunk/MagicSoft/Mars/meventdisp
- Timestamp:
- 07/08/02 10:55:07 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/meventdisp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/meventdisp/MGCamDisplay.cc
r1181 r1384 163 163 // Show camera display for the actual geometry 164 164 // 165 fCanvas->cd(); 165 166 fDisplay = new MCamDisplay(geom); 166 167 fDisplay->Draw(); -
trunk/MagicSoft/Mars/meventdisp/MGEvtDisplay.cc
r1214 r1384 43 43 #include "MTaskList.h" 44 44 #include "MEvtLoop.h" 45 #include "MCamDisplay.h" 45 46 #include "MReadMarsFile.h" 47 #include "MGeomCamMagic.h" 46 48 47 49 ClassImp(MGEvtDisplay); … … 218 220 TGTab *tabdisp = new TGTab(frame, 300, 300); 219 221 222 TGLayoutHints *laycanvas = new TGLayoutHints(kLHintsCenterX|kLHintsCenterY|kLHintsExpandX|kLHintsExpandY); 223 220 224 TGCompositeFrame *tab2 = tabdisp->AddTab("Event Display"); 221 222 225 TRootEmbeddedCanvas *canvas = new TRootEmbeddedCanvas("EventDisplay", tab2, 400, 400); 223 224 TGLayoutHints *laycanvas = new TGLayoutHints(kLHintsCenterX|kLHintsCenterY|kLHintsExpandX|kLHintsExpandY);225 226 tab2->AddFrame(canvas, laycanvas); 227 fList->Add(canvas); 226 228 227 229 fCanvas = canvas->GetCanvas(); 230 231 TGCompositeFrame *tab3 = tabdisp->AddTab("Geometry"); 232 canvas = new TRootEmbeddedCanvas("CamDisplay", tab3, 400, 400); 233 tab3->AddFrame(canvas, laycanvas); 234 fList->Add(canvas); 235 236 MGeomCamMagic geom; 237 MCamDisplay *display = new MCamDisplay(&geom); 238 display->Draw(); 239 display->DrawPixelNumbers(); 240 fList->Add(display); 228 241 229 242 // … … 237 250 // 238 251 fList->Add(tabdisp); 239 fList->Add(canvas);240 252 fList->Add(laycanvas); 241 253 fList->Add(laydisp);
Note:
See TracChangeset
for help on using the changeset viewer.