• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kstars

KSSun Class Reference

Child class of KSPlanetBase; encapsulates information about the Sun. More...

#include <kssun.h>

Inheritance diagram for KSSun:

Inheritance graph
[legend]

List of all members.


Public Member Functions

long double autumnEquinox (int year)
long double equinox (int year, int d, int m, double angle)
 KSSun (KStarsData *kd, QString fn="", double pSize=0)
virtual bool loadData ()
long double springEquinox (int year)
long double summerSolstice (int year)
long double winterSolstice (int year)
virtual ~KSSun ()

Protected Member Functions

virtual bool findGeocentricPosition (const KSNumbers *num, const KSPlanetBase *Earth=NULL)

Detailed Description

Child class of KSPlanetBase; encapsulates information about the Sun.

Provides necessary information about the Sun.

Author:
Mark Hollomon
Version:
1.0

Definition at line 33 of file kssun.h.


Constructor & Destructor Documentation

KSSun::KSSun ( KStarsData *  kd,
QString  fn = "",
double  pSize = 0 
)

Constructor.

Defines constants needed by findPosition(). Sets Ecliptic coordinates appropriate for J2000.

Parameters:
kd pointer to KStarsData object
fn filename of Sun image
pSize physical diameter of the Sun, in km

Definition at line 26 of file kssun.cpp.

virtual KSSun::~KSSun (  )  [inline, virtual]

Destructor (empty).

Definition at line 45 of file kssun.h.


Member Function Documentation

long double KSSun::autumnEquinox ( int  year  ) 

Definition at line 146 of file kssun.cpp.

long double KSSun::equinox ( int  year,
int  d,
int  m,
double  angle 
)

Definition at line 154 of file kssun.cpp.

bool KSSun::findGeocentricPosition ( const KSNumbers *  num,
const KSPlanetBase *  Earth = NULL 
) [protected, virtual]

Determine geocentric RA, Dec coordinates for the Epoch given in the argument.

Epoch current Julian Date Earth pointer to earth object

Reimplemented from KSPlanet.

Definition at line 41 of file kssun.cpp.

bool KSSun::loadData (  )  [virtual]

Read orbital data from disk.

Note:
reimplemented from KSPlanet

we actually read Earth's orbital data. The Sun's geocentric ecliptic coordinates are by definition exactly the opposite of the Earth's heliocentric ecliptic coordinates.

Reimplemented from KSPlanet.

Definition at line 36 of file kssun.cpp.

long double KSSun::springEquinox ( int  year  ) 

Definition at line 138 of file kssun.cpp.

long double KSSun::summerSolstice ( int  year  ) 

Definition at line 142 of file kssun.cpp.

long double KSSun::winterSolstice ( int  year  ) 

Definition at line 150 of file kssun.cpp.


The documentation for this class was generated from the following files:
  • kssun.h
  • kssun.cpp

kstars

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

API Reference

Skip menu "API Reference"
  • keduca
  • kstars
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal