Stellarium 0.15.0
List of all members | Public Member Functions
SpaceShipObserver Class Reference

An observer which moves from from one position to another one and/or from one planet to another one. More...

#include <StelObserver.hpp>

+ Inheritance diagram for SpaceShipObserver:
+ Collaboration diagram for SpaceShipObserver:

Public Member Functions

 SpaceShipObserver (const StelLocation &startLoc, const StelLocation &target, double transitSeconds=1.f, double timeToGo=-1.0)
 
virtual void update (double deltaTime)
 Update StelObserver info if needed. Default implementation does nothing. More...
 
virtual const QSharedPointer
< Planet
getHomePlanet () const
 
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...
 
StelLocation getTargetLocation () const
 Returns the target location. More...
 
double getRemainingTime () const
 Returns the remaining movement time. More...
 
double getTransitTime () const
 Returns the total movement time. More...
 
- Public Member Functions inherited from StelObserver
 StelObserver (const StelLocation &loc)
 Create a new StelObserver instance which is at a fixed Location. 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...
 
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 StelLocationgetCurrentLocation () const
 Get the informations on the current location. More...
 

Additional Inherited Members

- Protected Attributes inherited from StelObserver
StelLocation currentLocation
 
QSharedPointer< Planetplanet
 

Detailed Description

An observer which moves from from one position to another one and/or from one planet to another one.

Definition at line 81 of file StelObserver.hpp.

Member Function Documentation

virtual StelObserver* SpaceShipObserver::getNextObserver ( ) const
inlinevirtual

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

Reimplemented from StelObserver.

Definition at line 93 of file StelObserver.hpp.

double SpaceShipObserver::getRemainingTime ( ) const
inline

Returns the remaining movement time.

Definition at line 98 of file StelObserver.hpp.

StelLocation SpaceShipObserver::getTargetLocation ( ) const
inline

Returns the target location.

Definition at line 96 of file StelObserver.hpp.

double SpaceShipObserver::getTransitTime ( ) const
inline

Returns the total movement time.

Definition at line 100 of file StelObserver.hpp.

virtual bool SpaceShipObserver::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 from StelObserver.

Definition at line 91 of file StelObserver.hpp.

virtual bool SpaceShipObserver::isTraveling ( ) const
inlinevirtual

Get whether the location is a moving one.

Reimplemented from StelObserver.

Definition at line 92 of file StelObserver.hpp.

virtual void SpaceShipObserver::update ( double  deltaTime)
virtual

Update StelObserver info if needed. Default implementation does nothing.

Reimplemented from StelObserver.


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