ddt 1.4.0
 
Loading...
Searching...
No Matches
ddtCursorInfoWidget.hpp
Go to the documentation of this file.
1
10
11#ifndef DDT_DATAVISUALISATION_DDTWIDGETS_CURSORINFOWIDGET_HPP
12#define DDT_DATAVISUALISATION_DDTWIDGETS_CURSORINFOWIDGET_HPP
13
14#include <QtUiPlugin/QDesignerExportWidget>
15
17#include "ddt/imageHandling.hpp"
19
25class QDESIGNER_WIDGET_EXPORT DdtCursorInfoWidget : public DdtWidget {
26 Q_OBJECT
27
28 Q_PROPERTY(bool show_radec READ get_show_radec WRITE set_show_radec)
29 Q_PROPERTY(bool show_xy READ get_show_xy WRITE set_show_xy)
30
31 public:
36 explicit DdtCursorInfoWidget(QWidget* parent = nullptr);
37
41 virtual ~DdtCursorInfoWidget() = default;
42
48 void set_show_radec(const bool show_radec);
49
54 bool get_show_radec() const;
55
61 void set_show_xy(const bool show_xy);
62
67 bool get_show_xy() const;
68
69 protected:
74 bool show_radec = false;
75
80 bool show_xy = true;
81
82 private:
83 const int LABELS_WIDTH = 40;
84
85 QLabel* x_coordinate_label;
86 QLabel* y_coordinate_label;
87 QLabel* pixel_value_label;
88 QLabel* ra_coordinate_label;
89 QLabel* dec_coordinate_label;
90
91 InactiveLineEdit* x_coordinate_edit;
92 InactiveLineEdit* y_coordinate_edit;
93 InactiveLineEdit* pixel_value_edit;
94 InactiveLineEdit* ra_coordinate_edit;
95 InactiveLineEdit* dec_coordinate_edit;
96
97 void CreateWidget();
98 void UpdateCoordinateDisplay();
99
100 public slots:
104 void Reset();
105
106 protected slots:
110 void CursorInfo(double x, double y, double pixelvalue, QString ra,
111 QString decl);
112};
113
114#endif // DDT_DATAVISUALISATION_DDTWIDGETS_CURSORINFOWIDGET_HPP
DdtCursorInfoWidget(QWidget *parent=nullptr)
Definition ddtCursorInfoWidget.cpp:18
bool show_radec
show_radec Flag if RADEC coordinates should be displayed
Definition ddtCursorInfoWidget.hpp:28
void CursorInfo(double x, double y, double pixelvalue, QString ra, QString decl)
Definition ddtCursorInfoWidget.cpp:138
void set_show_radec(const bool show_radec)
Definition ddtCursorInfoWidget.cpp:119
void Reset()
Definition ddtCursorInfoWidget.cpp:154
bool show_xy
show_xy Flag if X-Y coordinates should be displayed
Definition ddtCursorInfoWidget.hpp:29
bool get_show_radec() const
Definition ddtCursorInfoWidget.cpp:125
void set_show_xy(const bool show_xy)
Definition ddtCursorInfoWidget.cpp:127
bool get_show_xy() const
Definition ddtCursorInfoWidget.cpp:133
DdtWidget(QWidget *parent=nullptr)
DdtWidget.
Definition ddtWidget.cpp:19
Definition ddtDatavisualisationUtils.hpp:18
DDT Utils. Helper classes for DDT Datavisualisation. Utilities for the DDT Datavisualisation.
DDT Widgets. Base class for the DDT widgets. Base class for the DDT widgets.
Image Handling class, offers access to image handling functions. This file is part of the DDT Image H...