Simulates a meteor shower.
More...
#include <MeteorMgr.hpp>
|
static const double | zhrToWsr |
| Factor to convert from zhr to whole earth per second rate. More...
|
|
|
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...
|
|
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 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 to the StelActionMgr object. More...
|
|
Simulates a meteor shower.
Definition at line 31 of file MeteorMgr.hpp.
MeteorMgr::MeteorMgr |
( |
int |
zhr, |
|
|
int |
maxv |
|
) |
| |
Construct a MeteorMgr object.
- Parameters
-
zhr | the base zenith hourly rate - i.e. the rate when there is no meteor shower in progress. |
maxv | the initial value of the maximum meteor velocity. |
virtual void MeteorMgr::draw |
( |
StelCore * |
core | ) |
|
|
virtual |
Defines the order in which the various modules are drawn.
Reimplemented from StelModule.
bool MeteorMgr::getFlagShow |
( |
void |
| ) |
const |
|
inlineslot |
Get value of flag used to turn on and off meteor rendering.
Definition at line 78 of file MeteorMgr.hpp.
int MeteorMgr::getZHR |
( |
void |
| ) |
|
|
slot |
Get the current zenith hourly rate.
virtual void MeteorMgr::init |
( |
| ) |
|
|
virtual |
void MeteorMgr::setFlagShow |
( |
bool |
b | ) |
|
|
inlineslot |
Set flag used to turn on and off meteor rendering.
Definition at line 76 of file MeteorMgr.hpp.
void MeteorMgr::setMaxVelocity |
( |
int |
maxv | ) |
|
|
slot |
Set the maximum velocity in km/s.
void MeteorMgr::setZHR |
( |
int |
zhr | ) |
|
|
slot |
Set the zenith hourly rate.
virtual void MeteorMgr::update |
( |
double |
deltaTime | ) |
|
|
virtual |
Update time-dependent parts of the module.
This function adds new meteors to the list of currently visiable ones based on the current rate, and removes those which have run their course.
Implements StelModule.
const double MeteorMgr::zhrToWsr |
|
static |
Factor to convert from zhr to whole earth per second rate.
Definition at line 65 of file MeteorMgr.hpp.
The documentation for this class was generated from the following file: