1 // ephemeris.hxx -- Top level class for calculating current positions of
2 // astronomical objects
4 // Top level interface written by Curtis Olson, started March 2000.
6 // All the core code underneath this is written by Durk Talsma. See
7 // the headers of all the other individual files for details.
9 // Copyright (C) 2000 Curtis L. Olson - curt@flightgear.org
11 // This program is free software; you can redistribute it and/or
12 // modify it under the terms of the GNU General Public License as
13 // published by the Free Software Foundation; either version 2 of the
14 // License, or (at your option) any later version.
16 // This program is distributed in the hope that it will be useful, but
17 // WITHOUT ANY WARRANTY; without even the implied warranty of
18 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 // General Public License for more details.
21 // You should have received a copy of the GNU General Public License
22 // along with this program; if not, write to the Free Software
23 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
28 #ifndef _EPHEMERIS_HXX
29 #define _EPHEMERIS_HXX
40 #include "mercury.hxx"
43 #include "jupiter.hxx"
46 #include "neptune.hxx"
62 // 9 planets, minus earth, minus pluto which we don't draw = 7
63 // planets[i][0] = Right Ascension
64 // planets[i][1] = Declination
65 // planets[i][2] = Magnitude
74 SGEphemeris( const string &path );
79 // Update (recalculate) the positions of all objects for the
81 void update(double mjd, double lst, double lat);
84 inline Star *get_sun() const { return our_sun; }
85 inline double getSunRightAscension() const {
86 return our_sun->getRightAscension();
88 inline double getSunDeclination() const {
89 return our_sun->getDeclination();
93 inline Moon *get_moon() const { return moon; }
94 inline double getMoonRightAscension() const {
95 return moon->getRightAscension();
97 inline double getMoonDeclination() const {
98 return moon->getDeclination();
102 inline int getNumPlanets() const { return nplanets; }
103 inline sgdVec3 *getPlanets() { return planets; }
106 inline int getNumStars() const { return stars->getNumStars(); }
107 inline sgdVec3 *getStars() { return stars->getStars(); }
111 #endif // _EPHEMERIS_HXX