18 #ifndef OBSERVABILITY_HPP_
19 #define OBSERVABILITY_HPP_
21 #include "StelModule.hpp"
24 #include "VecMath.hpp"
25 #include "SolarSystem.hpp"
27 #include "StelFader.hpp"
51 void restoreDefaultConfigIni(
void);
63 void setShow(
int output,
bool show);
99 void updateMessageText();
106 QByteArray normalStyleSheet;
107 QByteArray nightStyleSheet;
109 void setDateFormat(
bool b) { dmyFormat=b; }
110 bool getDateFormat(
void) {
return dmyFormat; }
116 virtual double HourAngle(
double latitude,
double elevation,
double declination);
121 virtual double HourAngle2(
double RA,
double ST);
125 virtual bool SolarSystemSolve(
StelCore* core,
int Kind);
132 virtual int CheckAcro(
int &Rise,
int &Set,
int &Rise2,
int &Set2);
144 virtual void getSunMoonCoords(
StelCore* core,
double JD,
double &RASun,
double &DecSun,
double &RAMoon,
double &DecMoon,
double &EclLon,
bool getBack);
153 virtual void getPlanetCoords(
StelCore* core,
double JD,
double &RA,
double &Dec,
bool getBack);
156 virtual void getMoonDistance(
StelCore* core,
double JD,
double &Distance,
bool getBack);
163 virtual double Lambda(
double RA1,
double Dec1,
double RA2,
double Dec2);
170 virtual void double2hms(
double t,
int &h,
int &m,
int &s);
173 virtual double sign(
double d);
177 virtual QString CalenDate(
int DoY);
182 virtual QString RangeCalenDates(
int fDoY,
int sDoY);
186 virtual double toUnsignedRA(
double RA);
190 virtual void PlanetRADec(
StelCore *core);
194 virtual void SunRADec(
StelCore* core);
197 virtual void SunHTwi();
200 virtual void toRADec(
Vec3d TempLoc,
double &RA,
double &Dec);
207 virtual bool CheckRise(
int i);
210 double Rad2Deg, Rad2Hr, AstroTwiAlti, UA, TFrac, JDsec, Jan1stJD, halfpi, MoonT, nextFullMoon, prevFullMoon, RefFullMoon, GMTShift, MoonPerilune,RefracHoriz,HorizAlti;
213 double selRA, selDec, mylat, mylon, alti, horizH, culmAlt, myJD;
216 double SunRA[366], SunDec[366], SunSidT[4][366];
219 double ObjectRA[366], ObjectDec[366], ObjectH0[366], ObjectSidT[2][366];
222 double MoonRise, MoonSet, MoonCulm, lastJDMoon;
228 Vec3d ObserverLoc, Pos0, Pos1, Pos2, RotObserver;
240 int currYear, nDays, iAltitude, iHorizAltitude;
243 QString selName, bestNight, ObsRange, objname, AcroCos;
246 QString RiseTime, SetTime, CulmTime;
255 Vec3d EquPos, LocPos;
258 bool isStar,isMoon,isSun,isScreen, raised, configChanged, souChanged;
262 bool show_AcroCos, show_Good_Nights, show_Best_Night, show_Today, show_FullMoon;
267 bool flagShowObservability;
274 QString msgSetsAt, msgRoseAt, msgSetAt, msgRisesAt, msgCircumpolar, msgNoRise, msgCulminatesAt, msgCulminatedAt, msgH, msgM, msgS;
275 QString msgSrcNotObs, msgNoACRise, msgGreatElong, msgLargSSep, msgAtDeg, msgNone, msgAcroRise, msgNoAcroRise, msgCosmRise, msgNoCosmRise;
276 QString msgWholeYear, msgNotObs, msgAboveHoriz, msgToday, msgThisYear, msgPrevFullMoon, msgNextFullMoon;
282 #include "StelPluginInterface.hpp"