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

Last change on this file since 1730 was 1727, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 1.5 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
15class TArc;
16class TLine;
17
18class ZdAz;
19class RaDec;
20class TText;
21class SlaStars;
22class SlaPlanets;
23
24class MGSkyPosition : public MGEmbeddedCanvas
25{
26 TArc *fMoon;
27 TArc *fJupiter;
28 TArc *fVenus;
29 TArc *fMars;
30 TArc *fSun;
31 TArc *fSaturn;
32
33 TArc *fSaturnRing;
34
35 TArc *fDot[6];
36
37 TLine *fLin1a;
38 TLine *fLin1b;
39 TLine *fLin2;
40
41 TLine *fSunL[4];
42
43 TText *fText;
44
45 SlaStars *fSlaStar;
46 SlaPlanets *fSlaPlanet;
47
48 Int_t fX[9];
49 Int_t fY[9];
50
51 void InitArc(TArc *arc, Int_t fillstyle, Int_t fillcolor, Int_t linecolor);
52
53 void InitText();
54 void InitPlanets();
55 void InitPosition();
56 void DrawCoordinateSystem();
57
58 void SetLin1(Float_t x, Float_t y);
59 void SetLin2(Float_t x1, Float_t y1, Float_t x2, Float_t y2);
60
61 void SetDot(TArc *arc, RaDec &radec, Int_t off);
62
63 void UpdateText(Float_t zd, Float_t az);
64 void UpdatePlanet(Int_t planet, TArc *arc);
65 void UpdatePosition(RaDec &radec, Float_t zd, Float_t az);
66
67public:
68 MGSkyPosition(const TGWindow* p, const UInt_t w);
69 ~MGSkyPosition();
70
71 void Update(ZdAz &pos, double mjd);
72
73 ClassDef(MGSkyPosition, 0)
74};
75
76#endif // MGSKYPOSITION_H
Note: See TracBrowser for help on using the repository browser.