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

Last change on this file since 1404 was 1109, checked in by tbretz, 23 years ago
*** empty log message ***
File size: 1.0 KB
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; // const: rootcint/TMemberInspector
26
27 ZdAz fZdAz[10]; // [rad]
28
29 double fEarth[3]; // heliocentric coordinates
30
31 ZdAz GetMoonPos() const;
32
33public:
34 SlaPlanets();
35 virtual ~SlaPlanets();
36
37 // const AltAz GetAltAz() const { return fAltAz*360/D2PI; }
38 // const ZdAz GetZdAz() const { return ZdAz(DPI/2-fAltAz.Alt(), fAltAz.Az())*360/D2PI; }
39 // const RaDec GetRaDec() const { return fRaDec*360/D2PI; }
40
41 void SetMjd(const double mjd);
42
43 void UpdatePlanetPos(ePlanets_t planet);
44 ZdAz GetPlanetPos(ePlanets_t planet) const { return fZdAz[planet]; }
45
46 ClassDef(SlaPlanets, 0)
47
48};
49
50#endif
Note: See TracBrowser for help on using the repository browser.