ddt  0.1
ddtCubeNavigationWidget.hpp
Go to the documentation of this file.
1 // @copyright
2 // (c) Copyright ESO 2020
3 // All Rights Reserved
4 // ESO (eso.org) is an Intergovernmental Organization, and therefore special
5 // legal conditions apply.
6 //
7 // @file ddtCubeNavigationWidgets.hpp
8 // @brief DDT Widgets. Class for the DDT Cube Navigation Widget.
9 //
10 // Class for the Cube Navigation Widget. Allows to navigate through the layers
11 // of a 3D cube image.
12 //
13 // @author Christoph Bortlisz, CGI
14 // @since 2021/06/07
15 //
16 
17 #ifndef DDT_DATAVISUALISATION_DDTWIDGETS_CUBENAVIGATIONWIDGET_HPP
18 #define DDT_DATAVISUALISATION_DDTWIDGETS_CUBENAVIGATIONWIDGET_HPP
19 
20 #include <QtUiPlugin/QDesignerExportWidget>
21 
23 
28 class QDESIGNER_WIDGET_EXPORT DdtCubeNavigationWidget : public DdtWidget {
29  Q_OBJECT
30 
31  public:
36  explicit DdtCubeNavigationWidget(QWidget* parent = nullptr);
37 
41  ~DdtCubeNavigationWidget() override = default;
42 
43  public slots:
50  void CurrentLayer(const int current_layer, const int total_layers);
51 
52  protected slots:
56  void DecLayer();
57 
61  void IncLayer();
62 
66  void FastDecLayer();
67 
71  void FastIncLayer();
72 
76  void FirstLayer();
77 
81  void LastLayer();
82 
83  signals:
88  void IncrementLayer(const int inc);
89 
95  void DecrementLayer(const int dec);
96 
97  private:
98  QToolButton* dec_layer_button;
99  QToolButton* inc_layer_button;
100  QToolButton* fast_dec_layer_button;
101  QToolButton* fast_inc_layer_button;
102  QToolButton* first_layer_button;
103  QToolButton* last_layer_button;
104  QLabel* current_layer_label;
105 
106  void CreateWidget();
107 };
108 
109 #endif // DDT_DATAVISUALISATION_DDTWIDGETS_CUBENAVIGATIONWIDGET_HPP
DdtCubeNavigationWidget
Definition: ddtCubeNavigationWidget.hpp:28
DdtCubeNavigationWidget::DecrementLayer
void DecrementLayer(const int dec)
DdtCubeNavigationWidget::IncrementLayer
void IncrementLayer(const int inc)
DdtWidget
The DdtWidget class Use as wrapper class for new widgets.
Definition: ddtWidget.hpp:23
DdtCubeNavigationWidget::~DdtCubeNavigationWidget
~DdtCubeNavigationWidget() override=default
ddtWidget.hpp