Stellarium  0.16.1
List of all members | Public Member Functions | Protected Attributes
StelObserver Class Reference

Should be renamed as PlanetBasedObserver and derive from a more generical StelObserver class. More...

#include <StelObserver.hpp>

+ Inheritance diagram for StelObserver:
+ Collaboration diagram for StelObserver:

Public Member Functions

 StelObserver (const StelLocation &loc)
 Create a new StelObserver instance which is at a fixed Location. More...
 
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. More...
 
double getDistanceFromCenter (void) const
 Get the distance between observer and home planet center in AU. More...
 
Vec3d 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! More...
 
Mat4d getRotEquatorialToVsop87 (void) const
 
virtual const QSharedPointer< PlanetgetHomePlanet (void) const
 
virtual const StelLocationgetCurrentLocation () const
 Get the informations on the current location. More...
 
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. More...
 
virtual bool isTraveling () const
 Get whether the location is a moving one. More...
 
virtual StelObservergetNextObserver () const
 Get the next observer to use once the life of this one is over. More...
 

Protected Attributes

StelLocation currentLocation
 
QSharedPointer< Planetplanet
 

Detailed Description

Should be renamed as PlanetBasedObserver and derive from a more generical StelObserver class.

Definition at line 37 of file StelObserver.hpp.

Constructor & Destructor Documentation

StelObserver::StelObserver ( const StelLocation loc)

Create a new StelObserver instance which is at a fixed Location.

Member Function Documentation

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
inlinevirtual

Get the informations on the current location.

Definition at line 68 of file StelObserver.hpp.

double StelObserver::getDistanceFromCenter ( void  ) const

Get the distance between observer and home planet center in AU.

This is distance ρ from Meeus, Astron. Algorithms, 2nd edition 1998, ch.11, p.81f.

virtual StelObserver* StelObserver::getNextObserver ( ) const
inlinevirtual

Get the next observer to use once the life of this one is over.

Reimplemented in SpaceShipObserver.

Definition at line 78 of file StelObserver.hpp.

Mat4d StelObserver::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!

Vec3d StelObserver::getTopographicOffsetFromCenter ( void  ) const

Get the geocentric rectangular coordinates of the observer in AU, plus geocentric latitude φ'.

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].

virtual bool StelObserver::isObserverLifeOver ( ) const
inlinevirtual

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.

Definition at line 72 of file StelObserver.hpp.

virtual bool StelObserver::isTraveling ( ) const
inlinevirtual

Get whether the location is a moving one.

Reimplemented in SpaceShipObserver.

Definition at line 75 of file StelObserver.hpp.

virtual bool StelObserver::update ( double  )
inlinevirtual

Update StelObserver info if needed.

Default implementation does nothing. returns whether we actually changed the position.

Reimplemented in SpaceShipObserver.

Definition at line 48 of file StelObserver.hpp.


The documentation for this class was generated from the following file: