Kstars

modcalcvlsr.h
1/*
2 SPDX-FileCopyrightText: 2005 Pablo de Vicente <pvicentea@wanadoo.es>
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
13class QWidget;
14class SkyPoint;
15class GeoLocation;
16class 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 */
25class modCalcVlsr : public QFrame, public Ui::modCalcVlsrDlg
26{
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};
Contains all relevant information for specifying a location on Earth: City Name, State/Province name,...
Definition geolocation.h:28
The sky coordinates of a point in the sky.
Definition skypoint.h:45
An angle, stored as degrees, but expressible in many ways.
Definition dms.h:38
Module to compute the heliocentric radial velocity, geocentric radial velocity and topocentric radial...
Definition modcalcvlsr.h:26
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:19:04 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.