Stellarium
1.2
|
#include <StelObserver.hpp>
Public Member Functions | |
StelObserver (const StelLocation &loc) | |
Create a new StelObserver instance which is at a fixed Location. | |
virtual bool | update (double) |
Update StelObserver info if needed. More... | |
Vec3d | getCenterVsop87Pos (void) const |
Get the position of the home planet center in the heliocentric VSOP87 frame in AU. | |
double | getDistanceFromCenter (void) const |
Get the distance between observer and home planet center in AU. More... | |
Vec4d | getTopographicOffsetFromCenter (void) const |
Get the geocentric rectangular coordinates of the observer in AU, plus geocentric latitude φ'. More... | |
Mat4d | getRotAltAzToEquatorial (double JD, double JDE) const |
returns rotation matrix for conversion of alt-azimuthal to equatorial coordinates For Earth we need JD(UT), for other planets JDE! To be general, just have both in here! | |
Mat4d | getRotEquatorialToVsop87 (void) const |
virtual const QSharedPointer< Planet > | getHomePlanet (void) const |
virtual const StelLocation & | getCurrentLocation () const |
Get the information on the current location. | |
virtual bool | isObserverLifeOver () const |
Get whether the life of this observer is over, and therefore that it should be changed to the next one provided by the getNextObserver() method. | |
virtual bool | isTraveling () const |
Get whether the location is a moving one. | |
virtual StelObserver * | getNextObserver () const |
Get the next observer to use once the life of this one is over. | |
Protected Attributes | |
StelLocation | currentLocation |
QSharedPointer< Planet > | planet |
Should be renamed as PlanetBasedObserver and derive from a more generical StelObserver class
double StelObserver::getDistanceFromCenter | ( | void | ) | const |
This is distance ρ from Meeus, Astron. Algorithms, 2nd edition 1998, ch.11, p.81f. ρ is also delivered from getTopographicOffsetFromCenter().v[3];
Vec4d StelObserver::getTopographicOffsetFromCenter | ( | void | ) | const |
This is vector ρ from Meeus, Astron. Algorithms, 2nd edition 1998, ch.11, p.81f. The first component is ρ cos φ' [AU], the second component is ρ sin &phi&' [AU], the third is φ' [radians] the fourth is ρ [AU]
|
inlinevirtual |
Default implementation does nothing. returns whether we actually changed the position.
Reimplemented in SpaceShipObserver.