Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkUGCombinedRepresentationPropertyWidget.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef QmitkUGCombinedRepresentationPropertyWidget_h
14 #define QmitkUGCombinedRepresentationPropertyWidget_h
15 
17 
18 #include <QComboBox>
19 
20 namespace mitk
21 {
22  class GridVolumeMapperProperty;
23  class GridRepresentationProperty;
24  class BoolProperty;
25 }
26 
27 class _UGCombinedEnumPropEditor;
28 class _UGCombinedBoolPropEditor;
29 
41 {
42  Q_OBJECT
43 
44 public:
49  QmitkUGCombinedRepresentationPropertyWidget(QWidget *parent = nullptr);
50 
53 
61  mitk::GridVolumeMapperProperty *volumeMapper,
62  mitk::BoolProperty *volumeProp);
63 
64 protected slots:
65 
66  void OnIndexChanged(int index);
67 
68 protected:
69  friend class _UGCombinedEnumPropEditor;
70  friend class _UGCombinedBoolPropEditor;
71 
72  void SetGridRepresentationId(int enumId);
73  void SetGridVolumeId(int enumId);
74  void IsVolumeChanged(bool volume);
75 
76  _UGCombinedEnumPropEditor *gridRepPropEditor;
77  _UGCombinedEnumPropEditor *volumeMapperPropEditor;
78  _UGCombinedBoolPropEditor *volumePropEditor;
79 
82 
84  QHash<int, int> m_MapRepEnumToIndex;
85  QHash<int, int> m_MapVolEnumToIndex;
86 };
87 
88 #endif
#define MITKQTWIDGETSEXT_EXPORT
Combined combo box editor for unstructured grid representation and volume mapper properties.
void SetProperty(mitk::GridRepresentationProperty *gridRepresentation, mitk::GridVolumeMapperProperty *volumeMapper, mitk::BoolProperty *volumeProp)
Bind the widget to grid representation, volume mapper, and volume toggle properties.
~QmitkUGCombinedRepresentationPropertyWidget() override
Destructor.
QmitkUGCombinedRepresentationPropertyWidget(QWidget *parent=nullptr)
Construct the widget.
Enumeration property for grid representation types.
Enumeration property for volume mapper types used with unstructured grids.
Find image slices visible on a given plane.