Stellarium 0.12.0
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · Renderer · 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, class StelRenderer *renderer)
 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.

Definition at line 30 of file MeteorMgr.hpp.


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,
class StelRenderer renderer 
) [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.

Definition at line 74 of file MeteorMgr.hpp.

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.

Definition at line 72 of file MeteorMgr.hpp.

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.


The documentation for this class was generated from the following file:
Generated on Thu Jan 31 14:05:43 2013 for Stellarium by  doxygen 1.6.3