ddt 1.2.1
Loading...
Searching...
No Matches
ddtCursorInfoWidget.hpp
Go to the documentation of this file.
1
20#ifndef DDT_DATAVISUALISATION_DDTWIDGETS_CURSORINFOWIDGET_HPP
21#define DDT_DATAVISUALISATION_DDTWIDGETS_CURSORINFOWIDGET_HPP
22
23#include <QtUiPlugin/QDesignerExportWidget>
24
26#include "ddt/imageHandling.hpp"
28
34class QDESIGNER_WIDGET_EXPORT DdtCursorInfoWidget : public DdtWidget {
35 Q_OBJECT
36
37 Q_PROPERTY(bool show_radec READ get_show_radec WRITE set_show_radec)
38 Q_PROPERTY(bool show_xy READ get_show_xy WRITE set_show_xy)
39
40 public:
45 explicit DdtCursorInfoWidget(QWidget* parent = nullptr);
46
50 virtual ~DdtCursorInfoWidget() = default;
51
57 void set_show_radec(const bool show_radec);
58
63 bool get_show_radec() const;
64
70 void set_show_xy(const bool show_xy);
71
76 bool get_show_xy() const;
77
78 protected:
83 bool show_radec = false;
84
89 bool show_xy = true;
90
91 private:
92 const int LABELS_WIDTH = 40;
93
94 QLabel* x_coordinate_label;
95 QLabel* y_coordinate_label;
96 QLabel* pixel_value_label;
97 QLabel* ra_coordinate_label;
98 QLabel* dec_coordinate_label;
99
100 InactiveLineEdit* x_coordinate_edit;
101 InactiveLineEdit* y_coordinate_edit;
102 InactiveLineEdit* pixel_value_edit;
103 InactiveLineEdit* ra_coordinate_edit;
104 InactiveLineEdit* dec_coordinate_edit;
105
106 void CreateWidget();
107 void UpdateCoordinateDisplay();
108
109 public slots:
113 void Reset();
114
115 protected slots:
119 void CursorInfo(double x, double y, double pixelvalue, QString ra,
120 QString decl);
121};
122
123#endif // DDT_DATAVISUALISATION_DDTWIDGETS_CURSORINFOWIDGET_HPP
124
The DdtCursorInfoWidget class Class for the Cursor Info Widget that can be used to report information...
Definition ddtCursorInfoWidget.hpp:34
The DdtWidget class Use as wrapper class for new widgets.
Definition ddtWidget.hpp:28
Definition ddtDatavisualisationUtils.hpp:27
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...