Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef QMITKUGCOMBINEDREPRESENTATIONPROPERTYWIDGET_H
18 #define QMITKUGCOMBINEDREPRESENTATIONPROPERTYWIDGET_H
19 
21 
22 #include <QComboBox>
23 
24 namespace mitk
25 {
26  class GridVolumeMapperProperty;
27  class GridRepresentationProperty;
28  class BoolProperty;
29 }
30 
31 class _UGCombinedEnumPropEditor;
32 class _UGCombinedBoolPropEditor;
33 
36 {
37  Q_OBJECT
38 
39 public:
40  QmitkUGCombinedRepresentationPropertyWidget(QWidget *parent = nullptr);
42 
43  void SetProperty(mitk::GridRepresentationProperty *gridRepresentation,
44  mitk::GridVolumeMapperProperty *volumeMapper,
45  mitk::BoolProperty *volumeProp);
46 
47 protected slots:
48 
49  void OnIndexChanged(int index);
50 
51 protected:
52  friend class _UGCombinedEnumPropEditor;
53  friend class _UGCombinedBoolPropEditor;
54 
55  void SetGridRepresentationId(int enumId);
56  void SetGridVolumeId(int enumId);
57  void IsVolumeChanged(bool volume);
58 
59  _UGCombinedEnumPropEditor *gridRepPropEditor;
60  _UGCombinedEnumPropEditor *volumeMapperPropEditor;
61  _UGCombinedBoolPropEditor *volumePropEditor;
62 
65 
67  QHash<int, int> m_MapRepEnumToIndex;
68  QHash<int, int> m_MapVolEnumToIndex;
69 };
70 
71 #endif
#define MITKQTWIDGETSEXT_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.