ddt 1.2.1
Loading...
Searching...
No Matches
ddtCutValuesWidget.hpp
Go to the documentation of this file.
1
20#ifndef DDT_DATAVISUALISATION_DDTWIDGETS_CUTVALUESWIDGET_HPP
21#define DDT_DATAVISUALISATION_DDTWIDGETS_CUTVALUESWIDGET_HPP
22
23#include <QtUiPlugin/QDesignerExportWidget>
24
26#include "ddt/imageHandling.hpp"
28
33class QDESIGNER_WIDGET_EXPORT DdtCutValuesWidget : public DdtWidget {
34 Q_OBJECT
35
36 Q_PROPERTY(double default_low READ get_default_low WRITE set_default_low)
37 Q_PROPERTY(double default_high READ get_default_high WRITE set_default_high)
38
39 public:
44 explicit DdtCutValuesWidget(QWidget* parent = nullptr);
45
50
55 void set_default_low(const double low);
56
61 double get_default_low() const;
62
67 void set_default_high(const double high);
68
73 double get_default_high() const;
74
75 protected:
79 double default_low;
80
84 double default_high;
85
86 private:
87 QPushButton* auto_cut_button;
88 QPushButton* min_max_button;
89 QPushButton* user_cut_button;
90 QLabel* low_value_label;
91 QLabel* high_value_label;
92 QLineEdit* low_value_edit;
93 QLineEdit* high_value_edit;
94 InactiveLineEdit* current_low_value_edit;
95 InactiveLineEdit* current_high_value_edit;
96
97 void CreateWidget();
98
99 protected slots:
103 void SwitchToAutoCut();
104
108 void SwitchToMinMaxCut();
109
113 void SwitchToUserCut();
114
115 public slots:
119 void CurrentCutValues(const double cutvalue_min, const double cutvalue_max);
120
121 signals:
128 void SetCutValues(double low, double high);
129
133 void SetAutoCuts();
134
138 void SetMinMaxCuts();
139};
140
141#endif // DDT_DATAVISUALISATION_DDTWIDGETS_CUTVALUESWIDGET_HPP
142
Definition ddtCutValuesWidget.hpp:33
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...