source: trunk/MagicSoft/Cosy/gui/MGSkyPosition.h@ 1758

Last change on this file since 1758 was 1758, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 1.6 KB
Line 
1#ifndef MGSKYPOSITION_H
2#define MGSKYPOSITION_H
3
4//
5// This File contains the declaration of the MGCoordinates-class
6//
7// Author: Thomas Bretz
8// Version: V1.0 (1-8-2000)
9
10
11#ifndef MGEMBEDDEDCANVAS_H
12#include "MGEmbeddedCanvas.h"
13#endif
14
15#ifndef MARS_MObservatory
16#include "MObservatory.h"
17#endif
18
19class TArc;
20class TLine;
21
22class ZdAz;
23class RaDec;
24class TText;
25class SlaStars;
26class SlaPlanets;
27
28class MGSkyPosition : public MGEmbeddedCanvas
29{
30 TArc *fMoon;
31 TArc *fJupiter;
32 TArc *fVenus;
33 TArc *fMars;
34 TArc *fSun;
35 TArc *fSaturn;
36
37 TArc *fSaturnRing;
38
39 TArc *fDot[6];
40
41 TLine *fLin1a;
42 TLine *fLin1b;
43 TLine *fLin2;
44
45 TLine *fSunL[4];
46
47 TText *fText;
48
49 SlaStars *fSlaStar;
50 SlaPlanets *fSlaPlanet;
51
52 const MObservatory::LocationName_t fObservatory;
53
54 Int_t fX[9];
55 Int_t fY[9];
56
57 void InitArc(TArc *arc, Int_t fillstyle, Int_t fillcolor, Int_t linecolor);
58
59 void InitText();
60 void InitPlanets();
61 void InitPosition();
62 void DrawCoordinateSystem();
63
64 void SetLin1(Float_t x, Float_t y);
65 void SetLin2(Float_t x1, Float_t y1, Float_t x2, Float_t y2);
66
67 void SetDot(TArc *arc, RaDec &radec, Int_t off);
68
69 void UpdateText(Float_t zd, Float_t az);
70 void UpdatePlanet(Int_t planet, TArc *arc);
71 void UpdatePosition(RaDec &radec, Float_t zd, Float_t az);
72
73public:
74 MGSkyPosition(MObservatory::LocationName_t key, const TGWindow* p, const UInt_t w);
75 ~MGSkyPosition();
76
77 void Update(ZdAz &pos, double mjd);
78
79 ClassDef(MGSkyPosition, 0)
80};
81
82#endif // MGSKYPOSITION_H
Note: See TracBrowser for help on using the repository browser.