1 /***************************************************************************
2 modcalcapcoord.h - description
4 begin : Wed Apr 10 2002
5 copyright : (C) 2002 by Pablo de Vicente
7 ***************************************************************************/
9 /***************************************************************************
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. *
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
36 class modCalcApCoord
: public modCalcApCoordDlg
{
41 modCalcApCoord(QWidget
*p
, const char *n
);
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
);
52 // void processLines( const QFile * f );
53 void processLines( QTextStream
&istream
);
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();
67 void slotOutputFile();
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
);