Stellarium 0.14.3
List of all members | Classes | Public Types | Public Member Functions
MeteorShower Class Reference

A MeteorShower object represents one meteor shower on the sky. More...

#include <MeteorShower.hpp>

Classes

struct  Activity
 

Public Types

enum  Status {
  INVALID, UNDEFINED, INACTIVE, ACTIVE_CONFIRMED,
  ACTIVE_GENERIC
}
 

Public Member Functions

 MeteorShower (MeteorShowersMgr *mgr, const QVariantMap &map)
 Constructor. More...
 
 ~MeteorShower ()
 Destructor. More...
 
void update (StelCore *core, double deltaTime)
 Update. More...
 
void draw (StelCore *core)
 Draw. More...
 
Activity hasGenericShower (QDate date, bool &found) const
 Checks if we have generic data for a given date. More...
 
Activity hasConfirmedShower (QDate date, bool &found) const
 Checks if we have confirmed data for a given date. More...
 
bool enabled () const
 Checks if this meteor shower is being displayed or not. More...
 
QString getDesignation () const
 Gets the meteor shower id //! More...
 
Status getStatus ()
 Gets the current meteor shower status. More...
 
QDate getPeak ()
 Gets the peak. More...
 
int getZHR ()
 Gets the current ZHR. More...
 
virtual QString getInfoString (const StelCore *core, const InfoStringGroup &flags) const
 
virtual QString getType (void) const
 
virtual QString getEnglishName (void) const
 
virtual QString getNameI18n (void) const
 
virtual Vec3d getJ2000EquatorialPos (const StelCore *) const
 
virtual float getSelectPriority (const StelCore *) const
 
virtual Vec3f getInfoColor (void) const
 
virtual double getAngularSize (const StelCore *) const
 

Detailed Description

A MeteorShower object represents one meteor shower on the sky.

Details about the meteor showers are passed using a QVariant which contains a map of data from the json file.

Definition at line 37 of file MeteorShower.hpp.

Constructor & Destructor Documentation

MeteorShower::MeteorShower ( MeteorShowersMgr mgr,
const QVariantMap &  map 
)

Constructor.

Parameters
mapQVariantMap containing all the data about a Meteor Shower.
MeteorShower::~MeteorShower ( )

Destructor.

Member Function Documentation

void MeteorShower::draw ( StelCore core)

Draw.

bool MeteorShower::enabled ( ) const

Checks if this meteor shower is being displayed or not.

Returns
true if it's being displayed
QString MeteorShower::getDesignation ( ) const

Gets the meteor shower id //!

Returns
designation
QDate MeteorShower::getPeak ( )
inline

Gets the peak.

Returns
peak

Definition at line 98 of file MeteorShower.hpp.

Status MeteorShower::getStatus ( )
inline

Gets the current meteor shower status.

Returns
status

Definition at line 94 of file MeteorShower.hpp.

int MeteorShower::getZHR ( )
inline

Gets the current ZHR.

Returns
ZHR

Definition at line 102 of file MeteorShower.hpp.

Activity MeteorShower::hasConfirmedShower ( QDate  date,
bool &  found 
) const

Checks if we have confirmed data for a given date.

Parameters
dateQDate
Returns
Activity
Activity MeteorShower::hasGenericShower ( QDate  date,
bool &  found 
) const

Checks if we have generic data for a given date.

Parameters
dateQDate
Returns
Activity
void MeteorShower::update ( StelCore core,
double  deltaTime 
)

Update.

Parameters
deltaTimethe time increment in seconds since the last call.

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