Ignore:
Timestamp:
01/23/03 13:32:58 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Cosy/gui
Files:
3 edited

Legend:

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

    r1702 r1727  
    180180    fList->Add(l);
    181181
    182     fOffsetZd = new TGLabel(f, "0000000");
    183     fOffsetAz = new TGLabel(f, "0000000");
     182    fOffsetZd = new TGLabel(f, "000000000");
     183    fOffsetAz = new TGLabel(f, "000000000");
    184184    fOffsetZd->SetTextJustify(kTextRight);
    185185    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);
    188188    fList->Add(fOffsetZd);
    189189    fList->Add(fOffsetAz);
     
    193193    fList->Add(l);
    194194
    195     l = new TGLabel(f, "Ra (soll):");
     195    l = new TGLabel(f, "Ra (nominal):");
    196196    l->Move(x-60, y+159);
    197197    fList->Add(l);
     
    201201    fList->Add(l);
    202202
    203     l = new TGLabel(f, "Dec (soll):");
     203    l = new TGLabel(f, "Dec (nominal):");
    204204    l->Move(x-60, y+199);
    205205    fList->Add(l);
    206206
    207     l = new TGLabel(f, "Zd (soll):");
     207    l = new TGLabel(f, "Zd (nominal):");
    208208    l->Move(x-60, y+222);
    209209    fList->Add(l);
    210210
    211     l = new TGLabel(f, "Az (soll):");
     211    l = new TGLabel(f, "Az (nominal):");
    212212    l->Move(x-60, y+239);
    213213    fList->Add(l);
     
    836836    {
    837837        zd = (int)test.Zd();
    838         sprintf(text, "%c%dh %.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));
    839839        fZdSoll->SetText(new TGString(text));
    840840    }
     
    984984            Timer tm;
    985985            tm.Now();
    986 
     986            /*
    987987            Float_t h = 2.+tm.H()+(10.7+tm.M())/60.;
    988988            RaDec dest(h*15, 129.7);
     
    994994            int i = 0;
    995995            while (!HasStopFlag() && i++<60)  // 2.5min
    996                 usleep(1000000);
     996            usleep(1000000);
    997997            if (HasStopFlag())
    998998                break;
     999            */
    9991000
    10001001            //fQueue->PostMsg(WM_STOP, 0, 0);
    10011002
    1002             ZdAz dest1(fRand.Integer(36)+25, fRand.Integer(360));
     1003            ZdAz dest1((float)fRand.Integer(120)-60., 0);//fRand.Integer(25)+90);
    10031004
    10041005            cout << "Demo: Zd=" << dest1.Zd() << "° Az=" << dest1.Az() << "°" << endl;
     
    10061007            fQueue->PostMsg(WM_POSITION, &dest1, sizeof(dest1));
    10071008
    1008             i = 0;
    1009             while (!HasStopFlag() && i++<15)  // 30s
     1009            int i = 0;
     1010            while (!HasStopFlag() && i++<5/*5*/)  // 30s
    10101011                usleep(1000000);
    10111012            if (HasStopFlag())
  • trunk/MagicSoft/Cosy/gui/MGSkyPosition.cc

    r1702 r1727  
    5656    fMoon    = new TArc(0, 0, 3, 290, 70);
    5757    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*/);
    6066    InitArc(fVenus,   1001, 15, 14);
    6167    InitArc(fJupiter, 1001, 17, 16);
    6268    InitArc(fMoon,    1001, 19, 15);
    63     InitArc(fSun,     1001, 10, 19);
     69    InitArc(fSaturn,  1001, kYellow/*17*/, 16);
    6470
    6571    for (int i=0; i<4; i++)
     
    7278        fList->Add(fSunL[i]);
    7379    }
     80    InitArc(fSun, 1001, kYellow/*10*/, kYellow/*19*/);
    7481
    7582    fList->Add(fMars);
     
    7885    fList->Add(fMoon);
    7986    fList->Add(fSun);
     87    fList->Add(fSaturn);
    8088
    8189    //
     
    317325    UpdatePlanet(kEVenus,   fVenus);
    318326    UpdatePlanet(kEMars,    fMars);
     327    UpdatePlanet(kESaturn,  fSaturn);
    319328
    320329    RaDec radec = fSlaStar->CalcRaDecFast(pos*kDeg2Rad);
     
    363372    SetModified();
    364373
    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  
    2929    TArc       *fMars;
    3030    TArc       *fSun;
     31    TArc       *fSaturn;
     32
     33    TArc       *fSaturnRing;
    3134
    3235    TArc       *fDot[6];
Note: See TracChangeset for help on using the changeset viewer.