moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kstars / kstars / tools / modcalcapcoord.h
blobdae968fefc5a4fe58f7156f8264b82ef717b3c8a
1 /***************************************************************************
2 modcalcapcoord.h - description
3 -------------------
4 begin : Wed Apr 10 2002
5 copyright : (C) 2002 by Pablo de Vicente
6 email : vicente@oan.es
7 ***************************************************************************/
9 /***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
18 #ifndef MODCALCAPCOORD_H
19 #define MODCALCAPCOORD_H
21 #include "modcalcapcoorddlg.h"
22 #include <kapplication.h>
24 /** Module to compute the equatorial coordinates for a given date and time
25 * from a given epoch or equinox
26 *@author Pablo de Vicente
27 *@version 0.9
30 class dms;
31 class dmsBox;
32 class SkyPoint;
33 class KStarsDateTime;
34 class QTextStream;
36 class modCalcApCoord : public modCalcApCoordDlg {
38 Q_OBJECT
39 public:
40 /**Constructor. */
41 modCalcApCoord(QWidget *p, const char *n);
42 /**Destructor. */
43 ~modCalcApCoord();
45 /**Precess the coordinates from epoch 1 to epoch 2 */
46 SkyPoint precess (dms ra0, dms dec0, long double j0, long double jf);
48 /**Apply precession, nutation and aberration corrections to coordinates. */
49 SkyPoint apparentCoordinates (dms r0, dms d0, long double j0, long double jf);
51 /** Process Lines **/
52 // void processLines( const QFile * f );
53 void processLines( QTextStream &istream );
54 public slots:
57 /** No descriptions */
58 void slotComputeCoords();
59 /** No descriptions */
60 void slotClearCoords();
61 void slotUtCheckedBatch();
62 void slotDateCheckedBatch();
63 void slotRaCheckedBatch();
64 void slotDecCheckedBatch();
65 void slotEpochCheckedBatch();
66 void slotInputFile();
67 void slotOutputFile();
68 void slotRunBatch();
70 private:
71 /**@returns a SkyPoint constructed from the coordinates in the RA and Dec dmsBoxes. */
72 SkyPoint getEquCoords(void);
74 /**Fill the Time and Date fields with the current values from the CPU clock. */
75 void showCurrentTime(void);
77 /**@returns a KStarsDateTime constructed from the Time and Date fields. */
78 KStarsDateTime getDateTime (void);
80 /**Parse the string argument as a double */
81 double getEpoch (QString eName);
83 /**Fill the RA and Dec dmsBoxes with values of the SkyPoint argument. */
84 void showEquCoords ( SkyPoint sp );
88 #endif