Ignore:
Timestamp:
02/16/03 17:02:06 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/gui/MGSkyPosition.cc

    r1758 r1760  
    6969    InitArc(fSaturn,  1001, kYellow/*17*/, 16);
    7070
     71    for (int i=0; i<13; i++)
     72    {
     73        fStars[i] = new TArc(0, 0, 1);
     74        InitArc(fStars[i], 1001, kWhite, kWhite);
     75        fList->Add(fStars[i]);
     76    }
     77
    7178    for (int i=0; i<4; i++)
    7279    {
     
    97104}
    98105
     106void MGSkyPosition::UpdateStars()
     107{
     108    RaDec stars[13];
     109
     110    // 32349   Sirius           -1.44 1.45    2.64      0.009   A0m
     111    stars[0] = RaDec(MObservatory::Hms2Rad(  6, 45, 0), MObservatory::Dms2Rad(-16, 42, 0));
     112    // 30438   Canopus          -0.62 -5.53   95.88     0.164   F0Ib
     113    stars[1] = RaDec(MObservatory::Hms2Rad(  6, 23, 0), MObservatory::Dms2Rad(-52, 41, 0));
     114    // 69673   Arcturus         -0.05 -0.31   11.25     1.239   K2IIIp
     115    stars[2] = RaDec(MObservatory::Hms2Rad( 14, 15, 0), MObservatory::Dms2Rad( 19, 10, 0));
     116    stars[3] = RaDec(MObservatory::Hms2Rad( 01, 37, 6), MObservatory::Dms2Rad(-57, 14, 0));
     117    stars[4] = RaDec(MObservatory::Hms2Rad( 12, 26, 6), MObservatory::Dms2Rad(-63, 06, 0));
     118    stars[5] = RaDec(MObservatory::Hms2Rad( 13, 25, 2), MObservatory::Dms2Rad(-11, 10, 0));
     119    stars[6] = RaDec(MObservatory::Hms2Rad(  5, 14, 0), MObservatory::Dms2Rad(- 8, 12, 5));
     120    stars[7] = RaDec(MObservatory::Hms2Rad( 19, 50, 0), MObservatory::Dms2Rad(- 8, 52, 6));
     121    stars[8] = RaDec(MObservatory::Hms2Rad( 18, 37, 0), MObservatory::Dms2Rad( 38, 47, 0));
     122    stars[9] = RaDec(MObservatory::Hms2Rad(  5, 16, 0), MObservatory::Dms2Rad( 46, 00, 0));
     123    stars[10] = RaDec(MObservatory::Hms2Rad(  7, 39, 0), MObservatory::Dms2Rad(  5, 14, 0));
     124    stars[11] = RaDec(MObservatory::Hms2Rad(  5, 55, 0), MObservatory::Dms2Rad(  7, 24, 0));
     125    stars[12] = RaDec(MObservatory::Hms2Rad( 19, 50, 0), MObservatory::Dms2Rad(  8, 52, 0));
     126
     127    for (int i=0; i<13; i++)
     128        SetDot(fStars[i], stars[i], 0);
     129
     130}
    99131void MGSkyPosition::InitText()
    100132{
     
    327359    UpdatePlanet(kESaturn,  fSaturn);
    328360
     361    UpdateStars();
     362
    329363    RaDec radec = fSlaStar->CalcRaDecFast(pos*kDeg2Rad);
    330364
Note: See TracChangeset for help on using the changeset viewer.