Changeset 7824 for trunk/MagicSoft


Ignore:
Timestamp:
07/30/06 17:28:28 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7821 r7824  
    2525   * mhist/MHCamera.[h,cc]:
    2626     - replaced SavePrimitive(ofstream&) by SavePrimitive(ostream&)
     27     - if necessary let SavePrimitive(ofstream&) call
     28       SavePrimitive(ostream&)
     29
     30   * mgui/MHexagon.[h,cc]:
     31     - special solution for SavePrimitive because it calls a function
     32       from the base class which also needs ofstream or ostream
    2733
    2834
  • trunk/MagicSoft/Mars/mgui/MHexagon.cc

    r7823 r7824  
    334334void MHexagon::SavePrimitive(ostream &out, Option_t *)
    335335{
     336#if ROOT_VERSION_CODE >= ROOT_VERSION(5,12,00)
    336337    if (gROOT->ClassSaved(Class()))
    337338       out << "   ";
     
    345346
    346347    out << "   hexagon->Draw();" << endl;
     348#endif
    347349}
    348350
    349351void MHexagon::SavePrimitive(ofstream &out, Option_t *)
    350352{
     353#if ROOT_VERSION_CODE < ROOT_VERSION(5,12,00)
     354    if (gROOT->ClassSaved(Class()))
     355       out << "   ";
     356    else
     357       out << "   MHexagon *";
     358
     359    out << "hexagon = new MHexagon(" << fX << "," << fY << "," << fD << ");" << endl;
     360
     361    SaveFillAttributes(out, "hexagon");
     362    SaveLineAttributes(out, "hexagon");
     363
     364    out << "   hexagon->Draw();" << endl;
     365#else
    351366    MHexagon::SavePrimitive(static_cast<ostream&>(out), "");
    352 }
     367#endif
     368}
Note: See TracChangeset for help on using the changeset viewer.