Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
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,
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 _QmitkToolDistanceWidget_H_INCLUDED
18 #define _QmitkToolDistanceWidget_H_INCLUDED
19 
20 #include "ui_QmitkToolDistanceWidgetControls.h"
21 #include "MitkIGTUIExports.h"
22 
23 
24 #include <itkProcessObject.h>
25 #include <QLabel>
26 #include <QVector>
27 
28 
29 
30 
37 class MITKIGTUI_EXPORT QmitkToolDistanceWidget : public QWidget
38 {
39  Q_OBJECT // this is needed for all Qt objects that should have a MOC object (everything that derives from QObject)
40 public:
41 
42  typedef QVector<QVector<QLabel*> > DistanceLabelType;
43 
47  QmitkToolDistanceWidget( QWidget* parent );
48 
52  virtual ~QmitkToolDistanceWidget();
53 
57  void ShowDistanceValues(itk::ProcessObject::DataObjectPointerArray & outputs);
58 
62  void CreateToolDistanceMatrix(itk::ProcessObject::DataObjectPointerArray & outputs);
63 
67  void ClearDistanceMatrix();
68 
69 public slots:
73  void SetDistanceLabelValuesInvalid();
74 
75 protected:
76  void CreateConnections();
77  void CreateQtPartControl( QWidget *parent );
78  Ui::QmitkToolDistanceWidgetControls* m_Controls;
79 
80 
81 private:
85  DistanceLabelType* m_DistanceLabels;
86 
87 };
88 #endif // _QmitkToolDistanceWidget_H_INCLUDED
89 
QmitkToolDistanceWidget.
QVector< QVector< QLabel * > > DistanceLabelType
Ui::QmitkToolDistanceWidgetControls * m_Controls
gui widgets