Changeset 1727 for trunk/MagicSoft/Cosy/gui/MGSkyPosition.cc
- Timestamp:
- 01/23/03 13:32:58 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/gui/MGSkyPosition.cc
r1702 r1727 56 56 fMoon = new TArc(0, 0, 3, 290, 70); 57 57 fSun = new TArc(0, 0, 2); 58 59 InitArc(fMars, 1001, 13, 12); 58 fSaturn = new TArc(0, 0, 1); 59 60 fSaturnRing = new TArc(0, 0, 2); 61 fSaturnRing->SetFillStyle(4000); // (s. TAttFill) 62 fSaturnRing->SetLineColor(kRed); 63 fSaturnRing->Draw(); 64 65 InitArc(fMars, 1001, kRed/*13*/, kRed/*12*/); 60 66 InitArc(fVenus, 1001, 15, 14); 61 67 InitArc(fJupiter, 1001, 17, 16); 62 68 InitArc(fMoon, 1001, 19, 15); 63 InitArc(fS un, 1001, 10, 19);69 InitArc(fSaturn, 1001, kYellow/*17*/, 16); 64 70 65 71 for (int i=0; i<4; i++) … … 72 78 fList->Add(fSunL[i]); 73 79 } 80 InitArc(fSun, 1001, kYellow/*10*/, kYellow/*19*/); 74 81 75 82 fList->Add(fMars); … … 78 85 fList->Add(fMoon); 79 86 fList->Add(fSun); 87 fList->Add(fSaturn); 80 88 81 89 // … … 317 325 UpdatePlanet(kEVenus, fVenus); 318 326 UpdatePlanet(kEMars, fMars); 327 UpdatePlanet(kESaturn, fSaturn); 319 328 320 329 RaDec radec = fSlaStar->CalcRaDecFast(pos*kDeg2Rad); … … 363 372 SetModified(); 364 373 365 if (planet!=kESun) 366 return; 367 368 // cout << "Sun: x=" << x << " y=" << y; 369 // cout << " Zd=" << deg << " Az=" << 360./D2PI*zdaz.Az() << endl; 370 371 fSunL[0]->SetX1(x-3.5); fSunL[0]->SetX2(x+3.5); 372 fSunL[1]->SetX1(x-2.5); fSunL[1]->SetX2(x+2.5); 373 fSunL[2]->SetX1(x-2.5); fSunL[2]->SetX2(x+2.5); 374 fSunL[3]->SetX1(x); fSunL[3]->SetX2(x); 375 376 fSunL[0]->SetY1(y); fSunL[0]->SetY2(y); 377 fSunL[1]->SetY1(y-2.5); fSunL[1]->SetY2(y+2.5); 378 fSunL[2]->SetY1(y+2.5); fSunL[2]->SetY2(y-2.5); 379 fSunL[3]->SetY1(y-3.5); fSunL[3]->SetY2(y+3.5); 380 } 374 if (planet==kESaturn) 375 { 376 fSaturnRing->SetX1(x); 377 fSaturnRing->SetY1(y); 378 } 379 380 if (planet==kESun) 381 { 382 fSunL[0]->SetX1(x-3.5); fSunL[0]->SetX2(x+3.5); 383 fSunL[1]->SetX1(x-2.5); fSunL[1]->SetX2(x+2.5); 384 fSunL[2]->SetX1(x-2.5); fSunL[2]->SetX2(x+2.5); 385 fSunL[3]->SetX1(x); fSunL[3]->SetX2(x); 386 387 fSunL[0]->SetY1(y); fSunL[0]->SetY2(y); 388 fSunL[1]->SetY1(y-2.5); fSunL[1]->SetY2(y+2.5); 389 fSunL[2]->SetY1(y+2.5); fSunL[2]->SetY2(y-2.5); 390 fSunL[3]->SetY1(y-3.5); fSunL[3]->SetY2(y+3.5); 391 } 392 }
Note:
See TracChangeset
for help on using the changeset viewer.