Ignore:
Timestamp:
07/08/02 10:55:07 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/meventdisp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/meventdisp/MGCamDisplay.cc

    r1181 r1384  
    163163    // Show camera display for the actual geometry
    164164    //
     165    fCanvas->cd();
    165166    fDisplay = new MCamDisplay(geom);
    166167    fDisplay->Draw();
  • trunk/MagicSoft/Mars/meventdisp/MGEvtDisplay.cc

    r1214 r1384  
    4343#include "MTaskList.h"
    4444#include "MEvtLoop.h"
     45#include "MCamDisplay.h"
    4546#include "MReadMarsFile.h"
     47#include "MGeomCamMagic.h"
    4648
    4749ClassImp(MGEvtDisplay);
     
    218220    TGTab *tabdisp = new TGTab(frame, 300, 300);
    219221
     222    TGLayoutHints *laycanvas = new TGLayoutHints(kLHintsCenterX|kLHintsCenterY|kLHintsExpandX|kLHintsExpandY);
     223
    220224    TGCompositeFrame *tab2 = tabdisp->AddTab("Event Display");
    221 
    222225    TRootEmbeddedCanvas *canvas = new TRootEmbeddedCanvas("EventDisplay", tab2, 400, 400);
    223 
    224     TGLayoutHints *laycanvas = new TGLayoutHints(kLHintsCenterX|kLHintsCenterY|kLHintsExpandX|kLHintsExpandY);
    225226    tab2->AddFrame(canvas, laycanvas);
     227    fList->Add(canvas);
    226228
    227229    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);
    228241
    229242    //
     
    237250    //
    238251    fList->Add(tabdisp);
    239     fList->Add(canvas);
    240252    fList->Add(laycanvas);
    241253    fList->Add(laydisp);
Note: See TracChangeset for help on using the changeset viewer.