Ignore:
Timestamp:
08/11/04 12:01:44 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mgui
Files:
2 edited

Legend:

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

    r3226 r4577  
    4040#include "MCamEvent.h"
    4141
     42#include "MGeomCam.h"
     43
    4244ClassImp(MCamEvent);
     45
     46// --------------------------------------------------------------------------
     47//
     48// You can overwrite this function if you want the container to be
     49// initialized by MGeomApply with the geometry. If it is not overloaded
     50// it calls InitSize with the corresponding pixel number. If this information
     51// is enough for you it is enough to overload InitSize.
     52//
     53void MCamEvent::Init(const MGeomCam &geom)
     54{
     55    InitSize(geom.GetNumPixels());
     56}
  • trunk/MagicSoft/Mars/mgui/MCamEvent.h

    r2958 r4577  
    1414    virtual void   DrawPixelContent(Int_t num) const = 0;
    1515
     16    virtual void   Init(const MGeomCam &geom);
     17    virtual void   InitSize(const UInt_t i) { } // Used by MGeomApply see Init()
     18
    1619    ClassDef(MCamEvent, 0) // A camera event
    1720};
Note: See TracChangeset for help on using the changeset viewer.