![]() |
Home · All Namespaces · All Classes · Functions · Coding Style · Plugins · File Structure |
#include <MeteorMgr.hpp>
Inherits StelModule.
Public Slots | |
int | getZHR (void) |
void | setZHR (int zhr) |
void | setFlagShow (bool b) |
bool | getFlagShow (void) const |
void | setMaxVelocity (int maxv) |
Public Member Functions | |
MeteorMgr (int zhr, int maxv) | |
virtual void | init () |
virtual void | draw (StelCore *core) |
virtual void | update (double deltaTime) |
virtual double | getCallOrder (StelModuleActionName actionName) const |
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::init | ( | ) | [virtual] |
virtual void MeteorMgr::draw | ( | StelCore * | core | ) | [virtual] |
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.
virtual double MeteorMgr::getCallOrder | ( | StelModuleActionName | actionName | ) | const [virtual] |
int MeteorMgr::getZHR | ( | void | ) | [slot] |
Get the current zenith hourly rate.
void MeteorMgr::setZHR | ( | int | zhr | ) | [slot] |
Set the zenith hourly rate.
void MeteorMgr::setFlagShow | ( | bool | b | ) | [inline, slot] |
Set flag used to turn on and off meteor rendering.
bool MeteorMgr::getFlagShow | ( | void | ) | const [inline, slot] |
Get value of flag used to turn on and off meteor rendering.
void MeteorMgr::setMaxVelocity | ( | int | maxv | ) | [slot] |
Set the maximum velocity in km/s.