summaryrefslogtreecommitdiffstats
path: root/kstars/kstars/tools/modcalcangdist.h
blob: 0d938b5875d39b31f83aa37600ed6976f1cf94b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/***************************************************************************
                          modcalcapcoord.h  -  description
                             -------------------
    begin                : Sun May 30 2004
    copyright            : (C) 2004 by Pablo de Vicente
    email                : vicente@oan.es
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef MODCALCANGDIST_H
#define MODCALCANGDIST_H

#include "modcalcangdistdlg.h"
#include <tdeapplication.h>

/** Module to compute the angular distance between two points in the sky 
  *@author Pablo de Vicente
  *@version 0.9
  */

class dms;
class dmsBox;
class SkyPoint;
class TQTextStream;

class modCalcAngDist : public modCalcAngDistDlg  {

Q_OBJECT
  
public:
/**Constructor. */
	modCalcAngDist(TQWidget *p, const char *n);
/**Destructor. */
	~modCalcAngDist();

public slots:
	void slotComputeDist();
	void slotClearCoords();
	void slotInputFile();
	void slotOutputFile();
	void slotRunBatch();

private:
	/** Process Lines **/
	void processLines( TQTextStream &istream );

	/**@returns a SkyPoint constructed from the coordinates in the RA and Dec dmsBoxes. */
	SkyPoint getCoords(dmsBox * rBox, dmsBox* dBox);

	/**Fill the angular distance. */
	void showDist ( dms dist );

};

#endif