Changeset 2615 for trunk/MagicSoft/Cosy/gui
- Timestamp:
- 12/07/03 14:48:11 (21 years ago)
- Location:
- trunk/MagicSoft/Cosy/gui
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/gui/MGCosy.cc
r2518 r2615 22 22 #include <TApplication.h> // gApplication 23 23 24 //#include "timer.h" // Timer25 26 24 #include "MCosy.h" 25 #include "MTime.h" 26 #include "MAstro.h" 27 27 #include "MGList.h" 28 28 #include "MDriveCom.h" … … 365 365 box->AddEntry(str, i++); 366 366 367 fStarList.Add( Slalib::Hms2Hor(h, m, s), Slalib::Dms2Deg(d, am, as));367 fStarList.Add(MAstro::Hms2Hor(h, m, s), MAstro::Dms2Deg(d, am, as)); 368 368 } 369 369 } … … 889 889 890 890 // Calculate Display values 891 Slalib::Rad2Hm(rd.Ra(), sh, h, hm);892 Slalib::Rad2Dm(rd.Dec(), sd, d, dm);891 MAstro::Rad2Hm(rd.Ra(), sh, h, hm); 892 MAstro::Rad2Dm(rd.Dec(), sd, d, dm); 893 893 894 894 rd.Ra(rd.Ra() * 12/TMath::Pi()); … … 922 922 923 923 // Calculate display values 924 Slalib::Hor2Hm(radec.Ra(), sh, h, hm);925 Slalib::Deg2Dm(radec.Dec(), sd, d, dm);924 MAstro::Hor2Hm(radec.Ra(), sh, h, hm); 925 MAstro::Deg2Dm(radec.Dec(), sd, d, dm); 926 926 927 927 test = radec*600; … … 974 974 Char_t sz, sa; 975 975 976 Slalib::Rad2Dm(soll.Zd(), sz, z, zm);977 Slalib::Rad2Dm(soll.Az(), sa, a, am);976 MAstro::Rad2Dm(soll.Zd(), sz, z, zm); 977 MAstro::Rad2Dm(soll.Az(), sa, a, am); 978 978 979 979 const ZdAz test = soll*kRad2Deg*600; … … 994 994 double MGCosy::UpdateTime() 995 995 { 996 Timertime;996 MTime time; 997 997 time.Now(); 998 998 999 static char oldtxt[256]; 1000 1001 char text[256]; 1002 1003 strcpy(text, time.GetTimeStr()); 1004 1005 char *dot = strrchr(text, '.'); 1006 1007 if (dot) 1008 dot[2] = 0; 1009 1010 if (strcmp(oldtxt, text)) 999 static TString oldtxt; 1000 1001 TString text(time.GetString()); 1002 text.Remove(text.Last('.')+2); 1003 1004 if (text!=oldtxt) 1011 1005 { 1012 1006 fUtc->SetText(new TGString(text)); 1013 strcpy(oldtxt, text); 1014 } 1015 1016 static long oldmjd; 1017 double mjd = time.GetMjd(); 1018 1019 if (oldmjd != 1000000*mjd) 1020 { 1021 sprintf(text, "%12.6f", mjd); 1022 fMjd->SetText(new TGString(text)); 1023 1024 oldmjd = (long)(1000000*mjd); 1007 oldtxt = text; 1008 } 1009 1010 static ULong_t oldmjd=0; 1011 const double mjd = time.GetMjd(); 1012 1013 if (oldmjd != (ULong_t)(1000000*mjd)) 1014 { 1015 fMjd->SetText(new TGString(Form("%12.6f", mjd))); 1016 oldmjd = (ULong_t)(1000000*mjd); 1025 1017 } 1026 1018 … … 1034 1026 acc *= kRad2Deg; // [deg] 1035 1027 1036 double mjd = UpdateTime();1028 const double mjd = UpdateTime(); 1037 1029 fSkyPosition->Update(pos, mjd); 1038 1030 //UpdateOffset(off); … … 1205 1197 while (i-->0) 1206 1198 { 1207 Timer tm;1208 tm.Now();1199 //Timer tm; 1200 //tm.Now(); 1209 1201 1210 1202 if (!Move(75, -80, 1000000, 13)) … … 1386 1378 UShort_t d, m, s; 1387 1379 Char_t sgn; 1388 Slalib::Deg2Dms(za.X(), sgn, d, m, s);1380 MAstro::Deg2Dms(za.X(), sgn, d, m, s); 1389 1381 if (sgn=='-') fout << sgn; 1390 1382 fout << d << " " << m << " " << s << " \t"; 1391 Slalib::Deg2Dms(za.Y(), sgn, d, m, s);1383 MAstro::Deg2Dms(za.Y(), sgn, d, m, s); 1392 1384 if (sgn=='-') fout << sgn; 1393 1385 fout << d << " " << m << " " << s << " \t"; -
trunk/MagicSoft/Cosy/gui/MGPngReader.cc
r1816 r2615 25 25 #include "CaosFilter.h" 26 26 #include "Writer.h" 27 #include " base/timer.h"27 #include "MTime.h" 28 28 29 29 #include "MStarList.h" … … 1022 1022 // Double_t kConv = 0.502; // [pix/mm] 1023 1023 1024 static Timer t0(tm);1025 Timer t(tm);1026 1027 fTime = (t.GetMjd()-t0.GetMjd())*24*60*60;1024 static MTime t0(*tm); 1025 MTime t(*tm); 1026 1027 fTime = t-t0; 1028 1028 1029 1029 Leds leds; … … 1098 1098 if (fDisplay->IsEntryChecked(IDM_kCatalog)) 1099 1099 { 1100 Timer time(tm);1100 MTime time(*tm); 1101 1101 1102 1102 GetCoordinates(); -
trunk/MagicSoft/Cosy/gui/MGSkyPosition.cc
r2280 r2615 16 16 17 17 #include "coord.h" 18 #include "MAstro.h" 18 19 #include "SlaStars.h" 19 20 #include "SlaPlanets.h" … … 113 114 { 114 115 // 32349 Sirius -1.44 1.45 2.64 0.009 A0m 115 (RaDec( Slalib::Hms2Rad( 6, 45, 0), Slalib::Dms2Rad(-16, 42, 0))),116 (RaDec(MAstro::Hms2Rad( 6, 45, 0), MAstro::Dms2Rad(-16, 42, 0))), 116 117 // 30438 Canopus -0.62 -5.53 95.88 0.164 F0Ib 117 (RaDec( Slalib::Hms2Rad( 6, 23, 0), Slalib::Dms2Rad(-52, 41, 0))),118 (RaDec(MAstro::Hms2Rad( 6, 23, 0), MAstro::Dms2Rad(-52, 41, 0))), 118 119 // 69673 Arcturus -0.05 -0.31 11.25 1.239 K2IIIp 119 (RaDec( Slalib::Hms2Rad( 14, 15, 0), Slalib::Dms2Rad( 19, 10, 0))),120 (RaDec(MAstro::Hms2Rad( 14, 15, 0), MAstro::Dms2Rad( 19, 10, 0))), 120 121 // Vega 0.03 121 (RaDec( Slalib::Hms2Rad( 18, 37, 0), Slalib::Dms2Rad( 38, 47, 0))),122 (RaDec(MAstro::Hms2Rad( 18, 37, 0), MAstro::Dms2Rad( 38, 47, 0))), 122 123 // Altair 0.77 123 (RaDec( Slalib::Hms2Rad( 19, 50, 0), Slalib::Dms2Rad( 8, 52, 6))),124 (RaDec(MAstro::Hms2Rad( 19, 50, 0), MAstro::Dms2Rad( 8, 52, 6))), 124 125 // Antares 0.96 125 (RaDec( Slalib::Hms2Rad( 16, 29, 25), Slalib::Dms2Rad(-26, 25, 55))),126 (RaDec(MAstro::Hms2Rad( 16, 29, 25), MAstro::Dms2Rad(-26, 25, 55))), 126 127 // Spica 0.98 127 (RaDec( Slalib::Hms2Rad( 13, 25, 13), Slalib::Dms2Rad(-11, 9, 41))),128 (RaDec(MAstro::Hms2Rad( 13, 25, 13), MAstro::Dms2Rad(-11, 9, 41))), 128 129 // Deneb 1.25 129 (RaDec( Slalib::Hms2Rad( 20, 41, 26), Slalib::Dms2Rad( 45, 16, 49))),130 (RaDec( Slalib::Hms2Rad( 1, 37, 6), Slalib::Dms2Rad(-57, 14, 0))),131 (RaDec( Slalib::Hms2Rad( 12, 26, 6), Slalib::Dms2Rad(-63, 06, 0))),132 (RaDec( Slalib::Hms2Rad( 5, 14, 0), Slalib::Dms2Rad(- 8, 12, 5))),133 (RaDec( Slalib::Hms2Rad( 5, 16, 0), Slalib::Dms2Rad( 46, 00, 0))),134 (RaDec( Slalib::Hms2Rad( 7, 39, 0), Slalib::Dms2Rad( 5, 14, 0))),135 (RaDec( Slalib::Hms2Rad( 5, 55, 0), Slalib::Dms2Rad( 7, 24, 0)))130 (RaDec(MAstro::Hms2Rad( 20, 41, 26), MAstro::Dms2Rad( 45, 16, 49))), 131 (RaDec(MAstro::Hms2Rad( 1, 37, 6), MAstro::Dms2Rad(-57, 14, 0))), 132 (RaDec(MAstro::Hms2Rad( 12, 26, 6), MAstro::Dms2Rad(-63, 06, 0))), 133 (RaDec(MAstro::Hms2Rad( 5, 14, 0), MAstro::Dms2Rad(- 8, 12, 5))), 134 (RaDec(MAstro::Hms2Rad( 5, 16, 0), MAstro::Dms2Rad( 46, 00, 0))), 135 (RaDec(MAstro::Hms2Rad( 7, 39, 0), MAstro::Dms2Rad( 5, 14, 0))), 136 (RaDec(MAstro::Hms2Rad( 5, 55, 0), MAstro::Dms2Rad( 7, 24, 0))) 136 137 }; 137 138 … … 334 335 Char_t sx, sy; 335 336 Double_t xm, ym; 336 Slalib::Deg2Dm(x, sx, xd, xm);337 Slalib::Deg2Dm(y, sy, yd, ym);337 MAstro::Deg2Dm(x, sx, xd, xm); 338 MAstro::Deg2Dm(y, sy, yd, ym); 338 339 339 340 const int fx = (int)(x*600); -
trunk/MagicSoft/Cosy/gui/MGTPoint.cc
r1692 r2615 18 18 #include "Filter.h" 19 19 #include "Writer.h" 20 #include " base/timer.h"20 #include "MTime.h" 21 21 22 22 ClassImp(MGStarguider); … … 397 397 GetCoordinates(); 398 398 399 Timer time(tm);399 MTime time(*tm); 400 400 fSao->GetImg(myimg, cimg, time.CalcMjd(), *fRaDec); 401 401 fImage->DrawColImg(myimg, cimg);
Note:
See TracChangeset
for help on using the changeset viewer.