Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkCrossWidget Class Reference

#include <QmitkCrossWidget.h>

Inheritance diagram for QmitkCrossWidget:
Collaboration diagram for QmitkCrossWidget:

Signals

void SignalDeltaMove (int, int)
 

Public Member Functions

 QmitkCrossWidget (QWidget *parent=nullptr, Qt::WindowFlags f=nullptr)
 
void mousePressEvent (QMouseEvent *mouseEvent) override
 
void mouseMoveEvent (QMouseEvent *mouseEvent) override
 
void mouseReleaseEvent (QMouseEvent *mouseEvent) override
 

Protected Member Functions

void ResetMousePosition (int xpos, int ypos)
 

Protected Attributes

int lastX
 
int lastY
 

Detailed Description

Definition at line 25 of file QmitkCrossWidget.h.

Constructor & Destructor Documentation

QmitkCrossWidget::QmitkCrossWidget ( QWidget *  parent = nullptr,
Qt::WindowFlags  f = nullptr 
)

Definition at line 22 of file QmitkCrossWidget.cpp.

Member Function Documentation

void QmitkCrossWidget::mouseMoveEvent ( QMouseEvent *  mouseEvent)
override

Definition at line 39 of file QmitkCrossWidget.cpp.

References lastX, lastY, ResetMousePosition(), and SignalDeltaMove().

void QmitkCrossWidget::mousePressEvent ( QMouseEvent *  mouseEvent)
override

Definition at line 29 of file QmitkCrossWidget.cpp.

References lastX, lastY, and SignalDeltaMove().

void QmitkCrossWidget::mouseReleaseEvent ( QMouseEvent *  mouseEvent)
override

Definition at line 54 of file QmitkCrossWidget.cpp.

void QmitkCrossWidget::ResetMousePosition ( int  xpos,
int  ypos 
)
inlineprotected

Definition at line 45 of file QmitkCrossWidget.h.

Referenced by mouseMoveEvent().

void QmitkCrossWidget::SignalDeltaMove ( int  ,
int   
)
signal

Referenced by mouseMoveEvent(), and mousePressEvent().

Member Data Documentation

int QmitkCrossWidget::lastX
protected

Definition at line 45 of file QmitkCrossWidget.h.

Referenced by mouseMoveEvent(), and mousePressEvent().

int QmitkCrossWidget::lastY
protected

Definition at line 45 of file QmitkCrossWidget.h.

Referenced by mouseMoveEvent(), and mousePressEvent().


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