Medical Imaging Interaction Toolkit  2026.06.00
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 
43 {
44  Q_OBJECT
45 
46 public:
51  QmitkPointListView(QWidget *parent = nullptr);
52 
54  ~QmitkPointListView() override;
55 
60  void SetPointSetNode(mitk::DataNode *pointSetNode);
61 
66  const mitk::PointSet *GetPointSet() const;
67 
77 
83 
89 
95 
96 signals:
99 
104  void SignalTimeStepChanged(int timeStep);
105 
106 protected slots:
107 
109  void OnPointDoubleClicked(const QModelIndex &index);
110 
113 
115  void OnListViewSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
116 
118  void ctxMenu(const QPoint &pos);
119 
121  void SetFading(bool onOff);
122 
125 
128 
129 protected:
130  void keyPressEvent(QKeyEvent *e) override;
131  void wheelEvent(QWheelEvent *event) override;
132 
133  std::set<mitk::SliceNavigationController *> m_Sncs;
134 
138 
141 };
142 
143 #endif
#define MITKQTWIDGETSEXT_EXPORT
Abstract base widget for displaying multiple render windows at once.
Qt list model providing access to points in a mitk::PointSet.
GUI widget for displaying and interacting with a mitk::PointSet.
QmitkAbstractMultiWidget * m_MultiWidget
used to position the planes on a selected point
void SetPointSetNode(mitk::DataNode *pointSetNode)
Set the data node containing the point set to display.
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 slice navigation controller.
void SetMultiWidget(QmitkAbstractMultiWidget *multiWidget)
Set a multi widget for automatic crosshair centering on selected points.
void AddSliceNavigationController(mitk::SliceNavigationController *snc)
Add a slice navigation controller for point-based crosshair navigation.
QmitkPointListView(QWidget *parent=nullptr)
Construct the point list view.
void SignalPointSelectionChanged()
Emitted when the point selection changes in the point set.
void SignalTimeStepChanged(int timeStep)
Emitted when the time step changes via mouse wheel.
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
Get the displayed point set.
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
Destructor.
QmitkPointListModel * m_PointListModel
QmitkAbstractMultiWidget * GetMultiWidget() const
Get the currently assigned multi widget.
Central node class of the MITK data tree, associating a data object with properties and mappers.
Definition: mitkDataNode.h:72
Data structure which stores a set of points.
Definition: mitkPointSet.h:71
Controls the selection of the slice the associated BaseRenderer will display.