Medical Imaging Interaction Toolkit  2023.12.99-29da53b2
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 
32 {
33  Q_OBJECT
34 
35 public:
36  QmitkUGCombinedRepresentationPropertyWidget(QWidget *parent = nullptr);
38 
39  void SetProperty(mitk::GridRepresentationProperty *gridRepresentation,
40  mitk::GridVolumeMapperProperty *volumeMapper,
41  mitk::BoolProperty *volumeProp);
42 
43 protected slots:
44 
45  void OnIndexChanged(int index);
46 
47 protected:
48  friend class _UGCombinedEnumPropEditor;
49  friend class _UGCombinedBoolPropEditor;
50 
51  void SetGridRepresentationId(int enumId);
52  void SetGridVolumeId(int enumId);
53  void IsVolumeChanged(bool volume);
54 
55  _UGCombinedEnumPropEditor *gridRepPropEditor;
56  _UGCombinedEnumPropEditor *volumeMapperPropEditor;
57  _UGCombinedBoolPropEditor *volumePropEditor;
58 
61 
63  QHash<int, int> m_MapRepEnumToIndex;
64  QHash<int, int> m_MapVolEnumToIndex;
65 };
66 
67 #endif
QmitkUGCombinedRepresentationPropertyWidget::m_MapVolEnumToIndex
QHash< int, int > m_MapVolEnumToIndex
Definition: QmitkUGCombinedRepresentationPropertyWidget.h:64
mitk::BoolProperty
Definition: mitkProperties.h:22
mitk::GridVolumeMapperProperty
Definition: mitkGridVolumeMapperProperty.h:27
MITKQTWIDGETSEXT_EXPORT
#define MITKQTWIDGETSEXT_EXPORT
Definition: MitkQtWidgetsExtExports.h:15
mitk::GridRepresentationProperty
Definition: mitkGridRepresentationProperty.h:32
QmitkUGCombinedRepresentationPropertyWidget::volumeMapperPropEditor
_UGCombinedEnumPropEditor * volumeMapperPropEditor
Definition: QmitkUGCombinedRepresentationPropertyWidget.h:56
QmitkUGCombinedRepresentationPropertyWidget::gridRepPropEditor
_UGCombinedEnumPropEditor * gridRepPropEditor
Definition: QmitkUGCombinedRepresentationPropertyWidget.h:55
QmitkUGCombinedRepresentationPropertyWidget::m_GridVolIndex
int m_GridVolIndex
Definition: QmitkUGCombinedRepresentationPropertyWidget.h:60
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
QmitkUGCombinedRepresentationPropertyWidget::m_GridRepIndex
int m_GridRepIndex
Definition: QmitkUGCombinedRepresentationPropertyWidget.h:59
QmitkUGCombinedRepresentationPropertyWidget::m_FirstVolumeRepId
int m_FirstVolumeRepId
Definition: QmitkUGCombinedRepresentationPropertyWidget.h:62
MitkQtWidgetsExtExports.h
QmitkUGCombinedRepresentationPropertyWidget::m_MapRepEnumToIndex
QHash< int, int > m_MapRepEnumToIndex
Definition: QmitkUGCombinedRepresentationPropertyWidget.h:63
QmitkUGCombinedRepresentationPropertyWidget::volumePropEditor
_UGCombinedBoolPropEditor * volumePropEditor
Definition: QmitkUGCombinedRepresentationPropertyWidget.h:57
QmitkUGCombinedRepresentationPropertyWidget
Definition: QmitkUGCombinedRepresentationPropertyWidget.h:31