kstars
kssun.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 kssun.h - K Desktop Planetarium 00003 ------------------- 00004 begin : Sun Jan 29 2002 00005 copyright : (C) 2002 by Mark Hollomon 00006 email : mhh@mindspring.com 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef KSSUN_H 00019 #define KSSUN_H 00020 00021 #include <qstring.h> 00022 #include "ksplanet.h" 00023 00031 class KStarsData; 00032 00033 class KSSun : public KSPlanet { 00034 public: 00041 KSSun(KStarsData *kd, QString fn = "", double pSize=0 ); 00042 00045 virtual ~KSSun() {} 00046 00053 virtual bool loadData(); 00054 00055 long double springEquinox(int year); 00056 00057 long double summerSolstice(int year); 00058 00059 long double autumnEquinox(int year); 00060 00061 long double winterSolstice(int year); 00062 00063 long double equinox(int year, int d, int m, double angle); 00064 00065 00066 protected: 00071 virtual bool findGeocentricPosition( const KSNumbers *num, const KSPlanetBase *Earth=NULL ); 00072 }; 00073 long double equinox(int year, int d, int m, int angle); 00074 00075 #endif