Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmlMitkSliderLevelWindowItem Class Reference

#include <QmlMitkSliderLevelWindowItem.h>

Inheritance diagram for QmlMitkSliderLevelWindowItem:
Collaboration diagram for QmlMitkSliderLevelWindowItem:

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::LevelWindowManagerGetManager ()
 
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 QmlMitkSliderLevelWindowIteminstance
 

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
 

Detailed Description

Definition at line 28 of file QmlMitkSliderLevelWindowItem.h.

Constructor & Destructor Documentation

QmlMitkSliderLevelWindowItem::QmlMitkSliderLevelWindowItem ( QQuickPaintedItem *  parent = nullptr)
QmlMitkSliderLevelWindowItem::~QmlMitkSliderLevelWindowItem ( )

Definition at line 59 of file QmlMitkSliderLevelWindowItem.cpp.

References m_IsObserverTagSet, and m_ObserverTag.

Member Function Documentation

QColor QmlMitkSliderLevelWindowItem::borderColor ( ) const
QColor QmlMitkSliderLevelWindowItem::color ( ) const
void QmlMitkSliderLevelWindowItem::create ( QQmlEngine &  engine,
mitk::DataStorage::Pointer  storage 
)
static

Definition at line 566 of file QmlMitkSliderLevelWindowItem.cpp.

void QmlMitkSliderLevelWindowItem::enabledChanged ( )
signal

Referenced by setEnabled().

QColor QmlMitkSliderLevelWindowItem::fontColor ( ) const
int QmlMitkSliderLevelWindowItem::fontSize ( ) const

Referenced by setFontSize().

void QmlMitkSliderLevelWindowItem::geometryChanged ( const QRectF &  newGeometry,
const QRectF &  oldGeometry 
)
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.

void QmlMitkSliderLevelWindowItem::hideScale ( )
protectedslot

Definition at line 544 of file QmlMitkSliderLevelWindowItem.cpp.

References m_ScaleVisible, and update().

void QmlMitkSliderLevelWindowItem::hoverMoveEvent ( QHoverEvent *  event)
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.

void QmlMitkSliderLevelWindowItem::levelChanged ( )
signal
void QmlMitkSliderLevelWindowItem::mousePressEvent ( QMouseEvent *  mouseEvent)
overrideprotected
void QmlMitkSliderLevelWindowItem::mouseReleaseEvent ( QMouseEvent *  mouseEvent)
overrideprotected

Definition at line 500 of file QmlMitkSliderLevelWindowItem.cpp.

References mitk::LevelWindow::IsFixed(), and m_MouseDown.

void QmlMitkSliderLevelWindowItem::paint ( QPainter *  painter)
overrideprotected
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::setLevelWindowManager ( mitk::LevelWindowManager levelWindowManager)

Definition at line 68 of file QmlMitkSliderLevelWindowItem.cpp.

References m_IsObserverTagSet, m_ObserverTag, and mitk::New().

void QmlMitkSliderLevelWindowItem::showScale ( )
protectedslot

Definition at line 550 of file QmlMitkSliderLevelWindowItem.cpp.

References m_ScaleVisible, and update().

void QmlMitkSliderLevelWindowItem::sync ( )
signal
void QmlMitkSliderLevelWindowItem::windowChanged ( )
signal

Member Data Documentation

QmlMitkSliderLevelWindowItem * QmlMitkSliderLevelWindowItem::instance
static

Definition at line 59 of file QmlMitkSliderLevelWindowItem.h.

bool QmlMitkSliderLevelWindowItem::m_Bottom
protected
bool QmlMitkSliderLevelWindowItem::m_CtrlPressed
protected
int QmlMitkSliderLevelWindowItem::m_FontSize
protected

Definition at line 106 of file QmlMitkSliderLevelWindowItem.h.

Referenced by setFontSize().

bool QmlMitkSliderLevelWindowItem::m_IsObserverTagSet
protected
bool QmlMitkSliderLevelWindowItem::m_Leftbutton
protected

Definition at line 102 of file QmlMitkSliderLevelWindowItem.h.

Referenced by mouseMoveEvent(), and mousePressEvent().

QRect QmlMitkSliderLevelWindowItem::m_LowerBound
protected

Definition at line 96 of file QmlMitkSliderLevelWindowItem.h.

Referenced by hoverMoveEvent().

bool QmlMitkSliderLevelWindowItem::m_MouseDown
protected
int QmlMitkSliderLevelWindowItem::m_MoveHeight
protected

Definition at line 107 of file QmlMitkSliderLevelWindowItem.h.

Referenced by mouseMoveEvent(), paint(), and update().

unsigned long QmlMitkSliderLevelWindowItem::m_ObserverTag
protected
QRect QmlMitkSliderLevelWindowItem::m_Rect
protected

Definition at line 93 of file QmlMitkSliderLevelWindowItem.h.

Referenced by hoverMoveEvent(), paint(), and update().

bool QmlMitkSliderLevelWindowItem::m_Resize
protected
bool QmlMitkSliderLevelWindowItem::m_ScaleVisible
protected
QPoint QmlMitkSliderLevelWindowItem::m_StartPos
protected

Definition at line 94 of file QmlMitkSliderLevelWindowItem.h.

Referenced by mouseMoveEvent(), and mousePressEvent().

QRect QmlMitkSliderLevelWindowItem::m_UpperBound
protected

Definition at line 97 of file QmlMitkSliderLevelWindowItem.h.

Referenced by hoverMoveEvent().

Property Documentation

QColor QmlMitkSliderLevelWindowItem::borderColor
readwrite

Definition at line 33 of file QmlMitkSliderLevelWindowItem.h.

QColor QmlMitkSliderLevelWindowItem::color
readwrite

Definition at line 31 of file QmlMitkSliderLevelWindowItem.h.

bool QmlMitkSliderLevelWindowItem::enabled
readwrite

Definition at line 35 of file QmlMitkSliderLevelWindowItem.h.

QColor QmlMitkSliderLevelWindowItem::fontColor
readwrite

Definition at line 32 of file QmlMitkSliderLevelWindowItem.h.

int QmlMitkSliderLevelWindowItem::fontSize
readwrite

Definition at line 34 of file QmlMitkSliderLevelWindowItem.h.

int QmlMitkSliderLevelWindowItem::level
readwrite

Definition at line 36 of file QmlMitkSliderLevelWindowItem.h.

Referenced by mouseMoveEvent(), and setLevel().

int QmlMitkSliderLevelWindowItem::window
readwrite

Definition at line 37 of file QmlMitkSliderLevelWindowItem.h.

Referenced by mouseMoveEvent(), and setWindow().


The documentation for this class was generated from the following files: