Stellarium 0.11.4 | |||
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure |
Simulates a meteor shower. More...
#include <MeteorMgr.hpp>
Public Slots | |
int | getZHR (void) |
Get the current zenith hourly rate. | |
void | setZHR (int zhr) |
Set the zenith hourly rate. | |
void | setFlagShow (bool b) |
Set flag used to turn on and off meteor rendering. | |
bool | getFlagShow (void) const |
Get value of flag used to turn on and off meteor rendering. | |
void | setMaxVelocity (int maxv) |
Set the maximum velocity in km/s. | |
Signals | |
void | zhrChanged (int) |
Public Member Functions | |
MeteorMgr (int zhr, int maxv) | |
Construct a MeteorMgr object. | |
virtual void | init () |
Initialize the MeteorMgr object. | |
virtual void | draw (StelCore *core) |
Draw meteors. | |
virtual void | update (double deltaTime) |
Update time-dependent parts of the module. | |
virtual double | getCallOrder (StelModuleActionName actionName) const |
Defines the order in which the various modules are drawn. | |
Properties | |
int | ZHR |
Simulates a meteor shower.
MeteorMgr::MeteorMgr | ( | int | zhr, | |
int | maxv | |||
) |
Construct a MeteorMgr object.
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] |
Draw meteors.
Reimplemented from StelModule.
virtual double MeteorMgr::getCallOrder | ( | StelModuleActionName | actionName | ) | const [virtual] |
Defines the order in which the various modules are drawn.
Reimplemented from StelModule.
bool MeteorMgr::getFlagShow | ( | void | ) | const [inline, slot] |
Get value of flag used to turn on and off meteor rendering.
int MeteorMgr::getZHR | ( | void | ) | [slot] |
Get the current zenith hourly rate.
virtual void MeteorMgr::init | ( | ) | [virtual] |
Initialize the MeteorMgr object.
Implements StelModule.
void MeteorMgr::setFlagShow | ( | bool | b | ) | [inline, slot] |
Set flag used to turn on and off meteor rendering.
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.