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

Last change on this file since 1802 was 1793, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 1.7 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 *fStars[13];
38
39 TArc *fSaturnRing;
40
41 TArc *fDot[6];
42
43 TLine *fLin1a;
44 TLine *fLin1b;
45 TLine *fLin2;
46
47 TLine *fSunL[4];
48
49 TText *fText;
50
51 SlaStars *fSlaStar;
52 SlaPlanets *fSlaPlanet;
53
54 const MObservatory::LocationName_t fObservatory;
55
56// Int_t fStarX[13];
57// Int_t fStarY[13];
58
59// Int_t fPlanetX[9];
60// Int_t fPlanetY[9];
61
62 void InitArc(TArc *arc, Int_t fillstyle, Int_t fillcolor, Int_t linecolor);
63
64 void InitText();
65 void InitPlanets();
66 void InitPosition();
67 void DrawCoordinateSystem();
68
69 void SetLin1(Float_t x, Float_t y);
70 void SetLin2(Float_t x1, Float_t y1, Float_t x2, Float_t y2);
71
72 void SetDot(TArc *arc, const RaDec &radec, Int_t off);
73
74 void UpdateStars();
75 void UpdateText(Float_t zd, Float_t az);
76 void UpdatePlanet(Int_t planet, TArc *arc);
77 void UpdatePosition(RaDec &radec, Float_t zd, Float_t az);
78
79public:
80 MGSkyPosition(MObservatory::LocationName_t key, const TGWindow* p, const UInt_t w);
81 ~MGSkyPosition();
82
83 void Update(ZdAz &pos, double mjd);
84
85 ClassDef(MGSkyPosition, 0)
86};
87
88#endif // MGSKYPOSITION_H
Note: See TracBrowser for help on using the repository browser.