6#include <QtSvg/QSvgRenderer>
8#include <QXmlStreamReader>
21class QeRaDec :
public QWidget
62 explicit QeRaDec(QWidget *parent =
nullptr);
63 double getCurrentRa(){
return m_currentRa; };
64 double getCurrentDec(){
return m_currentDec; };
65 double getTargetRa(){
return m_targetRa; };
66 double getTargetDec(){
return m_targetDec; };
67 double getTelescopeLat(){
return m_telescopeLat; };
68 double getTelescopeLong(){
return m_telescopeLong; };
102 void setCurrentRa(
double newValue){ this->m_currentRa = newValue; emit
currentRaChanged(newValue); this->update();} ;
103 void setCurrentDec (
double newValue){ this->m_currentDec = newValue; emit
currentDecChanged(newValue); this->update(); };
104 void setTargetRa(
double newValue){ this->m_targetRa = newValue; emit
targetRaChanged(newValue); this->update(); };
105 void setTargetDec(
double newValue){ this->m_targetDec = newValue; emit
targetDecChanged(newValue); this->update(); };
106 void setTelescopeLat (
double newValue){ this->m_windDirection = newValue; emit
telescopeLatChanged(newValue); this->update(); };
107 void setTelescopeLong(
double newValue){ this->m_telescopeLat = newValue; emit
telescopeLongChanged(newValue); this->update(); };
110 void paintEvent(QPaintEvent *event)
override;
111 void resizeEvent(QResizeEvent *event)
override;
112 QSize sizeHint()
const override;
115 double m_currentRa = 0.0;
116 double m_currentDec = 0.0;
117 double m_targetRa = 0.0;
118 double m_targetDec = 0.0;
119 double m_windDirection = 0.0;
120 double m_telescopeLat = 0.0;
121 double m_telescopeLong = 0.0;
123 QString m_originalXml;
124 double m_ratio = 0.0;
125 const QString c_skyDayImagePath =
":/sky_day.svg";
128 QColor calculateColor();
double currentDec
Declination coordinate of the current position in radians.
Definition QeRaDec.hpp:35
double currentRa
Right Ascension coordinate of the current position in radians.
Definition QeRaDec.hpp:29
void telescopeLongChanged(double newValue)
Indicates a change in the telescope longitude coordinate.
double telescopeLong
Longitude coordinate of the telescope.
Definition QeRaDec.hpp:59
void telescopeLatChanged(double newValue)
Indicates a change in the telescope latitude coordinate.
double telescopeLat
Latitude coordinate of the telescope.
Definition QeRaDec.hpp:53
void currentRaChanged(double newValue)
Indicates a change in the right ascension coordinate for the current position.
void targetDecChanged(double newValue)
Indicates a change in the declination coordinate for the target position.
void targetRaChanged(double newValue)
Indicates a change in the right ascension coordinate for the target position.
double targetDec
Declination coordinate of the target position in radians.
Definition QeRaDec.hpp:47
void currentDecChanged(double newValue)
Indicates a change in the declination coordinate for the current position.
double targetRa
Right Ascension coordinate of the target position in radians.
Definition QeRaDec.hpp:41