Ignore:
Timestamp:
07/30/06 17:28:28 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.