Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
Provides a widget with two lineedit fields, one to change the window value of the current image and one to change the level value of the current image. More...
#include <QmitkLineEditLevelWindowWidget.h>
Public Slots | |
void | SetLevelValue () |
called when return is pressed in levelinput field More... | |
void | SetWindowValue () |
called when return is pressed in windowinput field More... | |
Public Member Functions | |
QmitkLineEditLevelWindowWidget (QWidget *parent=nullptr, Qt::WindowFlags f=nullptr) | |
constructor More... | |
~QmitkLineEditLevelWindowWidget () | |
destructor More... | |
void | setLevelWindowManager (mitk::LevelWindowManager *levelWindowManager) |
sets the manager who is responsible to collect and deliver changes on Level/Window More... | |
void | SetDataStorage (mitk::DataStorage *ds) |
sets the DataStorage which holds all image-nodes More... | |
mitk::LevelWindowManager * | GetManager () |
returns the manager who is responsible to collect and deliver changes on Level/Window More... | |
Public Attributes | |
QLineEdit * | m_LevelInput |
inputfield for level value More... | |
QLineEdit * | m_WindowInput |
inputfield for window value More... | |
mitk::LevelWindow | m_LevelWindow |
mitk::LevelWindowManager::Pointer | m_Manager |
manager who is responsible to collect and deliver changes on Level/Window More... | |
Protected Attributes | |
unsigned long | m_ObserverTag |
bool | m_IsObserverTagSet |
QmitkLevelWindowWidgetContextMenu * | m_Contextmenu |
Provides a widget with two lineedit fields, one to change the window value of the current image and one to change the level value of the current image.
Definition at line 35 of file QmitkLineEditLevelWindowWidget.h.
QmitkLineEditLevelWindowWidget::QmitkLineEditLevelWindowWidget | ( | QWidget * | parent = nullptr , |
Qt::WindowFlags | f = nullptr |
||
) |
constructor
Constructor
Definition at line 34 of file QmitkLineEditLevelWindowWidget.cpp.
References m_Contextmenu, m_IsObserverTagSet, m_LevelInput, m_Manager, m_ObserverTag, m_WindowInput, max(), mitk::New(), mitk::LevelWindowManager::New(), SetLevelValue(), and SetWindowValue().
QmitkLineEditLevelWindowWidget::~QmitkLineEditLevelWindowWidget | ( | ) |
destructor
Definition at line 83 of file QmitkLineEditLevelWindowWidget.cpp.
References m_IsObserverTagSet, m_Manager, and m_ObserverTag.
mitk::LevelWindowManager * QmitkLineEditLevelWindowWidget::GetManager | ( | ) |
returns the manager who is responsible to collect and deliver changes on Level/Window
Definition at line 179 of file QmitkLineEditLevelWindowWidget.cpp.
References m_Manager.
void QmitkLineEditLevelWindowWidget::SetDataStorage | ( | mitk::DataStorage * | ds | ) |
sets the DataStorage which holds all image-nodes
Definition at line 150 of file QmitkLineEditLevelWindowWidget.cpp.
References m_Manager.
|
slot |
called when return is pressed in levelinput field
Definition at line 156 of file QmitkLineEditLevelWindowWidget.cpp.
References mitk::RenderingManager::GetInstance(), mitk::LevelWindow::GetWindow(), m_LevelInput, m_LevelWindow, m_Manager, mitk::RenderingManager::RequestUpdateAll(), and mitk::LevelWindow::SetLevelWindow().
Referenced by QmitkLineEditLevelWindowWidget().
void QmitkLineEditLevelWindowWidget::setLevelWindowManager | ( | mitk::LevelWindowManager * | levelWindowManager | ) |
sets the manager who is responsible to collect and deliver changes on Level/Window
Definition at line 132 of file QmitkLineEditLevelWindowWidget.cpp.
References m_IsObserverTagSet, m_Manager, m_ObserverTag, and mitk::New().
|
slot |
called when return is pressed in windowinput field
Definition at line 165 of file QmitkLineEditLevelWindowWidget.cpp.
References mitk::RenderingManager::GetInstance(), mitk::LevelWindow::GetLevel(), m_LevelWindow, m_Manager, m_WindowInput, mitk::RenderingManager::RequestUpdateAll(), and mitk::LevelWindow::SetLevelWindow().
Referenced by QmitkLineEditLevelWindowWidget().
|
protected |
data structure which creates the contextmenu for QmitkLineEditLevelWindowWidget
Definition at line 95 of file QmitkLineEditLevelWindowWidget.h.
Referenced by QmitkLineEditLevelWindowWidget().
|
protected |
Definition at line 90 of file QmitkLineEditLevelWindowWidget.h.
Referenced by QmitkLineEditLevelWindowWidget(), setLevelWindowManager(), and ~QmitkLineEditLevelWindowWidget().
QLineEdit* QmitkLineEditLevelWindowWidget::m_LevelInput |
inputfield for level value
Definition at line 47 of file QmitkLineEditLevelWindowWidget.h.
Referenced by QmitkLineEditLevelWindowWidget(), and SetLevelValue().
mitk::LevelWindow QmitkLineEditLevelWindowWidget::m_LevelWindow |
data structure which stores the values manipulated by a QmitkLineEditLevelWindowWidget
Definition at line 56 of file QmitkLineEditLevelWindowWidget.h.
Referenced by SetLevelValue(), and SetWindowValue().
mitk::LevelWindowManager::Pointer QmitkLineEditLevelWindowWidget::m_Manager |
manager who is responsible to collect and deliver changes on Level/Window
Definition at line 59 of file QmitkLineEditLevelWindowWidget.h.
Referenced by GetManager(), QmitkLineEditLevelWindowWidget(), SetDataStorage(), SetLevelValue(), setLevelWindowManager(), SetWindowValue(), and ~QmitkLineEditLevelWindowWidget().
|
protected |
Definition at line 89 of file QmitkLineEditLevelWindowWidget.h.
Referenced by QmitkLineEditLevelWindowWidget(), setLevelWindowManager(), and ~QmitkLineEditLevelWindowWidget().
QLineEdit* QmitkLineEditLevelWindowWidget::m_WindowInput |
inputfield for window value
Definition at line 50 of file QmitkLineEditLevelWindowWidget.h.
Referenced by QmitkLineEditLevelWindowWidget(), and SetWindowValue().