Stellarium 0.11.4 | |||
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure |
Should be renamed as PlanetBasedObserver and derive from a more generical StelObserver class. More...
#include <StelObserver.hpp>
Public Member Functions | |
StelObserver (const StelLocation &loc) | |
Create a new StelObserver instance which is at a fixed Location. | |
virtual void | update (double) |
Update StelObserver info if needed. Default implementation does nothing. | |
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. | |
Mat4d | getRotAltAzToEquatorial (double jd) const |
Mat4d | getRotEquatorialToVsop87 (void) const |
virtual const QSharedPointer < Planet > | getHomePlanet (void) const |
virtual const StelLocation & | getCurrentLocation () const |
Get the informations 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.
StelObserver::StelObserver | ( | const StelLocation & | loc | ) |
Create a new StelObserver instance which is at a fixed Location.
Vec3d StelObserver::getCenterVsop87Pos | ( | void | ) | const |
Get the position of the home planet center in the heliocentric VSOP87 frame in AU.
virtual const StelLocation& StelObserver::getCurrentLocation | ( | ) | const [inline, virtual] |
Get the informations on the current location.
double StelObserver::getDistanceFromCenter | ( | void | ) | const |
Get the distance between observer and home planet center in AU.
virtual StelObserver* StelObserver::getNextObserver | ( | ) | const [inline, virtual] |
Get the next observer to use once the life of this one is over.
Reimplemented in SpaceShipObserver.
virtual bool StelObserver::isObserverLifeOver | ( | ) | const [inline, virtual] |
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.
Reimplemented in SpaceShipObserver.
virtual bool StelObserver::isTraveling | ( | ) | const [inline, virtual] |
Get whether the location is a moving one.
Reimplemented in SpaceShipObserver.
virtual void StelObserver::update | ( | double | ) | [inline, virtual] |
Update StelObserver info if needed. Default implementation does nothing.
Reimplemented in SpaceShipObserver.