Stellarium 0.13.1
List of all members | Public Slots | Signals | Public Member Functions | Static Public Attributes | 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)
 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 delete, and before the openGL context is suppressed. 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 handlePinch (qreal scale, bool started)
 Handle pinch gesture events. More...
 
virtual bool configureGui (bool show=true)
 Detect or show the configuration GUI elements for the module. More...
 

Static Public Attributes

static const double zhrToWsr
 Factor to convert from zhr to whole earth per second rate. 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...
 
- Protected Member Functions inherited from StelModule
class StelActionaddAction (const QString &id, const QString &groupId, const QString &text, QObject *target, const char *slot, const QString &shortcut="", const QString &altShortcut="")
 convenience methods to add an action to the StelActionMgr object. More...
 
class StelActionaddAction (const QString &id, const QString &groupId, const QString &text, const char *slot, const QString &shortcut="", const QString &altShortcut="")
 convenience methods to add an action to the StelActionMgr object. More...
 

Detailed Description

Simulates a meteor shower.

Definition at line 31 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)
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 78 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 76 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.

Member Data Documentation

const double MeteorMgr::zhrToWsr
static

Factor to convert from zhr to whole earth per second rate.

Definition at line 65 of file MeteorMgr.hpp.


The documentation for this class was generated from the following file: