20 #ifndef _METEORSHOWER_HPP_
21 #define _METEORSHOWER_HPP_
23 #include "MeteorObj.hpp"
24 #include "MeteorShowersMgr.hpp"
25 #include "StelFader.hpp"
26 #include "StelObject.hpp"
27 #include "StelPainter.hpp"
107 virtual QString getInfoString(
const StelCore* core,
const InfoStringGroup& flags)
const;
108 virtual QString getType(
void)
const {
return "MeteorShower"; }
109 virtual QString getEnglishName(
void)
const {
return m_designation.trimmed(); }
110 virtual QString getNameI18n(
void)
const {
return q_(m_designation.trimmed()); }
111 virtual Vec3d getJ2000EquatorialPos(
const StelCore*)
const {
return m_position; }
112 virtual float getSelectPriority(
const StelCore*)
const {
return -4.0; }
113 virtual Vec3f getInfoColor(
void)
const;
114 virtual double getAngularSize(
const StelCore*)
const {
return 0.001; }
122 QString m_designation;
123 QList<Activity> m_activities;
131 QList<Meteor::ColorPair> m_colors;
135 double m_radiantAlpha;
136 double m_radiantDelta;
139 QList<MeteorObj*> m_activeMeteors;
149 int calculateZHR(
const double& currentJD);
154 QString getSolarLongitude(QDate date)
const;
QDate finish
Initial date of activity.
QDate peak
Last date of activity.
Status getStatus()
Gets the current meteor shower status.
~MeteorShower()
Destructor.
int getZHR()
Gets the current ZHR.
Main class of the Meteor Showers plugin, inherits from StelObjectModule.
int zhr
The catalog year (0 for generic)
Activity hasConfirmedShower(QDate date, bool &found) const
Checks if we have confirmed data for a given date.
QDate getPeak()
Gets the peak.
QString getDesignation() const
Gets the meteor shower id //!
A MeteorShower object represents one meteor shower on the sky.
QList< int > variable
The ZHR on peak.
void draw(StelCore *core)
Draw.
MeteorShower(MeteorShowersMgr *mgr, const QVariantMap &map)
Constructor.
bool enabled() const
Checks if this meteor shower is being displayed or not.
Activity hasGenericShower(QDate date, bool &found) const
Checks if we have generic data for a given date.
QDate start
The ZHR range when it's variable.
void update(StelCore *core, double deltaTime)
Update.