StelObserver.hpp   StelObserver.hpp 
skipping to change at line 46 skipping to change at line 46
class StelObserver : public QObject class StelObserver : public QObject
{ {
Q_OBJECT Q_OBJECT
public: public:
//! Create a new StelObserver instance which is at a fixed Location //! Create a new StelObserver instance which is at a fixed Location
StelObserver(const StelLocation& loc); StelObserver(const StelLocation& loc);
~StelObserver(); ~StelObserver();
//! Update StelObserver info if needed. Default implementation does nothing. //! Update StelObserver info if needed. Default implementation does nothing.
virtual void update(double) {;} //! returns whether we actually changed the position.
virtual bool update(double) {return false;}
//! Get the position of the home planet center in the heliocentric V SOP87 frame in AU //! Get the position of the home planet center in the heliocentric V SOP87 frame in AU
Vec3d getCenterVsop87Pos(void) const; Vec3d getCenterVsop87Pos(void) const;
//! Get the distance between observer and home planet center in AU //! Get the distance between observer and home planet center in AU
double getDistanceFromCenter(void) const; double getDistanceFromCenter(void) const;
//! returns rotation matrix for conversion of alt-azimuthal to equat orial coordinates //! returns rotation matrix for conversion of alt-azimuthal to equat orial coordinates
//! For Earth we need JD(UT), for other planets JDE! To be general, just have both in here! //! For Earth we need JD(UT), for other planets JDE! To be general, just have both in here!
Mat4d getRotAltAzToEquatorial(double JD, double JDE) const; Mat4d getRotAltAzToEquatorial(double JD, double JDE) const;
Mat4d getRotEquatorialToVsop87(void) const; Mat4d getRotEquatorialToVsop87(void) const;
skipping to change at line 88 skipping to change at line 89
//! @class SpaceShipObserver //! @class SpaceShipObserver
//! An observer which moves from from one position to another one and/or fr om one planet to another one //! An observer which moves from from one position to another one and/or fr om one planet to another one
class SpaceShipObserver : public StelObserver class SpaceShipObserver : public StelObserver
{ {
Q_OBJECT Q_OBJECT
public: public:
SpaceShipObserver(const StelLocation& startLoc, const StelLocation& target, double transitSeconds=1.f, double timeToGo=-1.0); SpaceShipObserver(const StelLocation& startLoc, const StelLocation& target, double transitSeconds=1.f, double timeToGo=-1.0);
~SpaceShipObserver(); ~SpaceShipObserver();
//! Update StelObserver info if needed. Default implementation does nothing. //! Update StelObserver info if needed. Default implementation does nothing.
virtual void update(double deltaTime); virtual bool update(double deltaTime);
virtual const QSharedPointer<Planet> getHomePlanet() const; virtual const QSharedPointer<Planet> getHomePlanet() const;
virtual bool isObserverLifeOver() const {return timeToGo <= 0.;} virtual bool isObserverLifeOver() const {return timeToGo <= 0.;}
virtual bool isTraveling() const {return !isObserverLifeOver();} virtual bool isTraveling() const {return !isObserverLifeOver();}
virtual StelObserver* getNextObserver() const {return new StelObserv er(moveTargetLocation);} virtual StelObserver* getNextObserver() const {return new StelObserv er(moveTargetLocation);}
//! Returns the target location //! Returns the target location
StelLocation getTargetLocation() const { return moveTargetLocation; } StelLocation getTargetLocation() const { return moveTargetLocation; }
//! Returns the remaining movement time //! Returns the remaining movement time
double getRemainingTime() const { return timeToGo; } double getRemainingTime() const { return timeToGo; }
//! Returns the total movement time //! Returns the total movement time
 End of changes. 2 change blocks. 
2 lines changed or deleted 3 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/