Stellarium 0.14.3
List of all members | Public Slots | Public Member Functions
EquationOfTime Class Reference

Main class of the Equation of Time plugin. More...

#include <EquationOfTime.hpp>

Public Slots

void enableEquationOfTime (bool b)
 Enable plugin usage. More...
 
void setFlagInvertedValue (bool b)
 Enable usage inverted value for equation of time (switch sign of equation) More...
 
void setFlagMsFormat (bool b)
 Enable usage minutes and seconds for value. More...
 
void setFlagEnableAtStartup (bool b)
 Enable plugin usage at startup. More...
 
void setFontSize (int size)
 Set font size for message. More...
 
void setFlagShowEOTButton (bool b)
 Display plugin button on toolbar. More...
 

Public Member Functions

virtual void init ()
 
virtual void deinit ()
 
virtual void update (double)
 
virtual void draw (StelCore *core)
 
virtual double getCallOrder (StelModuleActionName actionName) const
 
virtual bool configureGui (bool show)
 
void restoreDefaults (void)
 Set up the plugin with default values. More...
 
void readSettingsFromConfig (void)
 Read (or re-read) settings from the main config file. More...
 
void saveSettingsToConfig (void)
 Save the settings to the main configuration file. More...
 
double getSolutionEquationOfTime (const double JDE) const
 Get solution of equation of time Source: J. More...
 
bool isEnabled () const
 Is plugin enabled? More...
 
int getFontSize (void)
 Get font size for messages. More...
 
bool getFlagMsFormat (void) const
 Get status of usage minutes and seconds for value of equation. More...
 
bool getFlagInvertedValue (void) const
 Get status of usage inverted values for equation of time. More...
 
bool getFlagEnableAtStartup (void) const
 
bool getFlagShowEOTButton (void) const
 

Detailed Description

Main class of the Equation of Time plugin.

Author
Alexander Wolf

Definition at line 59 of file EquationOfTime.hpp.

Member Function Documentation

void EquationOfTime::enableEquationOfTime ( bool  b)
slot

Enable plugin usage.

bool EquationOfTime::getFlagInvertedValue ( void  ) const
inline

Get status of usage inverted values for equation of time.

Definition at line 111 of file EquationOfTime.hpp.

bool EquationOfTime::getFlagMsFormat ( void  ) const
inline

Get status of usage minutes and seconds for value of equation.

Definition at line 106 of file EquationOfTime.hpp.

int EquationOfTime::getFontSize ( void  )
inline

Get font size for messages.

Definition at line 101 of file EquationOfTime.hpp.

double EquationOfTime::getSolutionEquationOfTime ( const double  JDE) const

Get solution of equation of time Source: J.

Meeus "Astronomical Algorithms" (2nd ed., with corrections as of August 10, 2009) p.183-187.

Parameters
JDEJD in Dynamical Time (previously called Ephemeris Time)
Returns
time in minutes
bool EquationOfTime::isEnabled ( ) const
inline

Is plugin enabled?

Definition at line 95 of file EquationOfTime.hpp.

void EquationOfTime::readSettingsFromConfig ( void  )

Read (or re-read) settings from the main config file.

This will be called from init and also when restoring defaults (i.e. from the configuration dialog / restore defaults button).

void EquationOfTime::restoreDefaults ( void  )

Set up the plugin with default values.

This means clearing out the Pulsars section in the main config.ini (if one already exists), and populating it with default values.

void EquationOfTime::saveSettingsToConfig ( void  )

Save the settings to the main configuration file.

void EquationOfTime::setFlagEnableAtStartup ( bool  b)
slot

Enable plugin usage at startup.

void EquationOfTime::setFlagInvertedValue ( bool  b)
slot

Enable usage inverted value for equation of time (switch sign of equation)

void EquationOfTime::setFlagMsFormat ( bool  b)
slot

Enable usage minutes and seconds for value.

void EquationOfTime::setFlagShowEOTButton ( bool  b)
slot

Display plugin button on toolbar.

void EquationOfTime::setFontSize ( int  size)
slot

Set font size for message.


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