Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
QmitkPointListViewWidget.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 QmitkPointListViewWidget_h
18 #define QmitkPointListViewWidget_h
19 
21 #include <QListWidget>
22 
23 #include <mitkPointSet.h>
24 #include <mitkWeakPointer.h>
25 
27 
41 {
42  Q_OBJECT
43 
44 signals:
45  void PointSelectionChanged();
46 public:
47  QmitkPointListViewWidget(QWidget *parent = 0);
49 
51  void SetPointSet(mitk::PointSet *pointSet);
52 
54  const mitk::PointSet *GetPointSet() const;
55 
56  void SetMultiWidget(
57  QmitkStdMultiWidget *multiWidget);
58 
59  QmitkStdMultiWidget *GetMultiWidget()
60  const;
61 
63  void SetTimeStep(int t);
64 
66  int GetTimeStep() const;
67 
69  void OnPointSetChanged(const itk::Object * /*obj*/);
70 
72  void OnPointSetDeleted(const itk::Object * /*obj*/);
73 
74 protected slots:
78  void OnItemDoubleClicked(QListWidgetItem *item);
79 
81  void OnCurrentRowChanged(int /*currentRow*/);
82 
83 protected:
84  void keyPressEvent(QKeyEvent *e) override;
85  void MoveSelectedPointUp();
86  void MoveSelectedPointDown();
87  void RemoveSelectedPoint();
88  void Update(bool currentRowChanged = false);
89 
90 protected:
93 
94  bool m_SelfCall;
95 
98 };
99 
100 #endif
#define MITKQTWIDGETSEXT_EXPORT
static void Update(vtkPolyData *)
Definition: mitkSurface.cpp:35
mitk::WeakPointer< mitk::PointSet > m_PointSet
Data structure which stores a set of points. Superclass of mitk::Mesh.
Definition: mitkPointSet.h:79
GUI widget for handling mitk::PointSet.
QmitkStdMultiWidget * m_MultiWidget
used to position the planes on a selected point