Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
QmitkToolDistanceWidget.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 QmitkToolDistanceWidget_h
14 #define QmitkToolDistanceWidget_h
15 
16 #include "ui_QmitkToolDistanceWidgetControls.h"
17 #include "MitkIGTUIExports.h"
18 
19 
20 #include <itkProcessObject.h>
21 #include <QLabel>
22 #include <QVector>
23 
24 
25 
26 
33 class MITKIGTUI_EXPORT QmitkToolDistanceWidget : public QWidget
34 {
35  Q_OBJECT // this is needed for all Qt objects that should have a MOC object (everything that derives from QObject)
36 public:
37 
38  typedef QVector<QVector<QLabel*> > DistanceLabelType;
39 
43  QmitkToolDistanceWidget( QWidget* parent );
44 
48  ~QmitkToolDistanceWidget() override;
49 
53  void ShowDistanceValues(itk::ProcessObject::DataObjectPointerArray & outputs);
54 
58  void CreateToolDistanceMatrix(itk::ProcessObject::DataObjectPointerArray & outputs);
59 
63  void ClearDistanceMatrix();
64 
65 public slots:
69  void SetDistanceLabelValuesInvalid();
70 
71 protected:
72  void CreateConnections();
73  void CreateQtPartControl( QWidget *parent );
74  Ui::QmitkToolDistanceWidgetControls* m_Controls;
75 
76 
77 private:
81  DistanceLabelType* m_DistanceLabels;
82 
83 };
84 #endif
QmitkToolDistanceWidget
QmitkToolDistanceWidget.
Definition: QmitkToolDistanceWidget.h:33
QmitkToolDistanceWidget::DistanceLabelType
QVector< QVector< QLabel * > > DistanceLabelType
Definition: QmitkToolDistanceWidget.h:38
QmitkToolDistanceWidget::m_Controls
Ui::QmitkToolDistanceWidgetControls * m_Controls
gui widgets
Definition: QmitkToolDistanceWidget.h:74