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

MeteorMgr Class Reference

Simulates a meteor shower. More...

#include <MeteorMgr.hpp>

List of all members.

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

Detailed Description

Simulates a meteor shower.


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::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.

Generated on Sat Aug 25 22:13:31 2012 for Stellarium by  doxygen 1.6.3