Medical Imaging Interaction Toolkit  2025.12.02
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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef QmitkPointListView_h
14 #define QmitkPointListView_h
15 
17 
18 #include <QmitkPointListModel.h>
19 
20 #include <QLabel>
21 #include <QListView>
23 
25 
39 {
40  Q_OBJECT
41 
42 public:
43  QmitkPointListView(QWidget *parent = nullptr);
44  ~QmitkPointListView() override;
45 
47  void SetPointSetNode(mitk::DataNode *pointSetNode);
48 
50  const mitk::PointSet *GetPointSet() const;
51 
58 
63 
72 
81 
82 signals:
83 
86 
87 protected slots:
88 
90  void OnPointDoubleClicked(const QModelIndex &index);
91 
94 
96  void OnListViewSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
97 
99  void ctxMenu(const QPoint &pos);
100 
102  void SetFading(bool onOff);
103 
106 
109 
110 protected:
111  void keyPressEvent(QKeyEvent *e) override;
112  void wheelEvent(QWheelEvent *event) override;
113 
114  std::set<mitk::SliceNavigationController *> m_Sncs;
115 
119 
122 };
123 
124 #endif
#define MITKQTWIDGETSEXT_EXPORT
The 'QmitkAbstractMultiWidget' is a 'QWidget' that can be subclassed to display multiple render windo...
GUI widget for handling mitk::PointSet.
QmitkAbstractMultiWidget * m_MultiWidget
used to position the planes on a selected point
void SetPointSetNode(mitk::DataNode *pointSetNode)
assign a point set for observation
void ClearPointListTS()
delete all points in the list in the current timestep
void ClearPointList()
Delete all points in the list.
void OnPointSetSelectionChanged()
called when the point set data structure changes
void RemoveSliceNavigationController(mitk::SliceNavigationController *snc)
Remove a mitk::SliceNavigationController instance.
void SetMultiWidget(QmitkAbstractMultiWidget *multiWidget)
If Multiwidget is set, the crosshair is automatically centering to the selected point As an alternati...
void AddSliceNavigationController(mitk::SliceNavigationController *snc)
Add a mitk::SliceNavigationController instance.
QmitkPointListView(QWidget *parent=nullptr)
void SignalPointSelectionChanged()
this signal is emitted, if the selection of a point in the pointset is changed
std::set< mitk::SliceNavigationController * > m_Sncs
void ctxMenu(const QPoint &pos)
open ContextMenu
void wheelEvent(QWheelEvent *event) override
change timestep of the current pointset by mouse wheel
void OnPointDoubleClicked(const QModelIndex &index)
Filtering double click event for editing point coordinates via a dialog.
const mitk::PointSet * GetPointSet() const
which point set to work on
void OnListViewSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
called when the selection of the view widget changes
void keyPressEvent(QKeyEvent *e) override
react to F2, F3 and DEL keys
void SetFading(bool onOff)
Turn TimeStep Fading On/Off.
~QmitkPointListView() override
void SignalTimeStepChanged(int)
QmitkPointListModel * m_PointListModel
QmitkAbstractMultiWidget * GetMultiWidget() const
Return the QmitkAbstractMultiWidget that is used for updating the render window crosshair.
Class for nodes of the DataTree.
Definition: mitkDataNode.h:64
Data structure which stores a set of points.
Definition: mitkPointSet.h:72
Controls the selection of the slice the associated BaseRenderer will display.