Stellarium 0.14.3
|
This class manages a collection of MeteorShower objects. More...
#include <MeteorShowers.hpp>
Classes | |
struct | SearchResult |
Public Member Functions | |
MeteorShowers (MeteorShowersMgr *mgr) | |
Constructor. More... | |
virtual | ~MeteorShowers () |
Destructor. More... | |
virtual void | update (double deltaTime) |
Update. More... | |
virtual void | draw (StelCore *core) |
Draw. More... | |
void | loadMeteorShowers (const QVariantMap &map) |
Loads all meteor showers contained in a QVariantMap. More... | |
QList< SearchResult > | searchEvents (QDate dateFrom, QDate dateTo) const |
Find all meteor_shower events in a given date interval. More... | |
virtual QList< StelObjectP > | searchAround (const Vec3d &v, double limitFov, const StelCore *core) const |
virtual StelObjectP | searchByNameI18n (const QString &nameI18n) const |
virtual StelObjectP | searchByName (const QString &name) const |
virtual QStringList | listMatchingObjectsI18n (const QString &objPrefix, int maxNbItem=5, bool useStartOfWords=false) const |
virtual QStringList | listMatchingObjects (const QString &objPrefix, int maxNbItem=5, bool useStartOfWords=false) const |
virtual QStringList | listAllObjects (bool inEnglish) const |
virtual QString | getName () const |
Public Member Functions inherited from MeteorShowersMgr | |
MeteorShowersMgr () | |
Constructor. More... | |
virtual | ~MeteorShowersMgr () |
Destructor. More... | |
bool | restoreDefaultCatalog (const QString &destination) |
Restore default catalog. More... | |
StelTextureSP | getBolideTexture () |
Gets the bolide texture. More... | |
StelTextureSP | getPointerTexture () |
Gets the pointer texture. More... | |
StelTextureSP | getRadiantTexture () |
Gets the radiant texture. More... | |
MeteorShowers * | getMeteorShowers () |
Gets the MeteorShowers instance. More... | |
void | setEnablePlugin (const bool &b) |
Enable/disable the meteor showers plugin. More... | |
bool | getEnablePlugin () |
bool | getActiveRadiantOnly () |
True if user wants to see the active radiants only. More... | |
bool | getShowEnableButton () |
Get the status of the enable button on the toolbar. More... | |
bool | getShowSearchButton () |
Get the status of the search button on the toolbar. More... | |
void | setColorARG (const Vec3f &rgb) |
Set the color of the active radiant based on generic data. More... | |
Vec3f | getColorARG () |
void | setColorARC (const Vec3f &rgb) |
Set the color of the active radiant based on confirmed data. More... | |
Vec3f | getColorARC () |
void | setColorIR (const Vec3f &rgb) |
Set the color of the inactive radiant. More... | |
Vec3f | getColorIR () |
bool | getEnableAtStartup () |
True if the plugin is enabled at Stellarium startup. More... | |
int | getFontSize () |
Set the font size (used on radiant labels). More... | |
QFont | getFont () |
Get the font. More... | |
bool | getEnableLabels () |
Enable/disable radiant labels. More... | |
bool | getEnableMarker () |
Enable/disable radiant marker. More... | |
int | getUpdateFrequencyHours () |
Gets the update frequency in hours. More... | |
bool | getEnableAutoUpdates () |
Enable/disable catalog updates from the internet. More... | |
void | setUrl (const QString &url) |
Set the URL for downloading the meteor showers catalog. More... | |
QString | getUrl () |
void | setLastUpdate (const QDateTime &datetime) |
Set the date and time of last update. More... | |
QDateTime | getLastUpdate () |
void | setStatusOfLastUpdate (const int &downloadStatus) |
Set the status of the last update. More... | |
DownloadStatus | getStatusOfLastUpdate () |
QDateTime | getNextUpdate () |
Gets the date of the next update. More... | |
void | repaint () |
It's useful to force the update() and draw(). More... | |
virtual void | init () |
virtual void | deinit () |
virtual double | getCallOrder (StelModuleActionName actionName) const |
virtual bool | configureGui (bool show=true) |
virtual QStringList | listAllObjectsByType (const QString &, bool) const |
Additional Inherited Members | |
Public Types inherited from MeteorShowersMgr | |
enum | DownloadStatus { OUTDATED, UPDATING, UPDATED, FAILED } |
Public Slots inherited from MeteorShowersMgr | |
void | setEnableAtStartup (const bool &b) |
Enable the meteor showers plugin at Stellarium startup. More... | |
void | setShowEnableButton (const bool &show) |
Show/hide the button that enable/disable the meteor showers plugin. More... | |
void | setShowSearchButton (const bool &show) |
Show/hide the button that opens the search dialog. More... | |
void | setEnableMarker (const bool &b) |
Enable/disable radiant marker. More... | |
void | setActiveRadiantOnly (const bool &b) |
True if user wants to see the active radiants only. More... | |
void | setEnableLabels (const bool &b) |
Enable/disable radiant labels. More... | |
void | setFontSize (int pixelSize) |
Set the font size (used on radiant labels). More... | |
void | setUpdateFrequencyHours (const int &hours) |
Set the update frequency in hours. More... | |
void | setEnableAutoUpdates (const bool &b) |
Enable/disable automatic catalog updates from the internet. More... | |
void | updateCatalog () |
Download the Meteor Showers catalog from the Internet. More... | |
void | restoreDefaultSettings () |
Restore default settings. More... | |
void | displayMessage (const QString &message, const QString hexColor="#999999") |
Display a message. This is used for plugin-specific warnings and such. More... | |
void | messageTimeout () |
Signals inherited from MeteorShowersMgr | |
void | downloadStatusChanged (DownloadStatus) |
This class manages a collection of MeteorShower objects.
It inherits from MeteorShowersMgr and is basically used to reimplement the methods defined in the StelObjectModule class.
Definition at line 34 of file MeteorShowers.hpp.
MeteorShowers::MeteorShowers | ( | MeteorShowersMgr * | mgr | ) |
Constructor.
|
virtual |
Destructor.
|
virtual |
Draw.
Reimplemented from MeteorShowersMgr.
void MeteorShowers::loadMeteorShowers | ( | const QVariantMap & | map | ) |
Loads all meteor showers contained in a QVariantMap.
map |
QList<SearchResult> MeteorShowers::searchEvents | ( | QDate | dateFrom, |
QDate | dateTo | ||
) | const |
Find all meteor_shower events in a given date interval.
dateFrom | |
dateTo |
|
virtual |
Update.
deltaTime | the time increment in seconds since the last call. |
Reimplemented from MeteorShowersMgr.