20 #ifndef _SPORADICMETEORMGR_HPP_ 21 #define _SPORADICMETEORMGR_HPP_ 23 #include "SporadicMeteor.hpp" 24 #include "StelModule.hpp" 32 Q_PROPERTY(
int zhr READ
getZHR WRITE
setZHR NOTIFY zhrChanged)
43 virtual void update(
double deltaTime);
72 QList<SporadicMeteor*> activeMeteors;
77 bool m_flagForcedShow;
80 #endif // _SPORADICMETEORMGR_HPP_ virtual double getCallOrder(StelModuleActionName actionName) const
Return the value defining the order of call for the given action For example if stars.callOrder[ActionDraw] == 10 and constellation.callOrder[ActionDraw] == 11, the stars module will be drawn before the constellations.
Main class for Stellarium core processing.
virtual void update(double deltaTime)
Update the module with respect to the time.
Simulates a sporadic meteor shower, with a random color and a random radiant.
SporadicMeteorMgr(int zhr, int maxv)
Constructor.
virtual void draw(StelCore *core)
Execute all the drawing functions for this module.
void setMaxVelocity(int maxv)
Set the maximum velocity in km/s.
int getZHR()
Get the current zenith hourly rate.
virtual void init()
Initialize itself.
bool getFlagForcedMeteorsActivity() const
Get flag for enable activity of meteors when atmosphere is disabled.
StelModuleActionName
Define the possible action for which an order is defined.
bool getFlagShow() const
Get value of flag used to turn on and off meteor rendering.
void setZHR(int zhr)
Set the zenith hourly rate.
QSharedPointer< StelTexture > StelTextureSP
Use shared pointer to simplify memory managment.
void setFlagForcedMeteorsActivity(bool b)
Set flag for enable activity of meteors when atmosphere is disabled.
void setFlagShow(bool b)
Set flag used to turn on and off meteor rendering.
This is the common base class for all the main components of stellarium.