head 1.4; access; symbols; locks; strict; comment @# @; 1.4 date 2002.09.07.01.50.38; author curt; state Exp; branches; next 1.3; 1.3 date 2002.08.31.19.01.53; author curt; state Exp; branches; next 1.2; 1.2 date 2002.08.31.18.54.00; author curt; state Exp; branches; next 1.1; 1.1 date 2002.02.15.17.21.56; author curt; state Exp; branches; next ; desc @@ 1.4 log @Updated doxygen docs. @ text @
Main Page Class Hierarchy Compound List File List Compound Members File Members

# ephemeris.hxx

Go to the documentation of this file.

    00001
    00005 // Top level interface written by Curtis Olson, started March 2000.
    00006 //
    00007 // All the core code underneath this is written by Durk Talsma.  See
    00008 // the headers of all the other individual files for details.
    00009 //
    00010 // Copyright (C) 2000  Curtis L. Olson - curt@@flightgear.org
    00011 //
    00012 // This library is free software; you can redistribute it and/or
    00013 // modify it under the terms of the GNU Library General Public
    00014 // License as published by the Free Software Foundation; either
    00015 // version 2 of the License, or (at your option) any later version.
    00016 //
    00017 // This library is distributed in the hope that it will be useful,
    00018 // but WITHOUT ANY WARRANTY; without even the implied warranty of
    00019 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00020 // Library General Public License for more details.
    00021 //
    00022 // You should have received a copy of the GNU Library General Public
    00023 // License along with this library; if not, write to the
    00024 // Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    00025 // Boston, MA  02111-1307, USA.
    00026 //
    00027 // $Id: ephemeris.hxx,v 1.17 2001/05/15 19:26:23 curt Exp $
    00028
    00029
    00030 #ifndef _EPHEMERIS_HXX
    00031 #define _EPHEMERIS_HXX
    00032
    00033
    00034 #include <plib/sg.h>
    00035
    00036 #include <simgear/ephemeris/star.hxx>
    00037 #include <simgear/ephemeris/moonpos.hxx>
    00038 #include <simgear/ephemeris/mercury.hxx>
    00039 #include <simgear/ephemeris/venus.hxx>
    00040 #include <simgear/ephemeris/mars.hxx>
    00041 #include <simgear/ephemeris/jupiter.hxx>
    00042 #include <simgear/ephemeris/saturn.hxx>
    00043 #include <simgear/ephemeris/uranus.hxx>
    00044 #include <simgear/ephemeris/neptune.hxx>
    00045 #include <simgear/ephemeris/stardata.hxx>
    00046
    00047
    00070 class SGEphemeris {
    00071
    00072     Star *our_sun;
    00073     MoonPos *moon;
    00074     Mercury *mercury;
    00075     Venus *venus;
    00076     Mars *mars;
    00077     Jupiter *jupiter;
    00078     Saturn *saturn;
    00079     Uranus *uranus;
    00080     Neptune *neptune;
    00081
    00082     // 9 planets, minus earth, minus pluto which we don't draw = 7
    00083     // planets[i][0] = Right Ascension
    00084     // planets[i][1] = Declination
    00085     // planets[i][2] = Magnitude
    00086     int nplanets;
    00087     sgdVec3 planets[7];
    00088
    00089     SGStarData *stars;
    00090
    00091 public:
    00092
    00099     SGEphemeris( const string &path );
    00100
    00102     ~SGEphemeris( void );
    00103
    00114     void update(double mjd, double lst, double lat);
    00115
    00120     inline Star *get_sun() const { return our_sun; }
    00121
    00123     inline double getSunRightAscension() const {
    00124         return our_sun->getRightAscension();
    00125     }
    00126
    00128     inline double getSunDeclination() const {
    00129         return our_sun->getDeclination();
    00130     }
    00131
    00136     inline MoonPos *get_moon() const { return moon; }
    00137
    00139     inline double getMoonRightAscension() const {
    00140         return moon->getRightAscension();
    00141     }
    00142
    00144     inline double getMoonDeclination() const {
    00145         return moon->getDeclination();
    00146     }
    00147
    00149     inline int getNumPlanets() const { return nplanets; }
    00150
    00159     inline sgdVec3 *getPlanets() { return planets; }
    00160
    00162     inline int getNumStars() const { return stars->getNumStars(); }
    00163
    00171     inline sgdVec3 *getStars() { return stars->getStars(); }
    00172 };
    00173
    00174
    00175 #endif // _EPHEMERIS_HXX
    00176
    00177

@ 1.3 log @Oops, try again. @ text @d115 1 a115 1