54a6bdd6f8
Volunteers for maintaining it when 0.5 comes out?
112 lines
2.7 KiB
C++
112 lines
2.7 KiB
C++
--- src/castor/pluto.cc.orig Sat Nov 5 12:57:05 2005
|
|
+++ src/castor/pluto.cc Sat Nov 5 12:57:21 2005
|
|
@@ -15,7 +15,7 @@
|
|
// Copyright 2003 Liam Girdwood
|
|
|
|
#include "pluto.hh"
|
|
-#include <libnova.h>
|
|
+#include <libnova/libnova.h>
|
|
|
|
namespace Castor
|
|
{
|
|
@@ -30,7 +30,7 @@
|
|
|
|
double Pluto::get_disk (double JD)
|
|
{
|
|
- return get_pluto_disk(JD);
|
|
+ return ln_get_pluto_disk(JD);
|
|
}
|
|
|
|
/*! \fn void Pluto::get_equ_posn (double JD, ln_equ_posn* posn)
|
|
@@ -39,7 +39,7 @@
|
|
void Pluto::get_equ_posn (double JD, double& ra, double& dec)
|
|
{
|
|
struct ln_equ_posn equ;
|
|
- get_pluto_equ_coords (JD, &equ);
|
|
+ ln_get_pluto_equ_coords (JD, &equ);
|
|
ra = equ.ra;
|
|
dec = equ.dec;
|
|
}
|
|
@@ -51,8 +51,8 @@
|
|
{
|
|
struct ln_equ_posn equ;
|
|
|
|
- get_pluto_equ_coords (JD, &equ);
|
|
- get_hrz_from_equ (&equ, observer, JD, posn);
|
|
+ ln_get_pluto_equ_coords (JD, &equ);
|
|
+ ln_get_hrz_from_equ (&equ, observer, JD, posn);
|
|
}
|
|
|
|
/*! \fn void Pluto::get_rst_time (double JD, ln_lnlat_posn* observer, ln_rst_time* time)
|
|
@@ -60,7 +60,7 @@
|
|
*/
|
|
void Pluto::get_rst_time (double JD, ln_lnlat_posn* observer, ln_rst_time* time)
|
|
{
|
|
- get_pluto_rst(JD, observer, time);
|
|
+ ln_get_pluto_rst(JD, observer, time);
|
|
}
|
|
|
|
/*! \fn double Pluto::get_mag(double JD)
|
|
@@ -70,7 +70,7 @@
|
|
{
|
|
if (JD == 0)
|
|
JD = m_render_JD;
|
|
- return get_pluto_magnitude (JD);
|
|
+ return ln_get_pluto_magnitude (JD);
|
|
}
|
|
|
|
/*! \fn void Pluto::get_id(std::string& id)
|
|
@@ -102,7 +102,7 @@
|
|
void Pluto::render(double x, double y, double mag_max, Gnome::Canvas::Group& group, bool bright, double ppd)
|
|
{
|
|
// draw object on canvas
|
|
- double size = (mag_max + 1) - get_pluto_magnitude(m_render_JD);
|
|
+ double size = (mag_max + 1) - ln_get_pluto_magnitude(m_render_JD);
|
|
double sdiam = (get_equ_sdiam(m_render_JD) / 240.0) * ppd;
|
|
if (size < sdiam)
|
|
size = sdiam;
|
|
@@ -125,37 +125,37 @@
|
|
|
|
double Pluto::get_earth_dist (double JD)
|
|
{
|
|
- return get_pluto_earth_dist(JD);
|
|
+ return ln_get_pluto_earth_dist(JD);
|
|
}
|
|
|
|
double Pluto::get_sun_dist (double JD)
|
|
{
|
|
- return get_pluto_sun_dist(JD);
|
|
+ return ln_get_pluto_solar_dist(JD);
|
|
}
|
|
|
|
double Pluto::get_equ_sdiam (double JD)
|
|
{
|
|
- return get_pluto_sdiam(JD);
|
|
+ return ln_get_pluto_sdiam(JD);
|
|
}
|
|
|
|
double Pluto::get_pol_sdiam (double JD)
|
|
{
|
|
- return get_pluto_sdiam(JD);
|
|
+ return ln_get_pluto_sdiam(JD);
|
|
}
|
|
|
|
void Pluto::get_helio_coords (double JD, struct ln_helio_posn * position)
|
|
{
|
|
- get_pluto_helio_coords (JD, position);
|
|
+ ln_get_pluto_helio_coords (JD, position);
|
|
}
|
|
|
|
double Pluto::get_phase (double JD)
|
|
{
|
|
- return get_pluto_phase (JD);
|
|
+ return ln_get_pluto_phase (JD);
|
|
}
|
|
|
|
void Pluto::get_rect_helio (double JD, struct ln_rect_posn * position)
|
|
{
|
|
- get_pluto_rect_helio (JD, position);
|
|
+ ln_get_pluto_rect_helio (JD, position);
|
|
}
|
|
|
|
void Pluto::set_render_jd (double JD)
|