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

Last change on this file since 1159 was 1111, checked in by tbretz, 23 years ago
*** empty log message ***
File size: 1.2 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 TText;
20class SlaPlanets;
21
22class MGSkyPosition : public MGEmbeddedCanvas
23{
24 TArc *fMoon;
25 TArc *fJupiter;
26 TArc *fVenus;
27 TArc *fMars;
28 TArc *fSun;
29
30 TLine *fLin1a;
31 TLine *fLin1b;
32 TLine *fLin2;
33
34 TLine *fSunL[4];
35
36 TText *fText;
37
38 SlaPlanets *fSlalib;
39
40 Int_t fX[9];
41 Int_t fY[9];
42
43 void InitText();
44 void InitPlanets();
45 void InitPosition();
46 void DrawCoordinateSystem();
47
48 void SetLin1(Float_t x, Float_t y);
49 void SetLin2(Float_t x1, Float_t y1, Float_t x2, Float_t y2);
50
51 void UpdateText(Float_t zd, Float_t az);
52 void UpdatePlanet(Int_t planet, TArc *arc);
53 void UpdatePosition(Float_t zd, Float_t az);
54
55public:
56 MGSkyPosition(const TGWindow* p, const UInt_t w);
57 ~MGSkyPosition();
58
59 void Update(ZdAz &pos);
60
61 ClassDef(MGSkyPosition, 0)
62};
63
64#endif // MGSKYPOSITION_H
Note: See TracBrowser for help on using the repository browser.