Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkResidualViewWidget Class Reference

Widget for displaying the residual between an original dwi image and the dwi estimated from a tensor image. More...

#include <QmitkResidualViewWidget.h>

Inheritance diagram for QmitkResidualViewWidget:
Collaboration diagram for QmitkResidualViewWidget:

Signals

void pointSelected (int slice, int volume)
 

Public Member Functions

 QmitkResidualViewWidget (QWidget *parent=nullptr)
 
 QmitkResidualViewWidget (QGraphicsScene *scene, QWidget *parent=nullptr)
 
void SetResidualPixmapItem (QGraphicsPixmapItem *item)
 

Protected Member Functions

void wheelEvent (QWheelEvent *event) override
 
void mouseMoveEvent (QMouseEvent *event) override
 
void mousePressEvent (QMouseEvent *event) override
 
void mouseReleaseEvent (QMouseEvent *event) override
 
void SetCenter (const QPointF &centerPoint)
 

Protected Attributes

QPointF m_CurrentCenterPoint
 
QGraphicsPixmapItem * m_ResidualPixmapItem
 
QPoint m_LastPanPoint
 

Detailed Description

Widget for displaying the residual between an original dwi image and the dwi estimated from a tensor image.

Definition at line 33 of file QmitkResidualViewWidget.h.

Constructor & Destructor Documentation

QmitkResidualViewWidget::QmitkResidualViewWidget ( QWidget *  parent = nullptr)

Definition at line 22 of file QmitkResidualViewWidget.cpp.

QmitkResidualViewWidget::QmitkResidualViewWidget ( QGraphicsScene *  scene,
QWidget *  parent = nullptr 
)

Definition at line 30 of file QmitkResidualViewWidget.cpp.

Member Function Documentation

void QmitkResidualViewWidget::mouseMoveEvent ( QMouseEvent *  event)
overrideprotected

Definition at line 64 of file QmitkResidualViewWidget.cpp.

References m_CurrentCenterPoint, m_LastPanPoint, and SetCenter().

void QmitkResidualViewWidget::mousePressEvent ( QMouseEvent *  event)
overrideprotected

Definition at line 37 of file QmitkResidualViewWidget.cpp.

References m_LastPanPoint, m_ResidualPixmapItem, and pointSelected().

void QmitkResidualViewWidget::mouseReleaseEvent ( QMouseEvent *  event)
overrideprotected

Definition at line 59 of file QmitkResidualViewWidget.cpp.

References m_LastPanPoint.

void QmitkResidualViewWidget::pointSelected ( int  slice,
int  volume 
)
signal

Referenced by mousePressEvent().

void QmitkResidualViewWidget::SetCenter ( const QPointF &  center)
protected

Sets the current centerpoint. Also updates the scene's center point. Unlike centerOn, which has no way of getting the floating point center back, SetCenter() stores the center point. It also handles the special sidebar case. This function will claim the centerPoint to sceneRec ie. the centerPoint must be within the sceneRec.

Definition at line 112 of file QmitkResidualViewWidget.cpp.

References m_CurrentCenterPoint.

Referenced by mouseMoveEvent(), and wheelEvent().

void QmitkResidualViewWidget::SetResidualPixmapItem ( QGraphicsPixmapItem *  item)
inline

Definition at line 49 of file QmitkResidualViewWidget.h.

void QmitkResidualViewWidget::wheelEvent ( QWheelEvent *  event)
overrideprotected

Definition at line 73 of file QmitkResidualViewWidget.cpp.

References m_CurrentCenterPoint, offset, and SetCenter().

Member Data Documentation

QPointF QmitkResidualViewWidget::m_CurrentCenterPoint
protected

Definition at line 68 of file QmitkResidualViewWidget.h.

Referenced by mouseMoveEvent(), SetCenter(), and wheelEvent().

QPoint QmitkResidualViewWidget::m_LastPanPoint
protected

Definition at line 72 of file QmitkResidualViewWidget.h.

Referenced by mouseMoveEvent(), mousePressEvent(), and mouseReleaseEvent().

QGraphicsPixmapItem* QmitkResidualViewWidget::m_ResidualPixmapItem
protected

Definition at line 70 of file QmitkResidualViewWidget.h.

Referenced by mousePressEvent().


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