Kstars

modcalcvlsr.h
1 /*
2  SPDX-FileCopyrightText: 2005 Pablo de Vicente <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "ui_modcalcvlsr.h"
10 
11 #include <QTextStream>
12 
13 class QWidget;
14 class SkyPoint;
15 class GeoLocation;
16 class dms;
17 
18 /**
19  * Module to compute the heliocentric radial velocity, geocentric radial velocity and
20  * topocentric radial velocity for a source, given its coordinates, its Vlsr and the date and
21  * location on the Earth.
22  *
23  * @author Pablo de Vicente
24  */
25 class modCalcVlsr : public QFrame, public Ui::modCalcVlsrDlg
26 {
27  Q_OBJECT
28 
29  public:
30  explicit modCalcVlsr(QWidget *p);
31  virtual ~modCalcVlsr() override = default;
32 
33  private slots:
34  void slotNow();
35  void slotLocation();
36  void slotFindObject();
37  void slotCompute();
38 
39  void slotUtChecked();
40  void slotDateChecked();
41  void slotRaChecked();
42  void slotDecChecked();
43  void slotEpochChecked();
44  void slotLongChecked();
45  void slotLatChecked();
46  void slotHeightChecked();
47  void slotVlsrChecked();
48  void slotInputFile();
49  void slotOutputFile();
50  void slotRunBatch();
51 
52  private:
53  /**
54  * @returns a SkyPoint constructed from the coordinates in the
55  * RA and Dec dmsBoxes. */
56  SkyPoint skypoint();
57 
58  /**
59  * Constructs the a GeoLocation object (geoPlace) from the calling classes.
60  * This is for using as Geolocation the location setup in KStars
61  */
62  void initGeo(void);
63 
64  /** Method to process the lines from a file */
65  void processLines(QTextStream &istream);
66 
67  GeoLocation *geoPlace { nullptr };
68  int velocityFlag { 0 };
69 };
Q_OBJECTQ_OBJECT
Stores dms coordinates for a point in the sky. for converting between coordinate systems.
Definition: skypoint.h:44
An angle, stored as degrees, but expressible in many ways.
Definition: dms.h:37
Module to compute the heliocentric radial velocity, geocentric radial velocity and topocentric radial...
Definition: modcalcvlsr.h:25
Relevant data about an observing location on Earth.
Definition: geolocation.h:27
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sun Aug 14 2022 04:13:58 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.