Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkPrototypeSignalParametersWidget.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 _QmitkPrototypeSignalParametersWidget_H_INCLUDED
17 #define _QmitkPrototypeSignalParametersWidget_H_INCLUDED
18 
19 //QT headers
20 #include <QWidget>
21 #include <QString>
22 #include "ui_QmitkPrototypeSignalParametersWidgetControls.h"
23 #include <org_mitk_gui_qt_diffusionimaging_Export.h>
24 
26 
29 class DIFFUSIONIMAGING_EXPORT QmitkPrototypeSignalParametersWidget : 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  QmitkPrototypeSignalParametersWidget (QWidget* parent = nullptr, Qt::WindowFlags f = nullptr);
40 
41  virtual void CreateQtPartControl(QWidget *parent);
42 
43  void SetMinAdc(double min){ m_Controls->m_MinAdcBox->setValue(min); }
44  void SetMaxAdc(double max){ m_Controls->m_MaxAdcBox->setValue(max); }
45  void SetMinFa(double min){ m_Controls->m_MinFaBox->setValue(min); }
46  void SetMaxFa(double max){ m_Controls->m_MaxFaBox->setValue(max); }
47  void SetNumberOfSamples(int n){ m_Controls->m_NumSamplesBox->setValue(n); }
48 
49  double GetMinAdc(){ return m_Controls->m_MinAdcBox->value(); }
50  double GetMaxAdc(){ return m_Controls->m_MaxAdcBox->value(); }
51  double GetMinFa(){ return m_Controls->m_MinFaBox->value(); }
52  double GetMaxFa(){ return m_Controls->m_MaxFaBox->value(); }
53  double GetNumberOfSamples(){ return m_Controls->m_NumSamplesBox->value(); }
54 
55 public slots:
56 
57 protected:
58  // member variables
59  Ui::QmitkPrototypeSignalParametersWidgetControls* m_Controls;
60 
61 private:
62 
63 };
64 
65 #endif // _QmitkPrototypeSignalParametersWidget_H_INCLUDED
66 
Ui::QmitkPrototypeSignalParametersWidgetControls * m_Controls
static T max(T x, T y)
Definition: svm.cpp:70
static T min(T x, T y)
Definition: svm.cpp:67