Ignore:
Timestamp:
06/24/03 16:19:04 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r2229 r2230  
    6464//    normal constructor for MHexagon
    6565//
    66 MHexagon::MHexagon(MGeomPix &pix)
     66MHexagon::MHexagon(const MGeomPix &pix)
    6767: TAttLine(1, 1, 1), TAttFill(0, 1001)
    6868{
     
    7676//    copy constructor for MHexagon
    7777//
    78 MHexagon::MHexagon(const MHexagon &hexagon)
    79 {
    80     ((MHexagon&) hexagon).Copy(*this);
     78MHexagon::MHexagon(const MHexagon &hexagon) : TObject(hexagon), TAttLine(hexagon), TAttFill(hexagon)
     79{
     80    fX = hexagon.fX;
     81    fY = hexagon.fY;
     82    fD = hexagon.fD;
    8183}
    8284
     
    8991const
    9092#endif
    91 
    9293{
    9394    MHexagon &hex = (MHexagon&) obj;
     
    245246    const Float_t dy[np+1] = { .2886,  .5772,  .2886, -.2886, -.5772, -.2886, .2886 };
    246247
    247     TAttLine::Modify();    // Change line attributes only if neccessary
    248     TAttFill::Modify();    // Change fill attributes only if neccessary
    249 
    250248    //
    251249    //  calculate the positions of the pixel corners
     
    257255        y[i] = inY + dy[i]*inD;
    258256    }
     257
     258    TAttLine::Modify();    // Change line attributes only if neccessary
     259    TAttFill::Modify();    // Change fill attributes only if neccessary
    259260
    260261    //
Note: See TracChangeset for help on using the changeset viewer.