StelObject.cpp   StelObject.cpp 
skipping to change at line 69 skipping to change at line 69
{ {
return core->j2000ToAltAz(getJ2000EquatorialPos(core), StelCore::Ref ractionOn); return core->j2000ToAltAz(getJ2000EquatorialPos(core), StelCore::Ref ractionOn);
} }
// Get observer-centered alt/az position // Get observer-centered alt/az position
Vec3d StelObject::getAltAzPosAuto(const StelCore* core) const Vec3d StelObject::getAltAzPosAuto(const StelCore* core) const
{ {
return core->j2000ToAltAz(getJ2000EquatorialPos(core)); return core->j2000ToAltAz(getJ2000EquatorialPos(core));
} }
// Get observer-centered galactic position
Vec3d StelObject::getJ2000GalacticPos(const StelCore *core) const
{
return core->j2000ToGalactic(getJ2000EquatorialPos(core));
}
float StelObject::getVMagnitude(const StelCore* core, bool withExtinction) const float StelObject::getVMagnitude(const StelCore* core, bool withExtinction) const
{ {
Q_UNUSED(core); Q_UNUSED(core);
Q_UNUSED(withExtinction); Q_UNUSED(withExtinction);
return 99; return 99;
} }
// Format the positional info string contain J2000/of date/altaz/hour angle positions for the object // Format the positional info string contain J2000/of date/altaz/hour angle positions for the object
QString StelObject::getPositionInfoString(const StelCore *core, const InfoS tringGroup& flags) const QString StelObject::getPositionInfoString(const StelCore *core, const InfoS tringGroup& flags) const
{ {
skipping to change at line 95 skipping to change at line 101
res += q_("RA/DE (J2000): %1/%2").arg(StelUtils::radToHmsStr (ra_j2000,true), StelUtils::radToDmsStr(dec_j2000,true)) + "<br>"; res += q_("RA/DE (J2000): %1/%2").arg(StelUtils::radToHmsStr (ra_j2000,true), StelUtils::radToDmsStr(dec_j2000,true)) + "<br>";
} }
if (flags&RaDecOfDate) if (flags&RaDecOfDate)
{ {
double dec_equ, ra_equ; double dec_equ, ra_equ;
StelUtils::rectToSphe(&ra_equ,&dec_equ,getEquinoxEquatorialP os(core)); StelUtils::rectToSphe(&ra_equ,&dec_equ,getEquinoxEquatorialP os(core));
res += q_("RA/DE (of date): %1/%2").arg(StelUtils::radToHmsS tr(ra_equ), StelUtils::radToDmsStr(dec_equ)) + "<br>"; res += q_("RA/DE (of date): %1/%2").arg(StelUtils::radToHmsS tr(ra_equ), StelUtils::radToDmsStr(dec_equ)) + "<br>";
} }
if (flags&GalCoordJ2000)
{
double glong, glat;
StelUtils::rectToSphe(&glong, &glat, getJ2000GalacticPos(cor
e));
res += q_("Galactic longitude/latitude (J2000): %1/%2").arg(
StelUtils::radToDmsStr(glong,true), StelUtils::radToDmsStr(glat,true)) + "<
br>";
}
if (flags&HourAngle) if (flags&HourAngle)
{ {
double dec_sidereal, ra_sidereal; double dec_sidereal, ra_sidereal;
StelUtils::rectToSphe(&ra_sidereal,&dec_sidereal,getSideralP osGeometric(core)); StelUtils::rectToSphe(&ra_sidereal,&dec_sidereal,getSideralP osGeometric(core));
ra_sidereal = 2.*M_PI-ra_sidereal; ra_sidereal = 2.*M_PI-ra_sidereal;
if (withAtmosphere) if (withAtmosphere)
{ {
res += q_("Hour angle/DE: %1/%2").arg(StelUtils::radToHm sStr(ra_sidereal), StelUtils::radToDmsStr(dec_sidereal)) + " " + q_("(geome tric)") + "<br>"; res += q_("Hour angle/DE: %1/%2").arg(StelUtils::radToHm sStr(ra_sidereal), StelUtils::radToDmsStr(dec_sidereal)) + " " + q_("(geome tric)") + "<br>";
StelUtils::rectToSphe(&ra_sidereal,&dec_sidereal,getSide ralPosApparent(core)); StelUtils::rectToSphe(&ra_sidereal,&dec_sidereal,getSide ralPosApparent(core));
ra_sidereal = 2.*M_PI-ra_sidereal; ra_sidereal = 2.*M_PI-ra_sidereal;
 End of changes. 2 change blocks. 
0 lines changed or deleted 16 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/