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

Last change on this file since 1822 was 1804, 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 bool SetDotRange(TArc *arc, float &x, float &y);
57
58 void InitArc(TArc *arc, Int_t fillstyle, Int_t fillcolor, Int_t linecolor);
59
60 void InitText();
61 void InitPlanets();
62 void InitPosition();
63 void DrawCoordinateSystem();
64
65 void SetLin1(Float_t x, Float_t y);
66 void SetLin2(Float_t x1, Float_t y1, Float_t x2, Float_t y2);
67
68 void SetDot(TArc *arc, const RaDec &radec, Int_t off);
69
70 void UpdateStars();
71 void UpdateText(Float_t zd, Float_t az);
72 void UpdatePlanet(Int_t planet, TArc *arc);
73 void UpdatePosition(RaDec &radec, Float_t zd, Float_t az);
74
75public:
76 MGSkyPosition(MObservatory::LocationName_t key, const TGWindow* p, const UInt_t w);
77 ~MGSkyPosition();
78
79 void Update(ZdAz &pos, double mjd);
80
81 ClassDef(MGSkyPosition, 0)
82};
83
84#endif // MGSKYPOSITION_H
Note: See TracBrowser for help on using the repository browser.