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" 118 virtual QString
getType(
void)
const {
return "MeteorShower"; }
120 virtual QString
getNameI18n(
void)
const {
return q_(m_designation.trimmed()); }
132 QString m_designation;
133 QList<Activity> m_activities;
141 QList<Meteor::ColorPair> m_colors;
145 double m_radiantAlpha;
146 double m_radiantDelta;
149 QList<MeteorObj*> m_activeMeteors;
159 int calculateZHR(
const double& currentJD);
164 static QString getSolarLongitude(QDate date);
virtual QString getEnglishName(void) const
Return object's name in english.
QDate finish
Initial date of activity.
The base abstract class for sky objects used in Stellarium like Stars, Planets, Constellations etc...
QDate peak
Last date of activity.
Define the StelTextureSP type.
Status getStatus()
Gets the current meteor shower status.
~MeteorShower()
Destructor.
int getZHR()
Gets the current ZHR.
Main class for Stellarium core processing.
Main class of the Meteor Showers plugin, inherits from StelObjectModule.
int zhr
The catalog year (0 for generic)
#define q_(str)
Return the gettext translated english text str using the current global translator.
Activity hasConfirmedShower(QDate date, bool &found) const
Checks if we have confirmed data for a given date.
QDate getPeak()
Gets the peak.
Define some translation macros.
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.
virtual Vec3d getJ2000EquatorialPos(const StelCore *) const
Get observer-centered equatorial coordinates at equinox J2000.
void draw(StelCore *core)
Draw.
MeteorShower(MeteorShowersMgr *mgr, const QVariantMap &map)
Constructor.
virtual float getSelectPriority(const StelCore *) const
Return a priority value which is used to discriminate objects by priority As for magnitudes, the lower is the higher priority.
virtual QString getInfoString(const StelCore *core, const InfoStringGroup &flags) const
Write I18n information about the object in QString.
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.
virtual QString getNameI18n(void) const
Return translated object's name.
virtual Vec3f getInfoColor(void) const
Get a color used to display info about the object.
QDate start
The ZHR range when it's variable.
virtual QVariantMap getInfoMap(const StelCore *core) const
Return a map like StelObject, but with a few extra tags:
virtual double getAngularSize(const StelCore *) const
Return the angular radius of a circle containing the object as seen from the observer with the circle...
virtual QString getType(void) const
Return object's type. It should be the name of the class.
void update(StelCore *core, double deltaTime)
Update.