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

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