Stellarium 0.11.2
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure
Public Slots | Signals | Public Member Functions | Properties
MeteorMgr Class Reference

Simulates a meteor shower. More...

#include <MeteorMgr.hpp>

List of all members.

Public Slots

int getZHR (void)
void setZHR (int zhr)
void setFlagShow (bool b)
bool getFlagShow (void) const
void setMaxVelocity (int maxv)

Signals

void zhrChanged (int)

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

Properties

int ZHR

Detailed Description

Simulates a meteor shower.


Constructor & Destructor Documentation

MeteorMgr::MeteorMgr ( int  zhr,
int  maxv 
)

Construct a MeteorMgr object.

Parameters:
zhrthe base zenith hourly rate - i.e. the rate when there is no meteor shower in progress.
maxvthe initial value of the maximum meteor velocity.

Member Function Documentation

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.