Stellarium
0.20.4
|
Data Structures | |
class | MSConfigDialog |
Configuration window. More... | |
class | MSSearchDialog |
class | MeteorObj |
Models a single meteor. More... | |
class | MeteorShower |
A MeteorShower object represents one meteor shower on the sky. More... | |
class | MeteorShowers |
This class manages a collection of MeteorShower objects. More... | |
class | MeteorShowersMgr |
Main class of the Meteor Showers plugin, inherits from StelModule. More... | |
The Meteor Showers plugin displays meteor showers and a marker for each active and inactive radiant, showing real information about its activity.
Configuration
The plug-ins' configuration data is stored in Stellarium's main configuration file (section [MeteorShowers]).
class MSConfigDialog |
Public Slots | |
void | retranslate () |
Public Slots inherited from StelDialog | |
virtual void | retranslate ()=0 |
Retranslate the content of the dialog. More... | |
virtual void | setVisible (bool) |
On the first call with "true" populates the window contents. | |
virtual void | close () |
Closes the window (the window widget is not deleted, just not visible). | |
void | handleMovedTo (QPoint newPos) |
Adds dialog location to config.ini; should be connected in createDialogContent() | |
virtual void | handleDialogSizeChanged (QSizeF size) |
Stores dialog sizes into config.ini; should be connected from the proxy. More... | |
QString | getDialogName () const |
Public Member Functions | |
MSConfigDialog (MeteorShowersMgr *mgr) | |
Constructor. | |
~MSConfigDialog () | |
Destructor. | |
void | init () |
Initializes the components based on the current settings. | |
Public Member Functions inherited from StelDialog | |
StelDialog (QString dialogName="Default", QObject *parent=Q_NULLPTR) | |
virtual void | styleChanged () |
Notify that the application style changed. | |
bool | visible () const |
Returns true if the dialog contents have been constructed and are currently shown. | |
Protected Member Functions | |
void | createDialogContent () |
Initializes the dialog and connect the signals/slots. | |
Protected Member Functions inherited from StelDialog | |
void | connectColorButton (QToolButton *button, QString propertyName, QString iniName, QString moduleName="") |
Prepare a QToolButton so that it can receive and handle askColor() connections properly. More... | |
bool | askConfirmation () |
Additional Inherited Members | |
Signals inherited from StelDialog | |
void | visibleChanged (bool) |
Protected Slots inherited from StelDialog | |
void | askColor () |
To be called by a connected QToolButton with a color background. More... | |
void | enableKineticScrolling (bool b) |
enable kinetic scrolling. This should be connected to StelApp's StelGui signal flagUseKineticScrollingChanged. | |
void | handleFontChanged () |
connect from StelApp to handle font and font size changes. | |
Static Protected Member Functions inherited from StelDialog | |
static void | connectCheckBox (QAbstractButton *checkBox, const QString &actionName) |
Helper function to connect a checkbox to the StelAction with the specified name. | |
static void | connectCheckBox (QAbstractButton *checkBox, StelAction *action) |
Helper function to connect a checkbox to the given StelAction. | |
static void | connectIntProperty (QLineEdit *lineEdit, const QString &propName) |
Helper function to connect a QLineEdit to an integer StelProperty. More... | |
static void | connectIntProperty (QSpinBox *spinBox, const QString &propName) |
Helper function to connect a QSpinBox to an integer StelProperty. More... | |
static void | connectIntProperty (QComboBox *comboBox, const QString &propName) |
Helper function to connect a QComboBox to an integer StelProperty. More... | |
static void | connectIntProperty (QSlider *slider, const QString &propName, int minValue, int maxValue) |
Helper function to connect a QSlider to an double or float StelProperty. More... | |
static void | connectDoubleProperty (QDoubleSpinBox *spinBox, const QString &propName) |
Helper function to connect a QDoubleSpinBox to an double or float StelProperty. More... | |
static void | connectDoubleProperty (QSlider *slider, const QString &propName, double minValue, double maxValue) |
Helper function to connect a QSlider to an double or float StelProperty. More... | |
static void | connectStringProperty (QComboBox *comboBox, const QString &propName) |
Helper function to connect a QComboBox to an QString StelProperty. More... | |
static void | connectBoolProperty (QAbstractButton *checkBox, const QString &propName) |
Helper function to connect a checkbox to a bool StelProperty. More... | |
static void | connectBoolProperty (QGroupBox *checkBox, const QString &propName) |
Helper function to connect a groupbox to a bool StelProperty. More... | |
Protected Attributes inherited from StelDialog | |
QWidget * | dialog |
The main dialog. | |
class CustomProxy * | proxy |
QString | dialogName |
The name should be set in derived classes' constructors and can be used to store and retrieve the panel locations. | |
QList< QWidget * > | kineticScrollingList |
A list of widgets where kinetic scrolling can be activated or deactivated The list must be filled once, in the constructor or init() of fillDialog() etc. More... | |
Properties inherited from StelDialog | |
bool | visible |
class MSSearchDialog |
Public Types | |
enum | ModelColumns { ColumnName, ColumnZHR, ColumnDataType, ColumnPeak, ColumnCount } |
Defines the number and the order of the columns in the table that lists active meteor showers. More... | |
Public Slots | |
void | retranslate () |
Public Slots inherited from StelDialog | |
virtual void | retranslate ()=0 |
Retranslate the content of the dialog. More... | |
virtual void | setVisible (bool) |
On the first call with "true" populates the window contents. | |
virtual void | close () |
Closes the window (the window widget is not deleted, just not visible). | |
void | handleMovedTo (QPoint newPos) |
Adds dialog location to config.ini; should be connected in createDialogContent() | |
virtual void | handleDialogSizeChanged (QSizeF size) |
Stores dialog sizes into config.ini; should be connected from the proxy. More... | |
QString | getDialogName () const |
Public Member Functions | |
MSSearchDialog (MeteorShowersMgr *mgr) | |
Constructor. | |
~MSSearchDialog () | |
Destructor. | |
Public Member Functions inherited from StelDialog | |
StelDialog (QString dialogName="Default", QObject *parent=Q_NULLPTR) | |
virtual void | styleChanged () |
Notify that the application style changed. | |
bool | visible () const |
Returns true if the dialog contents have been constructed and are currently shown. | |
Protected Member Functions | |
void | createDialogContent () |
Initialize the dialog and connect the signals/slots. | |
Protected Member Functions inherited from StelDialog | |
void | connectColorButton (QToolButton *button, QString propertyName, QString iniName, QString moduleName="") |
Prepare a QToolButton so that it can receive and handle askColor() connections properly. More... | |
bool | askConfirmation () |
Additional Inherited Members | |
Signals inherited from StelDialog | |
void | visibleChanged (bool) |
Protected Slots inherited from StelDialog | |
void | askColor () |
To be called by a connected QToolButton with a color background. More... | |
void | enableKineticScrolling (bool b) |
enable kinetic scrolling. This should be connected to StelApp's StelGui signal flagUseKineticScrollingChanged. | |
void | handleFontChanged () |
connect from StelApp to handle font and font size changes. | |
Static Protected Member Functions inherited from StelDialog | |
static void | connectCheckBox (QAbstractButton *checkBox, const QString &actionName) |
Helper function to connect a checkbox to the StelAction with the specified name. | |
static void | connectCheckBox (QAbstractButton *checkBox, StelAction *action) |
Helper function to connect a checkbox to the given StelAction. | |
static void | connectIntProperty (QLineEdit *lineEdit, const QString &propName) |
Helper function to connect a QLineEdit to an integer StelProperty. More... | |
static void | connectIntProperty (QSpinBox *spinBox, const QString &propName) |
Helper function to connect a QSpinBox to an integer StelProperty. More... | |
static void | connectIntProperty (QComboBox *comboBox, const QString &propName) |
Helper function to connect a QComboBox to an integer StelProperty. More... | |
static void | connectIntProperty (QSlider *slider, const QString &propName, int minValue, int maxValue) |
Helper function to connect a QSlider to an double or float StelProperty. More... | |
static void | connectDoubleProperty (QDoubleSpinBox *spinBox, const QString &propName) |
Helper function to connect a QDoubleSpinBox to an double or float StelProperty. More... | |
static void | connectDoubleProperty (QSlider *slider, const QString &propName, double minValue, double maxValue) |
Helper function to connect a QSlider to an double or float StelProperty. More... | |
static void | connectStringProperty (QComboBox *comboBox, const QString &propName) |
Helper function to connect a QComboBox to an QString StelProperty. More... | |
static void | connectBoolProperty (QAbstractButton *checkBox, const QString &propName) |
Helper function to connect a checkbox to a bool StelProperty. More... | |
static void | connectBoolProperty (QGroupBox *checkBox, const QString &propName) |
Helper function to connect a groupbox to a bool StelProperty. More... | |
Protected Attributes inherited from StelDialog | |
QWidget * | dialog |
The main dialog. | |
class CustomProxy * | proxy |
QString | dialogName |
The name should be set in derived classes' constructors and can be used to store and retrieve the panel locations. | |
QList< QWidget * > | kineticScrollingList |
A list of widgets where kinetic scrolling can be activated or deactivated The list must be filled once, in the constructor or init() of fillDialog() etc. More... | |
Properties inherited from StelDialog | |
bool | visible |
class MeteorObj |
Public Member Functions | |
MeteorObj (const StelCore *, int speed, const float &radiantAlpha, const float &radiantDelta, const float &pidx, QList< Meteor::ColorPair > colors, const StelTextureSP &bolideTexture) | |
Create a Meteor object. More... | |
Public Member Functions inherited from Meteor | |
Meteor (const StelCore *core, const StelTextureSP &bolideTexture) | |
Create a Meteor object. | |
void | init (const float &radiantAlpha, const float &radiantDelta, const float &speed, const QList< ColorPair > colors) |
Initialize meteor. | |
virtual bool | update (double deltaTime) |
Updates the position of the meteor, and expires it if necessary. More... | |
virtual void | draw (const StelCore *core, StelPainter &sPainter) |
Draws the meteor. | |
bool | isAlive () const |
Indicate if the meteor still visible. | |
void | setAbsMag (float mag) |
Set meteor absolute magnitude. | |
float | absMag () const |
Get meteor absolute magnitude. | |
Additional Inherited Members | |
Public Types inherited from Meteor | |
typedef QPair< QString, int > | ColorPair |
<colorName, intensity> | |
MeteorObj::MeteorObj | ( | const StelCore * | , |
int | speed, | ||
const float & | radiantAlpha, | ||
const float & | radiantDelta, | ||
const float & | pidx, | ||
QList< Meteor::ColorPair > | colors, | ||
const StelTextureSP & | bolideTexture | ||
) |
class MeteorShower |
Details about the meteor showers are passed using a QVariant which contains a map of data from the json file.
Public Types | |
enum | Status { INVALID, UNDEFINED, INACTIVE, ACTIVE_CONFIRMED, ACTIVE_GENERIC } |
Public Types inherited from StelObject | |
enum | InfoStringGroupFlags { None = 0x00000000, Name = 0x00000001, CatalogNumber = 0x00000002, Magnitude = 0x00000004, RaDecJ2000 = 0x00000008, RaDecOfDate = 0x00000010, AltAzi = 0x00000020, Distance = 0x00000040, Elongation = 0x00000080, Size = 0x00000100, Velocity = 0x00000200, ProperMotion = 0x00000400, Extra = 0x00000800, HourAngle = 0x00001000, AbsoluteMagnitude = 0x00002000, GalacticCoord = 0x00004000, SupergalacticCoord = 0x00008000, OtherCoord = 0x00010000, ObjectType = 0x00020000, EclipticCoordJ2000 = 0x00040000, EclipticCoordOfDate = 0x00080000, IAUConstellation = 0x00100000, SiderealTime = 0x00200000, RTSTime = 0x00400000, Script = 0x00800000, DebugAid = 0x01000000, NoFont = 0x02000000, PlainText = 0x04000000 } |
Used as named bitfield flags as specifiers to filter results of getInfoString. More... | |
Public Member Functions | |
MeteorShower (MeteorShowersMgr *mgr, const QVariantMap &map) | |
Constructor. More... | |
~MeteorShower () | |
Destructor. | |
void | update (StelCore *core, double deltaTime) |
Update. More... | |
void | draw (StelCore *core) |
Draw. | |
Activity | hasGenericShower (QDate date, bool &found) const |
Checks if we have generic data for a given date. More... | |
Activity | hasConfirmedShower (QDate date, bool &found) const |
Checks if we have confirmed data for a given date. More... | |
bool | enabled () const |
Checks if this meteor shower is being displayed or not. More... | |
QString | getDesignation () const |
Gets the meteor shower id //! More... | |
Status | getStatus () |
Gets the current meteor shower status. More... | |
QDate | getPeak () |
Gets the peak. More... | |
int | getZHR () |
Gets the current ZHR. More... | |
virtual QString | getInfoString (const StelCore *core, const InfoStringGroup &flags) const |
Write I18n information about the object in QString. More... | |
virtual QVariantMap | getInfoMap (const StelCore *core) const |
Return a map like StelObject, but with a few extra tags: More... | |
virtual QString | getType (void) const |
Return object's type. It should be the name of the class. | |
virtual QString | getID (void) const |
Returns a unique identifier for this object. More... | |
virtual QString | getEnglishName (void) const |
Return object's name in english. | |
virtual QString | getNameI18n (void) const |
Return translated object's name. | |
virtual Vec3d | getJ2000EquatorialPos (const StelCore *) const |
Get observer-centered equatorial coordinates at equinox J2000. | |
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 Vec3f | getInfoColor (void) const |
Get a color used to display info about the object. | |
virtual double | getAngularSize (const StelCore *) const |
Return the angular radius of a circle containing the object as seen from the observer with the circle center assumed to be at getJ2000EquatorialPos(). More... | |
Public Member Functions inherited from StelObject | |
virtual SphericalRegionP | getRegion () const |
Default implementation of the getRegion method. More... | |
virtual Vec3d | getPointInRegion () const |
Default implementation of the getPointInRegion method. More... | |
Vec3d | getEquinoxEquatorialPos (const StelCore *core) const |
Get observer-centered equatorial coordinate at the current equinox The frame has its Z axis at the planet's current rotation axis At time 2000-01-01 this frame is almost the same as J2000, but ONLY if the observer is on earth. | |
Vec3d | getEquinoxEquatorialPosApparent (const StelCore *core) const |
Like getEquinoxEquatorialPos(core), but always adds refraction correction to the position. | |
Vec3d | getEquinoxEquatorialPosAuto (const StelCore *core) const |
Like getEquinoxEquatorialPos(core), but adds refraction correction to the position if atmosphere is active. | |
Vec3d | getGalacticPos (const StelCore *core) const |
Get observer-centered galactic coordinates. | |
Vec3d | getSupergalacticPos (const StelCore *core) const |
Get observer-centered supergalactic coordinates. | |
Vec3d | getSiderealPosGeometric (const StelCore *core) const |
Get observer-centered hour angle + declination (at current equinox) It is the geometric position, i.e. More... | |
Vec3d | getSiderealPosApparent (const StelCore *core) const |
Get observer-centered hour angle + declination (at current equinox) It is the apparent position, i.e. More... | |
Vec3d | getAltAzPosGeometric (const StelCore *core) const |
Get observer-centered alt/az position It is the geometric position, i.e. More... | |
Vec3d | getAltAzPosApparent (const StelCore *core) const |
Get observer-centered alt/az position It is the apparent position, i.e. More... | |
Vec3d | getAltAzPosAuto (const StelCore *core) const |
Get observer-centered alt/az position It is the automatic position, i.e. More... | |
float | getParallacticAngle (const StelCore *core) const |
Get parallactic angle, which is the deviation between zenith angle and north angle. [radians]. | |
bool | isAboveHorizon (const StelCore *core) const |
Checking position an object above mathematical horizon for current location. More... | |
bool | isAboveRealHorizon (const StelCore *core) const |
Checking position an object above real horizon for current location. More... | |
Vec3f | getRTSTime (StelCore *core) const |
Get today's time of rise, transit and set for celestial object for current location. More... | |
virtual float | getVMagnitude (const StelCore *core) const |
Return object's apparent V magnitude as seen from observer, without including extinction. | |
float | getVMagnitudeWithExtinction (const StelCore *core) const |
Return object's apparent V magnitude as seen from observer including extinction. More... | |
virtual double | getCloseViewFov (const StelCore *) const |
Return the best FOV in degree to use for a close view of the object. | |
virtual double | getSatellitesFov (const StelCore *) const |
Return the best FOV in degree to use for a global view of the object satellite system (if there are satellites) | |
virtual double | getParentSatellitesFov (const StelCore *) const |
Static Public Attributes | |
static const QString | METEORSHOWER_TYPE |
Static Public Attributes inherited from StelObject | |
static const InfoStringGroupFlags | AllInfo |
A pre-defined set of specifiers for the getInfoString flags argument to getInfoString. More... | |
static const InfoStringGroupFlags | ShortInfo = static_cast<InfoStringGroupFlags>(Name|CatalogNumber|Magnitude|RaDecJ2000) |
A pre-defined set of specifiers for the getInfoString flags argument to getInfoString. | |
Additional Inherited Members | |
Public Slots inherited from StelObject | |
virtual void | setExtraInfoString (const InfoStringGroup &flags, const QString &str) |
Allow additions to the Info String. More... | |
virtual void | addToExtraInfoString (const StelObject::InfoStringGroup &flags, const QString &str) |
Add str to the extra string. More... | |
QStringList | getExtraInfoStrings (const InfoStringGroup &flags) const |
Retrieve an (unsorted) QStringList of all extra info strings that match flags. More... | |
void | removeExtraInfoStrings (const InfoStringGroup &flags) |
Remove the extraInfoStrings with the given flags. More... | |
Protected Member Functions inherited from StelObject | |
QString | getCommonInfoString (const StelCore *core, const InfoStringGroup &flags) const |
Format the positional info string containing J2000/of date/altaz/hour angle positions and constellation, sidereal time, etc. More... | |
virtual QString | getMagnitudeInfoString (const StelCore *core, const InfoStringGroup &flags, const double alt_app, const int decimals=1) const |
Format the magnitude info string for the object. More... | |
void | postProcessInfoString (QString &str, const InfoStringGroup &flags) const |
Apply post processing on the info string. More... | |
MeteorShower::MeteorShower | ( | MeteorShowersMgr * | mgr, |
const QVariantMap & | map | ||
) |
map | QVariantMap containing all the data about a Meteor Shower. |
bool MeteorShower::enabled | ( | ) | const |
|
inlinevirtual |
Implements StelObject.
QString MeteorShower::getDesignation | ( | ) | const |
|
inlinevirtual |
The ID should be unique for all objects of the same type, but may freely conflict with IDs of other types, so getType() must also be tested.
With this it should be possible to at least identify the same object in a different instance of Stellarium running the same version, but it would even be better if the ID provides some degree of forward-compatibility. For some object types (e.g. planets) this may simply return getEnglishName(), but better candidates may be official designations or at least (stable) internal IDs.
An object may have multiple IDs (different catalog numbers, etc). StelObjectMgr::searchByID() should search through all ID variants, but this method only returns one of them.
Implements StelObject.
|
virtual |
Reimplemented from StelObject.
|
virtual |
core | the StelCore object to use |
flags | a set of InfoStringGroup flags which are used to filter the return value - including specified types of information and altering the output format. |
Implements StelObject.
|
inline |
|
inline |
|
inline |
Activity MeteorShower::hasConfirmedShower | ( | QDate | date, |
bool & | found | ||
) | const |
date | QDate |
Activity MeteorShower::hasGenericShower | ( | QDate | date, |
bool & | found | ||
) | const |
date | QDate |
void MeteorShower::update | ( | StelCore * | core, |
double | deltaTime | ||
) |
deltaTime | the time increment in seconds since the last call. |
class MeteorShowers |
It inherits from MeteorShowersMgr and is basically used to reimplement the methods defined in the StelObjectModule class.
Public Member Functions | |
MeteorShowers (MeteorShowersMgr *mgr) | |
Constructor. | |
virtual void | init (void) |
Initialize itself. More... | |
virtual | ~MeteorShowers () |
Destructor. | |
virtual void | update (double deltaTime) |
Update. More... | |
virtual void | draw (StelCore *core) |
Draw. | |
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 |
Search for StelObject in an area around a specified point. More... | |
virtual StelObjectP | searchByNameI18n (const QString &nameI18n) const |
Find a StelObject by name. More... | |
virtual StelObjectP | searchByName (const QString &name) const |
Return the matching StelObject if exists or the empty StelObject if not found. More... | |
virtual StelObjectP | searchByID (const QString &id) const |
Return the StelObject with the given ID if exists or the empty StelObject if not found. More... | |
virtual QStringList | listMatchingObjects (const QString &objPrefix, int maxNbItem=5, bool useStartOfWords=false, bool inEnglish=false) const |
Find and return the list of at most maxNbItem objects auto-completing passed object name. More... | |
virtual QStringList | listAllObjects (bool inEnglish) const |
List all StelObjects. More... | |
virtual QString | getName () const |
Gets a user-displayable name of the object category. | |
virtual QString | getStelObjectType () const |
Returns the name that will be returned by StelObject::getType() for the objects this module manages. | |
Public Member Functions inherited from StelObjectModule | |
virtual QStringList | listAllObjectsByType (const QString &objType, bool inEnglish) const |
List all StelObjects by type. More... | |
bool | matchObjectName (const QString &objName, const QString &objPrefix, bool useStartOfWords) const |
Auxiliary method of listMatchingObjects() More... | |
Public Member Functions inherited from StelModule | |
virtual void | deinit () |
Called before the module will be delete, and before the openGL context is suppressed. More... | |
virtual QSettings * | getSettings () |
Return module-specific settings. More... | |
virtual QString | getModuleVersion () const |
Get the version of the module, default is stellarium main version. | |
virtual QString | getAuthorName () const |
Get the name of the module author. | |
virtual QString | getAuthorEmail () const |
Get the email adress of the module author. | |
virtual void | handleMouseClicks (class QMouseEvent *) |
Handle mouse clicks. More... | |
virtual void | handleMouseWheel (class QWheelEvent *) |
Handle mouse wheel. More... | |
virtual bool | handleMouseMoves (int x, int y, Qt::MouseButtons b) |
Handle mouse moves. More... | |
virtual void | handleKeys (class QKeyEvent *e) |
Handle key events. More... | |
virtual bool | handlePinch (qreal scale, bool started) |
Handle pinch gesture events. More... | |
virtual double | getCallOrder (StelModuleActionName actionName) const |
Return the value defining the order of call for the given action For example if stars.callOrder[ActionDraw] == 10 and constellation.callOrder[ActionDraw] == 11, the stars module will be drawn before the constellations. More... | |
virtual bool | configureGui (bool show=true) |
Detect or show the configuration GUI elements for the module. More... | |
Additional Inherited Members | |
Public Types inherited from StelModule | |
enum | StelModuleSelectAction { AddToSelection, ReplaceSelection, RemoveFromSelection } |
Enum used when selecting objects to define whether to add to, replace, or remove from the existing selection list. More... | |
enum | StelModuleActionName { ActionDraw, ActionUpdate, ActionHandleMouseClicks, ActionHandleMouseMoves, ActionHandleKeys } |
Define the possible action for which an order is defined. More... | |
Protected Member Functions inherited from StelModule | |
class StelAction * | addAction (const QString &id, const QString &groupId, const QString &text, QObject *target, const char *slot, const QString &shortcut="", const QString &altShortcut="") |
convenience methods to add an action (call to slot) to the StelActionMgr object. More... | |
class StelAction * | addAction (const QString &id, const QString &groupId, const QString &text, const char *slot, const QString &shortcut="", const QString &altShortcut="") |
convenience methods to add an action (call to own slot) to the StelActionMgr object. More... | |
StelAction * | addAction (const QString &id, const QString &groupId, const QString &text, QObject *contextObject, std::function< void()> lambda, const QString &shortcut="", const QString &altShortcut="") |
convenience methods to add an action (call to Lambda functor) to the StelActionMgr object. More... | |
|
inlinevirtual |
If the initialization takes significant time, the progress should be displayed on the loading bar.
Implements StelModule.
|
virtual |
inEnglish | list names in English (true) or translated (false) |
Implements StelObjectModule.
|
virtual |
objPrefix | the first letters of the searched object |
maxNbItem | the maximum number of returned object names |
useStartOfWords | decide if start of word is searched |
inEnglish | list translated names (false) or in English (true) |
Reimplemented from StelObjectModule.
void MeteorShowers::loadMeteorShowers | ( | const QVariantMap & | map | ) |
map |
|
virtual |
The function searches in a disk of diameter limitFov centered on v. Only visible objects (i.e. currently displayed on screen) should be returned.
v | equatorial position at epoch J2000. |
limitFov | angular diameter of the searching zone in degree. |
core | the core instance to use. |
Implements StelObjectModule.
|
virtual |
name | the english object name |
Implements StelObjectModule.
|
virtual |
name | the english object name |
Implements StelObjectModule.
|
virtual |
nameI18n | The translated name for the current sky locale. |
Implements StelObjectModule.
QList<SearchResult> MeteorShowers::searchEvents | ( | QDate | dateFrom, |
QDate | dateTo | ||
) | const |
dateFrom | |
dateTo |
|
virtual |
deltaTime | the time increment in seconds since the last call. |
Implements StelModule.
class MeteorShowersMgr |
Public Types | |
enum | DownloadStatus { OUTDATED, UPDATING, UPDATED, FAILED } |
Public Types inherited from StelModule | |
enum | StelModuleSelectAction { AddToSelection, ReplaceSelection, RemoveFromSelection } |
Enum used when selecting objects to define whether to add to, replace, or remove from the existing selection list. More... | |
enum | StelModuleActionName { ActionDraw, ActionUpdate, ActionHandleMouseClicks, ActionHandleMouseMoves, ActionHandleKeys } |
Define the possible action for which an order is defined. More... | |
Public Slots | |
void | setEnableAtStartup (const bool &b) |
Enable the meteor showers plugin at Stellarium startup. More... | |
bool | getEnableAtStartup () |
True if the plugin is enabled at Stellarium startup. More... | |
void | setShowEnableButton (const bool &show) |
Show/hide the button that enable/disable the meteor showers plugin. More... | |
bool | getShowEnableButton () |
Get the status of the enable button on the toolbar. More... | |
void | setShowSearchButton (const bool &show) |
Show/hide the button that opens the search dialog. More... | |
bool | getShowSearchButton () |
Get the status of the search button on the toolbar. More... | |
void | setEnableMarker (const bool &b) |
Enable/disable radiant marker. More... | |
bool | getEnableMarker () |
Enable/disable radiant marker. More... | |
void | setActiveRadiantOnly (const bool &b) |
True if user wants to see the active radiants only. More... | |
bool | getActiveRadiantOnly () |
True if user wants to see the active radiants only. More... | |
void | setEnableLabels (const bool &b) |
Enable/disable radiant labels. More... | |
bool | getEnableLabels () |
Enable/disable radiant labels. More... | |
void | setFontSize (int pixelSize) |
Set the font size (used on radiant labels). More... | |
int | getFontSize () |
Set the font size (used on radiant labels). More... | |
void | setUpdateFrequencyHours (const int &hours) |
Set the update frequency in hours. More... | |
int | getUpdateFrequencyHours () |
Gets the update frequency in hours. More... | |
void | setEnableAutoUpdates (const bool &b) |
Enable/disable automatic catalog updates from the internet. More... | |
bool | getEnableAutoUpdates () |
Enable/disable catalog updates from the internet. 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 () |
void | updateCatalog () |
Download the Meteor Showers catalog from the Internet. | |
void | restoreDefaultSettings () |
Restore default settings. | |
void | displayMessage (const QString &message, const QString hexColor="#999999") |
Display a message. This is used for plugin-specific warnings and such. | |
Signals | |
void | downloadStatusChanged (DownloadStatus) |
void | enablePluginChanged (bool b) |
void | enableLabelsChanged (bool b) |
Public Member Functions | |
MeteorShowersMgr () | |
Constructor. | |
virtual | ~MeteorShowersMgr () |
Destructor. | |
bool | restoreDefaultCatalog (const QString &destination) |
Restore default catalog. | |
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. | |
bool | getEnablePlugin () |
QFont | getFont () |
Get the font. | |
void | setUrl (const QString &url) |
Set the URL for downloading the meteor showers catalog. | |
QString | getUrl () |
void | setLastUpdate (const QDateTime &datetime) |
Set the date and time of last update. | |
QDateTime | getLastUpdate () |
void | setStatusOfLastUpdate (const int &downloadStatus) |
Set the status of the last update. | |
DownloadStatus | getStatusOfLastUpdate () |
QDateTime | getNextUpdate () |
Gets the date of the next update. | |
void | repaint () |
It's useful to force the update() and draw(). | |
virtual void | init () |
Initialize itself. More... | |
virtual void | deinit () |
Called before the module will be delete, and before the openGL context is suppressed. More... | |
virtual void | update (double deltaTime) |
Update the module with respect to the time. More... | |
virtual void | draw (StelCore *core) |
Execute all the drawing functions for this module. More... | |
virtual double | getCallOrder (StelModuleActionName actionName) const |
Return the value defining the order of call for the given action For example if stars.callOrder[ActionDraw] == 10 and constellation.callOrder[ActionDraw] == 11, the stars module will be drawn before the constellations. More... | |
virtual bool | configureGui (bool show=true) |
Detect or show the configuration GUI elements for the module. More... | |
Public Member Functions inherited from StelModule | |
virtual QSettings * | getSettings () |
Return module-specific settings. More... | |
virtual QString | getModuleVersion () const |
Get the version of the module, default is stellarium main version. | |
virtual QString | getAuthorName () const |
Get the name of the module author. | |
virtual QString | getAuthorEmail () const |
Get the email adress of the module author. | |
virtual void | handleMouseClicks (class QMouseEvent *) |
Handle mouse clicks. More... | |
virtual void | handleMouseWheel (class QWheelEvent *) |
Handle mouse wheel. More... | |
virtual bool | handleMouseMoves (int x, int y, Qt::MouseButtons b) |
Handle mouse moves. More... | |
virtual void | handleKeys (class QKeyEvent *e) |
Handle key events. More... | |
virtual bool | handlePinch (qreal scale, bool started) |
Handle pinch gesture events. More... | |
Properties | |
bool | enablePlugin |
bool | enableLabels |
Additional Inherited Members | |
Protected Member Functions inherited from StelModule | |
class StelAction * | addAction (const QString &id, const QString &groupId, const QString &text, QObject *target, const char *slot, const QString &shortcut="", const QString &altShortcut="") |
convenience methods to add an action (call to slot) to the StelActionMgr object. More... | |
class StelAction * | addAction (const QString &id, const QString &groupId, const QString &text, const char *slot, const QString &shortcut="", const QString &altShortcut="") |
convenience methods to add an action (call to own slot) to the StelActionMgr object. More... | |
StelAction * | addAction (const QString &id, const QString &groupId, const QString &text, QObject *contextObject, std::function< void()> lambda, const QString &shortcut="", const QString &altShortcut="") |
convenience methods to add an action (call to Lambda functor) to the StelActionMgr object. More... | |
|
virtual |
This is to be used with plugins to display a configuration dialog from the plugin list window.
show | if true, make the configuration GUI visible. If false, hide the config GUI if there is one. |
Reimplemented from StelModule.
|
virtual |
Deinitialize all openGL texture in this method.
Reimplemented from StelModule.
|
virtual |
core | the core to use for the drawing |
Reimplemented from StelModule.
|
inlineslot |
|
inline |
|
virtual |
actionName | the name of the action for which we want the call order |
Reimplemented from StelModule.
|
inlineslot |
|
inlineslot |
|
inlineslot |
|
inlineslot |
|
inlineslot |
|
inlineslot |
|
inlineslot |
|
inlineslot |
|
inline |
|
inline |
|
inline |
|
inlineslot |
|
inlineslot |
|
inlineslot |
|
virtual |
If the initialization takes significant time, the progress should be displayed on the loading bar.
Implements StelModule.
|
slot |
b | boolean flag // example of usage in scripts MeteorShowers.setActiveRadiantOnly(true); |
|
slot |
|
slot |
|
slot |
|
slot |
b | boolean flag |
|
slot |
b | boolean flag |
|
slot |
b | boolean flag // example of usage in scripts MeteorShowers.setEnableLabels(true); |
|
slot |
b | boolean flag // example of usage in scripts MeteorShowers.setEnableMarker(true); |
|
slot |
pixelSize | size of font // example of usage in scripts MeteorShowers.setFontSize(15); |
|
slot |
b | boolean flag |
|
slot |
b | boolean flag |
|
slot |
hours | update frequency in hours |
|
virtual |
deltaTime | the time increment in second since last call. |
Implements StelModule.