Home · All Namespaces · All Classes · Functions · Coding Style · Plugins · File Structure

StelObserver Class Reference

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

#include <StelObserver.hpp>

Inherited by SpaceShipObserver.

List of all members.

Public Member Functions

 StelObserver (const StelLocation &loc)
virtual void update (double deltaTime)
Vec3d getCenterVsop87Pos (void) const
double getDistanceFromCenter (void) const
Mat4d getRotAltAzToEquatorial (double jd) const
Mat4d getRotEquatorialToVsop87 (void) const
virtual const Planet * getHomePlanet (void) const
const StelLocationgetCurrentLocation () const
virtual bool isObserverLifeOver () const
virtual StelObservergetNextObserver () const

Protected Attributes

StelLocation currentLocation
const Planet * planet

Detailed Description

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

Constructor & Destructor Documentation

StelObserver::StelObserver ( const StelLocation loc  ) 

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

Member Function Documentation

virtual void StelObserver::update ( double  deltaTime  )  [inline, virtual]

Update StelObserver info if needed. Default implementation does nothing.

Reimplemented in SpaceShipObserver.

Vec3d StelObserver::getCenterVsop87Pos ( void   )  const

Get the position of the home planet center in the heliocentric VSOP87 frame in AU.

double StelObserver::getDistanceFromCenter ( void   )  const

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

const StelLocation& StelObserver::getCurrentLocation (  )  const [inline]

Get the informations on the current location.

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 StelObserver* StelObserver::getNextObserver (  )  const [inline, virtual]

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

Reimplemented in SpaceShipObserver.

Generated on Mon Feb 2 17:23:48 2009 for Stellarium by  doxygen 1.5.5