// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Library General Public License for more details.
//
-// You should have received a copy of the GNU Library General Public
-// License along with this library; if not, write to the
-// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-// Boston, MA 02111-1307, USA.
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
//
// $Id$
#ifndef _EPHEMERIS_HXX
#define _EPHEMERIS_HXX
-
-#include <plib/sg.h>
+#include <string>
#include <simgear/ephemeris/star.hxx>
#include <simgear/ephemeris/moonpos.hxx>
#include <simgear/ephemeris/neptune.hxx>
#include <simgear/ephemeris/stardata.hxx>
+#include <simgear/math/SGMath.hxx>
+#include <simgear/misc/sg_path.hxx>
+
/** Ephemeris class
*
// planets[i][1] = Declination
// planets[i][2] = Magnitude
int nplanets;
- sgdVec3 planets[7];
+ SGVec3d planets[7];
SGStarData *stars;
* calling the constructor you need to provide a path pointing to
* your star database file.
* @param path path to your star database */
- SGEphemeris( const string &path );
+ SGEphemeris( const std::string &path );
/** Destructor */
~SGEphemeris( void );
* the second is the declination, and the third is the magnitude.
* @return planets array
*/
- inline sgdVec3 *getPlanets() { return planets; }
+ inline SGVec3d *getPlanets() { return planets; }
+ inline const SGVec3d *getPlanets() const { return planets; }
/** @return the numbers of defined stars. */
inline int getNumStars() const { return stars->getNumStars(); }
* third is the magnitude.
* @returns star array
*/
- inline sgdVec3 *getStars() { return stars->getStars(); }
+ inline SGVec3d *getStars() { return stars->getStars(); }
+ inline const SGVec3d *getStars() const { return stars->getStars(); }
};