Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
QmitkLineEditLevelWindowWidget.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 QMITKLINEEDITLEVELWINDOWWIDGET_H
14 #define QMITKLINEEDITLEVELWINDOWWIDGET_H
15 
16 #include <MitkQtWidgetsExports.h>
17 
18 // mitk core
19 #include <mitkLevelWindowManager.h>
20 
21 // qt
22 #include <QWidget>
23 
25 class QLineEdit;
26 
34 {
35  Q_OBJECT
36 
37 public:
39  QmitkLineEditLevelWindowWidget(QWidget *parent = nullptr, Qt::WindowFlags f = nullptr);
40 
43 
45  QLineEdit *m_LevelInput;
46 
48  QLineEdit *m_WindowInput;
49 
55 
58 
60  void SetLevelWindowManager(mitk::LevelWindowManager *levelWindowManager);
61 
63  void SetDataStorage(mitk::DataStorage *ds);
64 
66  mitk::LevelWindowManager *GetManager();
67 
68 private:
70  void contextMenuEvent(QContextMenuEvent *) override;
71 
73  void OnPropertyModified(const itk::EventObject &e);
74 
75 public Q_SLOTS:
76 
80  void SetLevelValue();
84  void SetWindowValue();
85 
86 protected:
87  unsigned long m_ObserverTag;
89 
91 };
92 
93 #endif // QMITKLINEEDITLEVELWINDOWWIDGET_H
QLineEdit * m_LevelInput
inputfield for level value
Data management class that handles &#39;was created by&#39; relations.
#define MITKQTWIDGETS_EXPORT
Provides a contextmenu for Level/Window functionality.
The LevelWindow class Class to store level/window values.
mitk::LevelWindowManager::Pointer m_Manager
manager who is responsible to collect and deliver changes on Level/Window
Provides a widget with two lineedit fields, one to change the window value of the current image and o...
QmitkLevelWindowWidgetContextMenu * m_Contextmenu
Provides access to the LevelWindowProperty object and LevelWindow of the "current" image...
QLineEdit * m_WindowInput
inputfield for window value