| 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 COSY_MGEmbeddedCanvas | 
|---|
| 12 | #include "MGEmbeddedCanvas.h" | 
|---|
| 13 | #endif | 
|---|
| 14 |  | 
|---|
| 15 | #ifndef MARS_MObservatory | 
|---|
| 16 | #include "MObservatory.h" | 
|---|
| 17 | #endif | 
|---|
| 18 |  | 
|---|
| 19 | class TArc; | 
|---|
| 20 | class TLine; | 
|---|
| 21 |  | 
|---|
| 22 | class ZdAz; | 
|---|
| 23 | class RaDec; | 
|---|
| 24 | class TText; | 
|---|
| 25 | class SlaStars; | 
|---|
| 26 | class SlaPlanets; | 
|---|
| 27 |  | 
|---|
| 28 | class 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[14]; | 
|---|
| 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      *fText1; | 
|---|
| 50 | TText      *fText2; | 
|---|
| 51 |  | 
|---|
| 52 | SlaStars   *fSlaStar; | 
|---|
| 53 | SlaPlanets *fSlaPlanet; | 
|---|
| 54 |  | 
|---|
| 55 | const MObservatory::LocationName_t fObservatory; | 
|---|
| 56 |  | 
|---|
| 57 | bool SetDotRange(TArc *arc, float &x, float &y); | 
|---|
| 58 |  | 
|---|
| 59 | void InitArc(TArc *arc, Int_t fillstyle, Int_t fillcolor, Int_t linecolor); | 
|---|
| 60 |  | 
|---|
| 61 | void InitText(); | 
|---|
| 62 | void InitPlanets(); | 
|---|
| 63 | void InitPosition(); | 
|---|
| 64 | void DrawCoordinateSystem(); | 
|---|
| 65 |  | 
|---|
| 66 | void SetLin1(Float_t x, Float_t y); | 
|---|
| 67 | void SetLin2(Float_t x1, Float_t y1, Float_t x2, Float_t y2); | 
|---|
| 68 |  | 
|---|
| 69 | void SetDot(TArc *arc, const RaDec &radec, Int_t off); | 
|---|
| 70 |  | 
|---|
| 71 | void UpdateStars(); | 
|---|
| 72 | void UpdateText(Float_t zd, Float_t az); | 
|---|
| 73 | void UpdatePlanet(Int_t planet, TArc *arc); | 
|---|
| 74 | void UpdatePosition(RaDec &radec, Float_t zd, Float_t az); | 
|---|
| 75 |  | 
|---|
| 76 | public: | 
|---|
| 77 | MGSkyPosition(MObservatory::LocationName_t key, const TGWindow* p, const UInt_t w); | 
|---|
| 78 | ~MGSkyPosition(); | 
|---|
| 79 |  | 
|---|
| 80 | void Update(ZdAz &pos, double mjd); | 
|---|
| 81 |  | 
|---|
| 82 | ClassDef(MGSkyPosition, 0) | 
|---|
| 83 | }; | 
|---|
| 84 |  | 
|---|
| 85 | #endif // MGSKYPOSITION_H | 
|---|