Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <QmlMitkSliderLevelWindowItem.h>
Signals | |
void | enabledChanged () |
void | levelChanged () |
void | windowChanged () |
void | sync () |
Public Member Functions | |
QmlMitkSliderLevelWindowItem (QQuickPaintedItem *parent=nullptr) | |
~QmlMitkSliderLevelWindowItem () | |
void | setLevelWindowManager (mitk::LevelWindowManager *levelWindowManager) |
void | setDataStorage (mitk::DataStorage *ds) |
mitk::LevelWindowManager * | GetManager () |
QColor | color () const |
void | setColor (const QColor &color) |
QColor | fontColor () const |
void | setFontColor (const QColor &color) |
QColor | borderColor () const |
void | setBorderColor (const QColor &color) |
int | getLevel () |
void | setLevel (int level) |
int | getWindow () |
void | setWindow (int window) |
int | fontSize () const |
void | setFontSize (const int &fontSize) |
bool | isEnabled () |
void | setEnabled (bool enable) |
Static Public Member Functions | |
static void | create (QQmlEngine &engine, mitk::DataStorage::Pointer storage) |
Static Public Attributes | |
static QmlMitkSliderLevelWindowItem * | instance |
Protected Slots | |
void | hideScale () |
void | showScale () |
Protected Member Functions | |
void | paint (QPainter *painter) override |
void | mouseMoveEvent (QMouseEvent *mouseEvent) override |
void | mousePressEvent (QMouseEvent *mouseEvent) override |
void | mouseReleaseEvent (QMouseEvent *mouseEvent) override |
void | hoverMoveEvent (QHoverEvent *event) override |
void | geometryChanged (const QRectF &newGeometry, const QRectF &oldGeometry) override |
virtual void | update () |
Protected Attributes | |
QRect | m_Rect |
QPoint | m_StartPos |
QRect | m_LowerBound |
QRect | m_UpperBound |
bool | m_Resize |
bool | m_Bottom |
bool | m_MouseDown |
bool | m_Leftbutton |
bool | m_CtrlPressed |
bool | m_ScaleVisible |
int | m_FontSize |
int | m_MoveHeight |
unsigned long | m_ObserverTag |
bool | m_IsObserverTagSet |
Properties | |
QColor | color |
QColor | fontColor |
QColor | borderColor |
int | fontSize |
bool | enabled |
int | level |
int | window |
Definition at line 28 of file QmlMitkSliderLevelWindowItem.h.
QmlMitkSliderLevelWindowItem::QmlMitkSliderLevelWindowItem | ( | QQuickPaintedItem * | parent = nullptr | ) |
Definition at line 33 of file QmlMitkSliderLevelWindowItem.cpp.
References m_Bottom, m_CtrlPressed, m_IsObserverTagSet, m_MouseDown, m_ObserverTag, m_Resize, m_ScaleVisible, mitk::New(), mitk::LevelWindowManager::New(), setEnabled(), and update().
QmlMitkSliderLevelWindowItem::~QmlMitkSliderLevelWindowItem | ( | ) |
Definition at line 59 of file QmlMitkSliderLevelWindowItem.cpp.
References m_IsObserverTagSet, and m_ObserverTag.
QColor QmlMitkSliderLevelWindowItem::borderColor | ( | ) | const |
QColor QmlMitkSliderLevelWindowItem::color | ( | ) | const |
Referenced by setBorderColor(), setColor(), and setFontColor().
|
static |
Definition at line 566 of file QmlMitkSliderLevelWindowItem.cpp.
|
signal |
Referenced by setEnabled().
QColor QmlMitkSliderLevelWindowItem::fontColor | ( | ) | const |
int QmlMitkSliderLevelWindowItem::fontSize | ( | ) | const |
Referenced by setFontSize().
|
overrideprotected |
Definition at line 331 of file QmlMitkSliderLevelWindowItem.cpp.
References update().
int QmlMitkSliderLevelWindowItem::getLevel | ( | ) |
Definition at line 172 of file QmlMitkSliderLevelWindowItem.cpp.
mitk::LevelWindowManager * QmlMitkSliderLevelWindowItem::GetManager | ( | ) |
Definition at line 561 of file QmlMitkSliderLevelWindowItem.cpp.
int QmlMitkSliderLevelWindowItem::getWindow | ( | ) |
Definition at line 190 of file QmlMitkSliderLevelWindowItem.cpp.
|
protectedslot |
Definition at line 544 of file QmlMitkSliderLevelWindowItem.cpp.
References m_ScaleVisible, and update().
|
overrideprotected |
Definition at line 337 of file QmlMitkSliderLevelWindowItem.cpp.
References m_Bottom, m_LowerBound, m_Rect, m_Resize, and m_UpperBound.
bool QmlMitkSliderLevelWindowItem::isEnabled | ( | ) |
Definition at line 106 of file QmlMitkSliderLevelWindowItem.cpp.
|
signal |
|
overrideprotected |
Definition at line 366 of file QmlMitkSliderLevelWindowItem.cpp.
References mitk::RenderingManager::GetInstance(), mitk::LevelWindow::GetLevel(), mitk::LevelWindow::GetRange(), mitk::LevelWindow::GetRangeMax(), mitk::LevelWindow::GetRangeMin(), mitk::LevelWindow::GetWindow(), mitk::LevelWindow::IsFixed(), level, m_Bottom, m_CtrlPressed, m_Leftbutton, m_MouseDown, m_MoveHeight, m_Resize, m_StartPos, mitk::RenderingManager::RequestUpdateAll(), mitk::LevelWindow::SetLevelWindow(), and window.
Referenced by mousePressEvent().
|
overrideprotected |
Definition at line 473 of file QmlMitkSliderLevelWindowItem.cpp.
References mitk::LevelWindow::IsFixed(), m_CtrlPressed, m_Leftbutton, m_MouseDown, m_StartPos, and mouseMoveEvent().
|
overrideprotected |
Definition at line 500 of file QmlMitkSliderLevelWindowItem.cpp.
References mitk::LevelWindow::IsFixed(), and m_MouseDown.
|
overrideprotected |
Definition at line 195 of file QmlMitkSliderLevelWindowItem.cpp.
References mitk::LevelWindow::GetRange(), mitk::LevelWindow::GetRangeMax(), mitk::LevelWindow::GetRangeMin(), m_MoveHeight, m_Rect, and m_ScaleVisible.
void QmlMitkSliderLevelWindowItem::setBorderColor | ( | const QColor & | color | ) |
Definition at line 153 of file QmlMitkSliderLevelWindowItem.cpp.
References color().
void QmlMitkSliderLevelWindowItem::setColor | ( | const QColor & | color | ) |
Definition at line 143 of file QmlMitkSliderLevelWindowItem.cpp.
References color().
void QmlMitkSliderLevelWindowItem::setDataStorage | ( | mitk::DataStorage * | ds | ) |
Definition at line 556 of file QmlMitkSliderLevelWindowItem.cpp.
void QmlMitkSliderLevelWindowItem::setEnabled | ( | bool | enable | ) |
Definition at line 111 of file QmlMitkSliderLevelWindowItem.cpp.
References enabledChanged().
Referenced by QmlMitkSliderLevelWindowItem().
void QmlMitkSliderLevelWindowItem::setFontColor | ( | const QColor & | color | ) |
Definition at line 133 of file QmlMitkSliderLevelWindowItem.cpp.
References color().
void QmlMitkSliderLevelWindowItem::setFontSize | ( | const int & | fontSize | ) |
Definition at line 122 of file QmlMitkSliderLevelWindowItem.cpp.
References fontSize(), and m_FontSize.
void QmlMitkSliderLevelWindowItem::setLevel | ( | int | level | ) |
Definition at line 158 of file QmlMitkSliderLevelWindowItem.cpp.
References mitk::RenderingManager::GetInstance(), mitk::LevelWindow::GetLevel(), mitk::LevelWindow::GetWindow(), level, mitk::RenderingManager::RequestUpdateAll(), and mitk::LevelWindow::SetLevelWindow().
void QmlMitkSliderLevelWindowItem::setLevelWindowManager | ( | mitk::LevelWindowManager * | levelWindowManager | ) |
Definition at line 68 of file QmlMitkSliderLevelWindowItem.cpp.
References m_IsObserverTagSet, m_ObserverTag, and mitk::New().
void QmlMitkSliderLevelWindowItem::setWindow | ( | int | window | ) |
Definition at line 177 of file QmlMitkSliderLevelWindowItem.cpp.
References mitk::RenderingManager::GetInstance(), mitk::LevelWindow::GetLevel(), mitk::LevelWindow::GetWindow(), mitk::RenderingManager::RequestUpdateAll(), mitk::LevelWindow::SetLevelWindow(), and window.
|
protectedslot |
Definition at line 550 of file QmlMitkSliderLevelWindowItem.cpp.
References m_ScaleVisible, and update().
|
signal |
|
protectedvirtual |
Definition at line 510 of file QmlMitkSliderLevelWindowItem.cpp.
References mitk::LevelWindow::GetLowerWindowBound(), mitk::LevelWindow::GetRange(), mitk::LevelWindow::GetRangeMin(), mitk::LevelWindow::GetUpperWindowBound(), mitk::LevelWindow::GetWindow(), m_MoveHeight, m_Rect, and m_ScaleVisible.
Referenced by geometryChanged(), hideScale(), QmlMitkSliderLevelWindowItem(), and showScale().
|
signal |
|
static |
Definition at line 59 of file QmlMitkSliderLevelWindowItem.h.
|
protected |
Definition at line 100 of file QmlMitkSliderLevelWindowItem.h.
Referenced by hoverMoveEvent(), mouseMoveEvent(), and QmlMitkSliderLevelWindowItem().
|
protected |
Definition at line 103 of file QmlMitkSliderLevelWindowItem.h.
Referenced by mouseMoveEvent(), mousePressEvent(), and QmlMitkSliderLevelWindowItem().
|
protected |
Definition at line 106 of file QmlMitkSliderLevelWindowItem.h.
Referenced by setFontSize().
|
protected |
Definition at line 110 of file QmlMitkSliderLevelWindowItem.h.
Referenced by QmlMitkSliderLevelWindowItem(), setLevelWindowManager(), and ~QmlMitkSliderLevelWindowItem().
|
protected |
Definition at line 102 of file QmlMitkSliderLevelWindowItem.h.
Referenced by mouseMoveEvent(), and mousePressEvent().
|
protected |
Definition at line 96 of file QmlMitkSliderLevelWindowItem.h.
Referenced by hoverMoveEvent().
|
protected |
Definition at line 101 of file QmlMitkSliderLevelWindowItem.h.
Referenced by mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), and QmlMitkSliderLevelWindowItem().
|
protected |
Definition at line 107 of file QmlMitkSliderLevelWindowItem.h.
Referenced by mouseMoveEvent(), paint(), and update().
|
protected |
Definition at line 109 of file QmlMitkSliderLevelWindowItem.h.
Referenced by QmlMitkSliderLevelWindowItem(), setLevelWindowManager(), and ~QmlMitkSliderLevelWindowItem().
|
protected |
Definition at line 93 of file QmlMitkSliderLevelWindowItem.h.
Referenced by hoverMoveEvent(), paint(), and update().
|
protected |
Definition at line 99 of file QmlMitkSliderLevelWindowItem.h.
Referenced by hoverMoveEvent(), mouseMoveEvent(), and QmlMitkSliderLevelWindowItem().
|
protected |
Definition at line 104 of file QmlMitkSliderLevelWindowItem.h.
Referenced by hideScale(), paint(), QmlMitkSliderLevelWindowItem(), showScale(), and update().
|
protected |
Definition at line 94 of file QmlMitkSliderLevelWindowItem.h.
Referenced by mouseMoveEvent(), and mousePressEvent().
|
protected |
Definition at line 97 of file QmlMitkSliderLevelWindowItem.h.
Referenced by hoverMoveEvent().
|
readwrite |
Definition at line 33 of file QmlMitkSliderLevelWindowItem.h.
|
readwrite |
Definition at line 31 of file QmlMitkSliderLevelWindowItem.h.
|
readwrite |
Definition at line 35 of file QmlMitkSliderLevelWindowItem.h.
|
readwrite |
Definition at line 32 of file QmlMitkSliderLevelWindowItem.h.
|
readwrite |
Definition at line 34 of file QmlMitkSliderLevelWindowItem.h.
|
readwrite |
Definition at line 36 of file QmlMitkSliderLevelWindowItem.h.
Referenced by mouseMoveEvent(), and setLevel().
|
readwrite |
Definition at line 37 of file QmlMitkSliderLevelWindowItem.h.
Referenced by mouseMoveEvent(), and setWindow().