Stellarium 0.12.2
List of all members | Public Slots | Signals | Public Member Functions | Properties
MeteorMgr Class Reference

Simulates a meteor shower. More...

#include <MeteorMgr.hpp>

Public Slots

int getZHR (void)
 Get the current zenith hourly rate. More...
 
void setZHR (int zhr)
 Set the zenith hourly rate. More...
 
void setFlagShow (bool b)
 Set flag used to turn on and off meteor rendering. More...
 
bool getFlagShow (void) const
 Get value of flag used to turn on and off meteor rendering. More...
 
void setMaxVelocity (int maxv)
 Set the maximum velocity in km/s. More...
 

Signals

void zhrChanged (int)
 

Public Member Functions

 MeteorMgr (int zhr, int maxv)
 Construct a MeteorMgr object. More...
 
virtual void init ()
 Initialize the MeteorMgr object. More...
 
virtual void draw (StelCore *core, class StelRenderer *renderer)
 Draw meteors. More...
 
virtual void update (double deltaTime)
 Update time-dependent parts of the module. More...
 
virtual double getCallOrder (StelModuleActionName actionName) const
 Defines the order in which the various modules are drawn. More...
 
- Public Member Functions inherited from StelModule
virtual void deinit ()
 Called before the module will be deleted, and before the renderer is destroyed. More...
 
virtual bool drawPartial (StelCore *core, class StelRenderer *renderer)
 Iterate through the drawing sequence. More...
 
virtual QString getModuleVersion () const
 Get the version of the module, default is stellarium main version. More...
 
virtual QString getAuthorName () const
 Get the name of the module author. More...
 
virtual QString getAuthorEmail () const
 Get the email adress of the module author. More...
 
virtual void handleMouseClicks (class QMouseEvent *)
 Handle mouse clicks. More...
 
virtual void handleMouseWheel (class QWheelEvent *)
 Handle mouse wheel. More...
 
virtual bool handleMouseMoves (int x, int y, Qt::MouseButtons b)
 Handle mouse moves. More...
 
virtual void handleKeys (class QKeyEvent *e)
 Handle key events. More...
 
virtual bool configureGui (bool show=true)
 Detect or show the configuration GUI elements for the module. More...
 

Properties

int ZHR
 

Additional Inherited Members

- Public Types inherited from StelModule
enum  StelModuleSelectAction { AddToSelection, ReplaceSelection, RemoveFromSelection }
 Enum used when selecting objects to define whether to add to, replace, or remove from the existing selection list. More...
 
enum  StelModuleActionName {
  ActionDraw, ActionUpdate, ActionHandleMouseClicks, ActionHandleMouseMoves,
  ActionHandleKeys
}
 Define the possible action for which an order is defined. More...
 

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

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)
inlineslot

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: