Medical Imaging Interaction Toolkit  2025.12.02
Medical Imaging Interaction Toolkit
QmitkPointListWidget.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 #ifndef QmitkPointListWidget_h
13 #define QmitkPointListWidget_h
14 
16 
17 #include <QmitkPointListModel.h>
18 #include <QmitkPointListView.h>
19 
20 #include <mitkDataInteractor.h>
21 #include <mitkDataNode.h>
22 #include <mitkPointSet.h>
23 
24 #include <QPushButton>
25 #include <QToolButton>
26 
28 
52 {
53  Q_OBJECT
54 
55 public:
56  QmitkPointListWidget(QWidget *parent = nullptr, int orientation = 0);
58 
60 
69 
78 
82 
86 
89 
91  void OnNodeDeleted(const itk::EventObject &e);
92 
95 
96 public slots:
97  void DeactivateInteractor(bool deactivate);
98  void EnableEditButton(bool enabled);
99 
100 signals:
103  void EditPointSets(bool active);
108 
109 protected slots:
115  void OnBtnAddPoint(bool checked);
117  void OnTimeStepChanged(int timeStep);
118 
123 
125 
126 protected:
127  void SetupUi();
129 
131 
132  mitk::DataNode::Pointer m_PointSetNode;
133 
135 
136  QPushButton *m_MovePointUpBtn;
137  QPushButton *m_MovePointDownBtn;
138  QPushButton *m_RemovePointBtn;
139  QPushButton *m_SavePointsBtn;
140  QPushButton *m_LoadPointsBtn;
141  QPushButton *m_ToggleAddPoint;
142  QPushButton *m_AddPoint;
145 
149  unsigned long m_NodeObserverTag;
150 
152 };
153 
154 #endif
#define MITKQTWIDGETSEXT_EXPORT
The 'QmitkAbstractMultiWidget' is a 'QWidget' that can be subclassed to display multiple render windo...
GUI widget for handling mitk::PointSet.
Widget for regular operations on point sets.
void ObserveNewNode(mitk::DataNode *node)
mitk::PointSet * GetPointSet()
mitk::DataInteractor::Pointer m_DataInteractor
void SetPointSetNode(mitk::DataNode *newNode)
assign a point set (contained in a node of DataStorage) for observation
QmitkPointListWidget(QWidget *parent=nullptr, int orientation=0)
void EditPointSets(bool active)
signal to inform about the state of the EditPointSetButton, whether an interactor for setting points ...
void OnNodeDeleted(const itk::EventObject &e)
itk observer for node "delete" events
QPushButton * m_MovePointDownBtn
void DeactivateInteractor(bool deactivate)
void OnPointSelectionChanged()
pass through signal from PointListView that point selection has changed
mitk::DataNode * GetPointSetNode()
void PointSelectionChanged()
signal to inform that the selection of a point in the pointset has changed
void OnBtnAddPoint(bool checked)
~QmitkPointListWidget() override
void OnTimeStepChanged(int timeStep)
mitk::DataNode::Pointer m_PointSetNode
QmitkPointListModel * m_PointListModel
void EnableEditButton(bool enabled)
void SetMultiWidget(QmitkAbstractMultiWidget *multiWidget)
assign a QmitkAbstractMultiWidget for updating render window crosshair
void UnselectEditButton()
Unselects the edit button if it is selected.
void SetPointSet(mitk::PointSet *newPs)
assign a point set (contained in a node of DataStorage) for observation
void RemoveSliceNavigationController(mitk::SliceNavigationController *snc)
Remove a mitk::SliceNavigationController instance.
void AddSliceNavigationController(mitk::SliceNavigationController *snc)
Add a mitk::SliceNavigationController instance.
void PointListChanged()
signal to inform about cleared or loaded point sets
QmitkPointListView * m_PointListView
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.