• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kstars

Public Member Functions | List of all members
KSAlmanac Class Reference

#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

Author
Prakash Mohan
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

double KSAlmanac::getDawnAstronomicalTwilight ( )
inline

Definition at line 68 of file ksalmanac.h.

double KSAlmanac::getDuskAstronomicalTwilight ( )
inline

Definition at line 67 of file ksalmanac.h.

double KSAlmanac::getMoonRise ( )
inline

Definition at line 65 of file ksalmanac.h.

double KSAlmanac::getMoonSet ( )
inline

Definition at line 66 of file ksalmanac.h.

double KSAlmanac::getSunRise ( )
inline

All the functions returns the fraction of the day as their return value.

Definition at line 63 of file ksalmanac.h.

double KSAlmanac::getSunSet ( )
inline

Definition at line 64 of file ksalmanac.h.

QTime KSAlmanac::moonRise ( )
inline

Definition at line 72 of file ksalmanac.h.

QTime KSAlmanac::moonSet ( )
inline

Definition at line 73 of file ksalmanac.h.

void KSAlmanac::setDate ( KStarsDateTime *  newdt)

Set the date for computations to the given date.

Parameters
Thenew 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
Thelocation to set for computations

Definition at line 135 of file ksalmanac.cpp.

QTime KSAlmanac::sunRise ( )
inline

Definition at line 70 of file ksalmanac.h.

QTime KSAlmanac::sunSet ( )
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
zZenithal 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:
  • ksalmanac.h
  • ksalmanac.cpp
This file is part of the KDE documentation.
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.

kstars

Skip menu "kstars"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal