Changeset 1727 for trunk/MagicSoft/Cosy/gui
- Timestamp:
- 01/23/03 13:32:58 (22 years ago)
- Location:
- trunk/MagicSoft/Cosy/gui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/gui/MGCosy.cc
r1702 r1727 180 180 fList->Add(l); 181 181 182 fOffsetZd = new TGLabel(f, "0000000 ");183 fOffsetAz = new TGLabel(f, "0000000 ");182 fOffsetZd = new TGLabel(f, "000000000"); 183 fOffsetAz = new TGLabel(f, "000000000"); 184 184 fOffsetZd->SetTextJustify(kTextRight); 185 185 fOffsetAz->SetTextJustify(kTextRight); 186 fOffsetZd->Move(x , y+102);187 fOffsetAz->Move(x , y+119);186 fOffsetZd->Move(x+15, y+102); 187 fOffsetAz->Move(x+15, y+119); 188 188 fList->Add(fOffsetZd); 189 189 fList->Add(fOffsetAz); … … 193 193 fList->Add(l); 194 194 195 l = new TGLabel(f, "Ra ( soll):");195 l = new TGLabel(f, "Ra (nominal):"); 196 196 l->Move(x-60, y+159); 197 197 fList->Add(l); … … 201 201 fList->Add(l); 202 202 203 l = new TGLabel(f, "Dec ( soll):");203 l = new TGLabel(f, "Dec (nominal):"); 204 204 l->Move(x-60, y+199); 205 205 fList->Add(l); 206 206 207 l = new TGLabel(f, "Zd ( soll):");207 l = new TGLabel(f, "Zd (nominal):"); 208 208 l->Move(x-60, y+222); 209 209 fList->Add(l); 210 210 211 l = new TGLabel(f, "Az ( soll):");211 l = new TGLabel(f, "Az (nominal):"); 212 212 l->Move(x-60, y+239); 213 213 fList->Add(l); … … 836 836 { 837 837 zd = (int)test.Zd(); 838 sprintf(text, "%c%d h%.1fm", soll.Zd()<0?'-':'+', abs((int)soll.Zd()), 0.1*(abs((int)test.Zd())%600));838 sprintf(text, "%c%dd %.1fm", soll.Zd()<0?'-':'+', abs((int)soll.Zd()), 0.1*(abs((int)test.Zd())%600)); 839 839 fZdSoll->SetText(new TGString(text)); 840 840 } … … 984 984 Timer tm; 985 985 tm.Now(); 986 986 /* 987 987 Float_t h = 2.+tm.H()+(10.7+tm.M())/60.; 988 988 RaDec dest(h*15, 129.7); … … 994 994 int i = 0; 995 995 while (!HasStopFlag() && i++<60) // 2.5min 996 996 usleep(1000000); 997 997 if (HasStopFlag()) 998 998 break; 999 */ 999 1000 1000 1001 //fQueue->PostMsg(WM_STOP, 0, 0); 1001 1002 1002 ZdAz dest1( fRand.Integer(36)+25, fRand.Integer(360));1003 ZdAz dest1((float)fRand.Integer(120)-60., 0);//fRand.Integer(25)+90); 1003 1004 1004 1005 cout << "Demo: Zd=" << dest1.Zd() << "° Az=" << dest1.Az() << "°" << endl; … … 1006 1007 fQueue->PostMsg(WM_POSITION, &dest1, sizeof(dest1)); 1007 1008 1008 i = 0;1009 while (!HasStopFlag() && i++< 15) // 30s1009 int i = 0; 1010 while (!HasStopFlag() && i++<5/*5*/) // 30s 1010 1011 usleep(1000000); 1011 1012 if (HasStopFlag()) -
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 } -
trunk/MagicSoft/Cosy/gui/MGSkyPosition.h
r1690 r1727 29 29 TArc *fMars; 30 30 TArc *fSun; 31 TArc *fSaturn; 32 33 TArc *fSaturnRing; 31 34 32 35 TArc *fDot[6];
Note:
See TracChangeset
for help on using the changeset viewer.