Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure

MeteorMgr Class Reference

Simulates meteor showers. More...

#include <MeteorMgr.hpp>

Inherits StelModule.

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)

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


Detailed Description

Simulates meteor showers.


Constructor & Destructor Documentation

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.


Member Function Documentation

virtual void MeteorMgr::init (  )  [virtual]

Initialize the MeteorMgr object.

Implements StelModule.

virtual void MeteorMgr::draw ( StelCore core  )  [virtual]

Draw meteors.

Reimplemented from StelModule.

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]

Defines the order in which the various modules are drawn.

Reimplemented from StelModule.

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.


Generated on Wed Jun 2 13:11:13 2010 for Stellarium by  doxygen 1.5.5