Changeset 2230 for trunk/MagicSoft/Mars/mgui
- Timestamp:
- 06/24/03 16:19:04 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mgui/MHexagon.cc
r2229 r2230 64 64 // normal constructor for MHexagon 65 65 // 66 MHexagon::MHexagon( MGeomPix &pix)66 MHexagon::MHexagon(const MGeomPix &pix) 67 67 : TAttLine(1, 1, 1), TAttFill(0, 1001) 68 68 { … … 76 76 // copy constructor for MHexagon 77 77 // 78 MHexagon::MHexagon(const MHexagon &hexagon) 79 { 80 ((MHexagon&) hexagon).Copy(*this); 78 MHexagon::MHexagon(const MHexagon &hexagon) : TObject(hexagon), TAttLine(hexagon), TAttFill(hexagon) 79 { 80 fX = hexagon.fX; 81 fY = hexagon.fY; 82 fD = hexagon.fD; 81 83 } 82 84 … … 89 91 const 90 92 #endif 91 92 93 { 93 94 MHexagon &hex = (MHexagon&) obj; … … 245 246 const Float_t dy[np+1] = { .2886, .5772, .2886, -.2886, -.5772, -.2886, .2886 }; 246 247 247 TAttLine::Modify(); // Change line attributes only if neccessary248 TAttFill::Modify(); // Change fill attributes only if neccessary249 250 248 // 251 249 // calculate the positions of the pixel corners … … 257 255 y[i] = inY + dy[i]*inD; 258 256 } 257 258 TAttLine::Modify(); // Change line attributes only if neccessary 259 TAttFill::Modify(); // Change fill attributes only if neccessary 259 260 260 261 //
Note:
See TracChangeset
for help on using the changeset viewer.