Medical Imaging Interaction Toolkit  2018.4.99-389bf124
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
#define MITKQTWIDGETSEXT_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.