Kstars

modcalcgeodcoord.h
1 /*
2  SPDX-FileCopyrightText: 2002 Pablo de Vicente <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "ui_modcalcgeod.h"
10 
11 #include <memory>
12 
13 class QTextStream;
14 class GeoLocation;
15 
16 /**
17  * Class which implements the KStars calculator module to compute
18  * Geodetic coordinates to/from Cartesian coordinates.
19  *
20  * @author Pablo de Vicente
21  * @version 0.9
22  */
23 class modCalcGeodCoord : public QFrame, public Ui::modCalcGeodCoordDlg
24 {
25  Q_OBJECT
26  public:
27  explicit modCalcGeodCoord(QWidget *p);
28 
29  void genGeoCoords(void);
30  void getCartGeoCoords(void);
31  void getSphGeoCoords(void);
32  void showSpheGeoCoords(void);
33  void showCartGeoCoords(void);
34 
35  public slots:
36 
37  void slotComputeGeoCoords(void);
38  void slotClearGeoCoords(void);
39  void setEllipsoid(int i);
40  void slotLongCheckedBatch();
41  void slotLatCheckedBatch();
42  void slotElevCheckedBatch();
43  void slotXCheckedBatch();
44  void slotYCheckedBatch();
45  void slotZCheckedBatch();
46  void slotOutputFile();
47  void slotInputFile();
48 
49  private:
50  void geoCheck(void);
51  void xyzCheck(void);
52  void showLongLat(void);
53  void processLines(QTextStream &istream);
54  void slotRunBatch(void);
55 
56  // QRadioButton *cartRadio, *spheRadio;
57  // QVBox *vbox, *rightBox;
58  // QLineEdit *xGeoName, *yGeoName, *zGeoName, *altGeoName;
59  // dmsBox *timeBox, *dateBox, *lonGeoBox, *latGeoBox;
60 
61  std::unique_ptr<GeoLocation> geoPlace;
62  bool xyzInputCoords { false };
63 };
Q_OBJECTQ_OBJECT
Class which implements the KStars calculator module to compute Geodetic coordinates to/from Cartesian...
Relevant data about an observing location on Earth.
Definition: geolocation.h:27
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Jun 6 2023 03:56:48 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.