kstars
#include <ksalmanac.h>
Public Member Functions | |
| KSAlmanac () | |
| double | getDawnAstronomicalTwilight () | 
| double | getDuskAstronomicalTwilight () | 
| double | getMoonRise () | 
| double | getMoonSet () | 
| double | getSunRise () | 
| double | getSunSet () | 
| QTime | moonRise () | 
| QTime | moonSet () | 
| void | setDate (KStarsDateTime *newdt) | 
| void | setLocation (GeoLocation *m_geo) | 
| QTime | sunRise () | 
| QTime | sunSet () | 
| double | sunZenithAngleToTime (double z) | 
Detailed Description
A class that implements methods to find sun rise, sun set, twilight begin / end times, moon rise and moon set times.
Implement methods to find important times in a day
- Version
 - 1.0
 
Definition at line 42 of file ksalmanac.h.
Constructor & Destructor Documentation
| KSAlmanac::KSAlmanac | ( | ) | 
Definition at line 33 of file ksalmanac.cpp.
Member Function Documentation
      
  | 
  inline | 
Definition at line 68 of file ksalmanac.h.
      
  | 
  inline | 
Definition at line 67 of file ksalmanac.h.
      
  | 
  inline | 
Definition at line 65 of file ksalmanac.h.
      
  | 
  inline | 
Definition at line 66 of file ksalmanac.h.
      
  | 
  inline | 
All the functions returns the fraction of the day as their return value.
Definition at line 63 of file ksalmanac.h.
      
  | 
  inline | 
Definition at line 64 of file ksalmanac.h.
      
  | 
  inline | 
Definition at line 72 of file ksalmanac.h.
      
  | 
  inline | 
Definition at line 73 of file ksalmanac.h.
| void KSAlmanac::setDate | ( | KStarsDateTime * | newdt | ) | 
Set the date for computations to the given date.
- Parameters
 - 
  
The new date to set as a KStarsDateTime  
Definition at line 130 of file ksalmanac.cpp.
| void KSAlmanac::setLocation | ( | GeoLocation * | m_geo | ) | 
Set the location for computations to the given location.
- Parameters
 - 
  
The location to set for computations  
Definition at line 135 of file ksalmanac.cpp.
      
  | 
  inline | 
Definition at line 70 of file ksalmanac.h.
      
  | 
  inline | 
Definition at line 71 of file ksalmanac.h.
| double KSAlmanac::sunZenithAngleToTime | ( | double | z | ) | 
Convert the zenithal distance of the sun to fraction of the day.
- Parameters
 - 
  
z Zenithal angular distance  
- Returns
 - Time as a fraction of the day, at which the zenithal distance is attained by the sun
 
- Note
 - This is accurate only for zenithal angles close to sunset. TODO: Make this more accurate
 
Definition at line 141 of file ksalmanac.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:22 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
    KDE API Reference