ddt 1.1.0
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 Q_PROPERTY(int xy_digits READ get_xy_digits WRITE set_xy_digits)
40 Q_PROPERTY(int value_digits READ get_value_digits WRITE set_value_digits)
41
42 public:
47 explicit DdtCursorInfoWidget(QWidget* parent = nullptr);
48
52 virtual ~DdtCursorInfoWidget() = default;
53
59 void set_show_radec(const bool show_radec);
60
65 bool get_show_radec() const;
66
72 void set_show_xy(const bool show_xy);
73
78 bool get_show_xy() const;
79
85 void set_xy_digits(const int digits);
86
92 int get_xy_digits() const;
93
99 void set_value_digits(int digits);
100
106 int get_value_digits() const;
107
108 protected:
113 bool show_radec = false;
114
119 bool show_xy = true;
120
126 int xy_digits = 3;
127
133 int value_digits = 5;
134
135 private:
136 QLabel* x_coordinate_label;
137 QLabel* y_coordinate_label;
138 QLabel* pixel_value_label;
139 QLabel* ra_coordinate_label;
140 QLabel* dec_coordinate_label;
141
142 InactiveLineEdit* x_coordinate_edit;
143 InactiveLineEdit* y_coordinate_edit;
144 InactiveLineEdit* pixel_value_edit;
145 InactiveLineEdit* ra_coordinate_edit;
146 InactiveLineEdit* dec_coordinate_edit;
147
148 void CreateWidget();
149 void UpdateCoordinateDisplay();
150
151 public slots:
155 void Reset();
156
157 protected slots:
161 void CursorInfo(double x, double y, double pixelvalue, QString ra,
162 QString decl);
163};
164
165#endif // DDT_DATAVISUALISATION_DDTWIDGETS_CURSORINFOWIDGET_HPP
166
The DdtCursorInfoWidget class Class for the Cursor Info Widget that can be used to report information...
Definition: ddtCursorInfoWidget.hpp:34
virtual ~DdtCursorInfoWidget()=default
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...