Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkResidualViewWidget.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef QmitkResidualViewWidget_H_
18 #define QmitkResidualViewWidget_H_
19 
20 //#include <QObject>
21 #include <QGraphicsView>
22 #include <QWheelEvent>
23 #include <QMouseEvent>
24 #include <QGraphicsPixmapItem>
25 
26 #include <org_mitk_gui_qt_diffusionimaging_Export.h>
27 
28 
33 class DIFFUSIONIMAGING_EXPORT QmitkResidualViewWidget : public QGraphicsView
34 {
35 
36 Q_OBJECT
37 
38 public:
39 
40 
41  QmitkResidualViewWidget(QWidget *parent = nullptr);
42 
43  QmitkResidualViewWidget(QGraphicsScene *scene, QWidget *parent = nullptr);
44 
45 
46  // ~QmitkResidualViewWidget();
47 
48 
49  void SetResidualPixmapItem(QGraphicsPixmapItem* item)
50  {
51  m_ResidualPixmapItem = item;
52  }
53 
54 signals:
55 
56  void pointSelected(int slice, int volume);
57 
58 protected:
59 
60  void wheelEvent(QWheelEvent *event) override;
61 
62  void mouseMoveEvent(QMouseEvent* event) override;
63 
64  void mousePressEvent(QMouseEvent* event) override;
65 
66  void mouseReleaseEvent(QMouseEvent* event) override;
67 
69 
70  QGraphicsPixmapItem* m_ResidualPixmapItem;
71 
73 
74  void SetCenter(const QPointF& centerPoint);
75 
76 
77 
78 };
79 
80 #endif
QGraphicsPixmapItem * m_ResidualPixmapItem
void SetResidualPixmapItem(QGraphicsPixmapItem *item)
Widget for displaying the residual between an original dwi image and the dwi estimated from a tensor ...