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
QmitkTensorModelParametersWidget.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 #ifndef _QMITKTensorModelParametersWidget_H_INCLUDED
17 #define _QMITKTensorModelParametersWidget_H_INCLUDED
18 
19 //QT headers
20 #include <QWidget>
21 #include <QString>
22 #include "ui_QmitkTensorModelParametersWidgetControls.h"
23 #include <org_mitk_gui_qt_diffusionimaging_Export.h>
24 
26 
29 class DIFFUSIONIMAGING_EXPORT QmitkTensorModelParametersWidget : public QWidget
30 {
31  //this is needed for all Qt objects that should have a MOC object (everything that derives from QObject)
32  Q_OBJECT
33 
34 public:
35 
36  static const std::string VIEW_ID;
37 
38  QmitkTensorModelParametersWidget (QWidget* parent = nullptr, Qt::WindowFlags f = nullptr);
40 
41  virtual void CreateQtPartControl(QWidget *parent);
42 
43  void SetT1(double t1){ m_Controls->m_T1box->setValue(t1); }
44  void SetT2(double t2){ m_Controls->m_T2box->setValue(t2); }
45  void SetD1(double d1){ m_Controls->m_D1box->setValue(d1); }
46  void SetD2(double d2){ m_Controls->m_D2box->setValue(d2); }
47  void SetD3(double d3){ m_Controls->m_D3box->setValue(d3); }
48 
49  double GetD1(){ return m_Controls->m_D1box->value(); }
50  double GetD2(){ return m_Controls->m_D2box->value(); }
51  double GetD3(){ return m_Controls->m_D3box->value(); }
52  unsigned int GetT2(){ return m_Controls->m_T2box->value(); }
53  unsigned int GetT1(){ return m_Controls->m_T1box->value(); }
54 
55 public slots:
56 
57  void DChanged( double value );
58 
59 protected:
60  // member variables
61  Ui::QmitkTensorModelParametersWidgetControls* m_Controls;
62  void UpdateUi();
63 
64 private:
65 
66 };
67 
68 #endif // _QMITKTensorModelParametersWidget_H_INCLUDED
69 
Ui::QmitkTensorModelParametersWidgetControls * m_Controls