source: trunk/MagicSoft/Cosy/catalog/SlaPlanets.h@ 9448

Last change on this file since 9448 was 8847, checked in by tbretz, 17 years ago
*** empty log message ***
File size: 952 bytes
Line 
1#ifndef COSY_SlaPlanets
2#define COSY_SlaPlanets
3
4#ifndef COSY_Slalib
5#include "Slalib.h"
6#endif
7
8#ifndef MARS_MPointing
9#include "MPointing.h"
10#endif
11
12typedef enum
13{
14 kESun = 0,
15 kEMercury = 1,
16 kEVenus = 2,
17 kEMoon = 3, // earth moon barycentre
18 kEMars = 4,
19 kEJupiter = 5,
20 kESaturn = 6,
21 kEUranus = 7,
22 kENeptune = 8,
23 kEPluto = 9
24} ePlanets_t;
25
26class SlaPlanets : public Slalib
27{
28private:
29 double fDt; // [mjd] const: rootcint/TMemberInspector
30 double fTt; // [mjd] timescale TT
31
32 ZdAz fZdAz[10]; // [rad]
33
34 double fEarth[3]; // heliocentric coordinates
35
36 ZdAz GetMoonPos() const;
37
38public:
39 SlaPlanets(MObservatory::LocationName_t key);
40 virtual ~SlaPlanets();
41
42 void SetMjd(double mjd);
43
44 void UpdatePlanetPos(ePlanets_t planet);
45 ZdAz GetPlanetPos(ePlanets_t planet) const { return fZdAz[planet]; }
46
47 ClassDef(SlaPlanets, 0)
48
49};
50
51#endif
Note: See TracBrowser for help on using the repository browser.