Observability.hpp   Observability.hpp 
skipping to change at line 41 skipping to change at line 41
class ObservabilityDialog; class ObservabilityDialog;
class Observability : public StelModule class Observability : public StelModule
{ {
Q_OBJECT Q_OBJECT
public: public:
Observability(); Observability();
virtual ~Observability(); virtual ~Observability();
virtual void init(); virtual void init();
virtual void update(double) {;} virtual void update(double) {;}
virtual void draw(StelCore* core); virtual void draw(StelCore* core, class StelRenderer* renderer);
virtual double getCallOrder(StelModuleActionName actionName) const; virtual double getCallOrder(StelModuleActionName actionName) const;
//! Implement this to tell the main Stellarium GUI that there is a G UI element to configure this plugin. //! Implement this to tell the main Stellarium GUI that there is a G UI element to configure this plugin.
virtual bool configureGui(bool show=true); virtual bool configureGui(bool show=true);
//! Set up the plugin with default values. //! Set up the plugin with default values.
void restoreDefaults(void); void restoreDefaults(void);
void restoreDefaultConfigIni(void); void restoreDefaultConfigIni(void);
//! Read (or re-read) settings from the main config file. This will be called from init and also //! Read (or re-read) settings from the main config file. This will be called from init and also
skipping to change at line 72 skipping to change at line 72
//! Set the font colors. Color is (0,1,2) for (R,G,B): //! Set the font colors. Color is (0,1,2) for (R,G,B):
void setFontColor(int Color, int Value); void setFontColor(int Color, int Value);
//! Set the font size: //! Set the font size:
void setFontSize(int); void setFontSize(int);
//! Set the Sun altitude at twilight: //! Set the Sun altitude at twilight:
void setSunAltitude(int); void setSunAltitude(int);
//! Set the Sun altitude at twilight:
void setHorizAltitude(int);
//! get Show Flags from current configuration: //! get Show Flags from current configuration:
bool getShowFlags(int); bool getShowFlags(int);
//! get the current font color: //! get the current font color:
Vec3f getFontColor(void); Vec3f getFontColor(void);
//! get current font size: //! get current font size:
int getFontSize(void); int getFontSize(void);
//! get current Sun altitude at twilight: //! get current Sun altitude at twilight:
int getSunAltitude(void); int getSunAltitude(void);
//! get current Horizon altitude:
int getHorizAltitude(void);
public slots: public slots:
//! Set whether observability will execute or not: //! Set whether observability will execute or not:
void enableObservability(bool b); void enableObservability(bool b);
private: private:
//! Stuff for the configuration GUI: //! Stuff for the configuration GUI:
ObservabilityDialog* configDialog; ObservabilityDialog* configDialog;
QByteArray normalStyleSheet; QByteArray normalStyleSheet;
QByteArray nightStyleSheet; QByteArray nightStyleSheet;
skipping to change at line 124 skipping to change at line 130
//! @param Set2 day of year of the Cosmical set. //! @param Set2 day of year of the Cosmical set.
virtual int CheckAcro(int &Rise, int &Set, int &Rise2, int &Set2); virtual int CheckAcro(int &Rise, int &Set, int &Rise2, int &Set2);
//! computes the Sun or Moon coordinates at a given Julian date. //! computes the Sun or Moon coordinates at a given Julian date.
//! @param core the stellarium core. //! @param core the stellarium core.
//! @param JD double for the Julian date. //! @param JD double for the Julian date.
//! @param RASun right ascension of the Sun (in hours). //! @param RASun right ascension of the Sun (in hours).
//! @param DecSun declination of the Sun (in radians). //! @param DecSun declination of the Sun (in radians).
//! @param RAMoon idem for the Moon. //! @param RAMoon idem for the Moon.
//! @param DecMoon idem for the Moon. //! @param DecMoon idem for the Moon.
//! @param EclLon is the module of the vector product of Heliocentric Eclip tic Coordinates of Sun and Moon (projected over the Ecliptic plane). Useful to derive the dates of Full Moon.
//! @param getBack controls whether Earth and Moon must be returned to thei r original positions after computation. //! @param getBack controls whether Earth and Moon must be returned to thei r original positions after computation.
virtual void getSunMoonCoords(StelCore* core, double JD, double &RAS un, double &DecSun, double &RAMoon, double &DecMoon, bool getBack); virtual void getSunMoonCoords(StelCore* core, double JD, double &RAS un, double &DecSun, double &RAMoon, double &DecMoon, double &EclLon, bool g etBack);
//! computes the selected-planet coordinates at a given Julian date. //! computes the selected-planet coordinates at a given Julian date.
//! @param core the stellarium core. //! @param core the stellarium core.
//! @param JD double for the Julian date. //! @param JD double for the Julian date.
//! @param RA right ascension of the planet (in hours). //! @param RA right ascension of the planet (in hours).
//! @param Dec declination of the planet (in radians). //! @param Dec declination of the planet (in radians).
//! @param getBack controls whether the planet must be returned to its orig inal positions after computation. //! @param getBack controls whether the planet must be returned to its orig inal positions after computation.
virtual void getPlanetCoords(StelCore* core, double JD, double &RA, double &Dec, bool getBack); virtual void getPlanetCoords(StelCore* core, double JD, double &RA, double &Dec, bool getBack);
//! Comptues the Earth-Moon distance (in AU) at a given Julian date. The pa rameters are similar to those of getSunMoonCoords or getPlanetCoords. //! Comptues the Earth-Moon distance (in AU) at a given Julian date. The pa rameters are similar to those of getSunMoonCoords or getPlanetCoords.
skipping to change at line 190 skipping to change at line 197
virtual void toRADec(Vec3d TempLoc, double &RA, double &Dec); virtual void toRADec(Vec3d TempLoc, double &RA, double &Dec);
//! Vector to store the Julian Dates for the current year: //! Vector to store the Julian Dates for the current year:
double yearJD[366]; double yearJD[366];
//! Check if a source is observable during a given date: //! Check if a source is observable during a given date:
//! @aparm i the day of the year. //! @aparm i the day of the year.
virtual bool CheckRise(int i); virtual bool CheckRise(int i);
//! Some useful constants and variables(almost self-explanatory). //! Some useful constants and variables(almost self-explanatory).
double Rad2Deg, Rad2Hr, AstroTwiAlti, UA, TFrac, JDsec, Jan1stJD, ha lfpi, MoonT, nextFullMoon, prevFullMoon, RefFullMoon, GMTShift, MoonPerilun e; double Rad2Deg, Rad2Hr, AstroTwiAlti, UA, TFrac, JDsec, Jan1stJD, ha lfpi, MoonT, nextFullMoon, prevFullMoon, RefFullMoon, GMTShift, MoonPerilun e,RefracHoriz,HorizAlti;
//! RA, Dec, observer latitude, object's elevation, and Hour Angle at horiz on. //! RA, Dec, observer latitude, object's elevation, and Hour Angle at horiz on.
double selRA, selDec, mylat, mylon, alti, horizH, culmAlt, myJD; double selRA, selDec, mylat, mylon, alti, horizH, culmAlt, myJD;
//! Vectors to store Sun's RA, Dec, and Sid. Time at twilight and rise/set. //! Vectors to store Sun's RA, Dec, and Sid. Time at twilight and rise/set.
double SunRA[366], SunDec[366], SunSidT[4][366]; double SunRA[366], SunDec[366], SunSidT[4][366];
//! Vectors to store planet's RA, Dec, and Sid. Time at rise/set. //! Vectors to store planet's RA, Dec, and Sid. Time at rise/set.
double ObjectRA[366], ObjectDec[366], ObjectH0[366], ObjectSidT[2][3 66]; double ObjectRA[366], ObjectDec[366], ObjectH0[366], ObjectSidT[2][3 66];
skipping to change at line 219 skipping to change at line 226
//! Matrix to transform coordinates for Sun/Moon ephemeris: //! Matrix to transform coordinates for Sun/Moon ephemeris:
Mat4d LocTrans; Mat4d LocTrans;
//! Pointer to the Earth, Moon, and planet: //! Pointer to the Earth, Moon, and planet:
Planet* myEarth; Planet* myEarth;
Planet* myMoon; Planet* myMoon;
Planet* myPlanet; Planet* myPlanet;
//! Current simulation year and number of days in the year.; //! Current simulation year and number of days in the year.;
int currYear, nDays, iAltitude; int currYear, nDays, iAltitude, iHorizAltitude;
//! Useful auxiliary strings, to help checking changes in source/observer. Also to store results that must survive between iterations. //! Useful auxiliary strings, to help checking changes in source/observer. Also to store results that must survive between iterations.
QString selName, bestNight, ObsRange, objname, AcroCos; QString selName, bestNight, ObsRange, objname, AcroCos;
//! Strings to save ephemeris Times: //! Strings to save ephemeris Times:
QString RiseTime, SetTime, CulmTime; QString RiseTime, SetTime, CulmTime;
//! Just the names of the months. //! Just the names of the months.
QString months[12]; QString months[12];
 End of changes. 7 change blocks. 
4 lines changed or deleted 11 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/