Ignore:
Timestamp:
02/11/09 10:48:24 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/msimreflector/MReflector.cc

    r9277 r9313  
    3737#include <TClass.h>
    3838#include <TSystem.h>
     39#include <TEllipse.h>
    3940
    4041#include "MQuaternion.h"
     
    4344#include "MLog.h"
    4445#include "MLogManip.h"
     46
     47#include "MH.h"
    4548
    4649ClassImp(MReflector);
     
    254257// --------------------------------------------------------------------------
    255258//
     259// Print the collection of mirrors
     260//
     261void MReflector::Print(Option_t *o) const
     262{
     263    *fLog << all << GetDescriptor() << " (" << GetNumMirrors() << "): " << endl;
     264
     265    fMirrors.Print(o);
     266}
     267
     268// --------------------------------------------------------------------------
     269//
    256270// Paint the collection of mirrors
    257271//
    258272void MReflector::Paint(Option_t *o)
    259273{
     274    if (!TString(o).Contains("same", TString::kIgnoreCase))
     275        MH::SetPadRange(-fMaxR*1.01, -fMaxR*1.01, fMaxR*1.01, fMaxR*1.01);
     276
    260277    fMirrors.Paint(o);
    261     /*
    262     TIter Next(&fMirrors);
    263     MMirror *m = 0;
    264 
    265     while ((m=static_cast<MMirror*>(Next())))
    266         m->Paint(o);*/
     278
     279    TEllipse e;
     280    e.SetFillStyle(0);
     281    e.SetLineColor(17);
     282    e.PaintEllipse(0, 0, fMaxR, fMaxR, 0, 360, 0);
    267283}
    268284
Note: See TracChangeset for help on using the changeset viewer.