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

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