Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkPointListView.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 QMITK_POINTLIST_VIEW_H_INCLUDED
18 #define QMITK_POINTLIST_VIEW_H_INCLUDED
19 
21 #include "QmitkPointListModel.h"
22 #include <QLabel>
23 #include <QListView>
25 
27 
41 {
42  Q_OBJECT
43 
44 public:
45  QmitkPointListView(QWidget *parent = 0);
47 
49  void SetPointSetNode(mitk::DataNode *pointSetNode);
50 
52  const mitk::PointSet *GetPointSet() const;
53 
59  void SetMultiWidget(QmitkStdMultiWidget *multiWidget);
60 
61  QmitkStdMultiWidget *GetMultiWidget()
62  const;
63 
64  void SetTimesStep(int i);
65 
67 
73  DEPRECATED(void SetSnc1(mitk::SliceNavigationController *snc));
74  DEPRECATED(void SetSnc2(mitk::SliceNavigationController *snc));
75  DEPRECATED(void SetSnc3(mitk::SliceNavigationController *snc));
77 
85  void AddSliceNavigationController(mitk::SliceNavigationController *snc);
86 
94  void RemoveSliceNavigationController(mitk::SliceNavigationController *snc);
95 
96 signals:
97 
98  void
99  SignalPointSelectionChanged();
100 
101 protected slots:
102 
104  void OnPointDoubleClicked(const QModelIndex &index);
105 
107  void OnPointSetSelectionChanged();
108 
110  void OnListViewSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
111 
113  void fadeTimeStepOut();
114 
116  void ctxMenu(const QPoint &pos);
117 
119  void SetFading(bool onOff);
120 
122  void ClearPointList();
123 
125  void ClearPointListTS();
126 
127 protected:
128  void keyPressEvent(QKeyEvent *e) override;
129  void wheelEvent(QWheelEvent *event) override;
130  void fadeTimeStepIn();
131 
135 
136  std::set<mitk::SliceNavigationController *> m_Sncs;
137 
141 
145 };
146 
147 #endif
#define MITKQTWIDGETSEXT_EXPORT
mitk::SliceNavigationController * m_Snc3
mitk::SliceNavigationController * m_Snc1
GUI widget for handling mitk::PointSet.
Controls the selection of the slice the associated BaseRenderer will display.
std::set< mitk::SliceNavigationController * > m_Sncs
#define DEPRECATED(func)
Definition: mitkCommon.h:183
QmitkPointListModel * m_PointListModel
Data structure which stores a set of points. Superclass of mitk::Mesh.
Definition: mitkPointSet.h:79
mitk::SliceNavigationController * m_Snc2
QmitkStdMultiWidget * m_MultiWidget
used to position the planes on a selected point
Class for nodes of the DataTree.
Definition: mitkDataNode.h:66