MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
QmitkToFConnectionWidget.h
Go to the documentation of this file.
1/*============================================================================
2
3The Medical Imaging Interaction Toolkit (MITK)
4
5Copyright (c) German Cancer Research Center (DKFZ)
6All rights reserved.
7
8Use of this source code is governed by a 3-clause BSD license that can be
9found in the LICENSE file.
10
11============================================================================*/
12
13#ifndef QmitkToFConnectionWidget_h
14#define QmitkToFConnectionWidget_h
15
16#include <MitkToFUIExports.h>
17#include "ui_QmitkToFConnectionWidgetControls.h"
18
19//QT headers
20#include <QWidget>
21
22//mitk headers
23#include "mitkToFImageGrabber.h"
24
32class MITKTOFUI_EXPORT QmitkToFConnectionWidget :public QWidget
33{
34 //this is needed for all Qt objects that should have a MOC object (everything that derives from QObject)
35 Q_OBJECT
36
37 public:
38
39
40 static const std::string VIEW_ID;
41
42 QmitkToFConnectionWidget(QWidget* p = nullptr, Qt::WindowFlags f1 = {});
44
45 /* @brief This method is part of the widget an needs not to be called seperately. */
46 virtual void CreateQtPartControl(QWidget *parent);
47 /* @brief This method is part of the widget an needs not to be called seperately. (Creation of the connections of main and control widget.)*/
48 virtual void CreateConnections();
49
54 mitk::ToFImageGrabber::Pointer GetToFImageGrabber();
55
60 {
61 return m_SelectedCameraName;
62 }
63
67 void ConnectCamera();
68
69 signals:
70
83 void ToFCameraSelected(const QString selectedText);
84
86
88
89 protected slots:
90
96 void OnConnectCamera();
100 void OnSelectCamera();
101
102 protected:
103
104 Ui::QmitkToFConnectionWidgetControls2* m_Controls;
105
106 mitk::ToFImageGrabber::Pointer m_ToFImageGrabber;
107
111
112 private:
113
114 void HideAllParameterWidgets();
115};
116
117#endif
Widget allowing to connect to different ToF / range cameras (located in module ToFProcessing)
int m_IntegrationTime
member for the current integration time of the ToF device
void ChangeCoronalWindowSelection(int)
void ToFCameraDisconnected()
This signal is sent if the user has disconnect the TOF camera.
Ui::QmitkToFConnectionWidgetControls2 * m_Controls
member holding the UI elements of this widget
int m_ModulationFrequency
member for the current modulation frequency of the ToF device
void ToFCameraSelected(const QString selectedText)
signal that is emitted when a ToF camera is selected
static const std::string VIEW_ID
QString m_SelectedCameraName
member holding the name of the currently selected camera
QString GetSelectedCameraName()
return the name of the currently selected camera
mitk::ToFImageGrabber::Pointer m_ToFImageGrabber
member holding the current ToFImageGrabber
void ToFCameraConnected()
This signal is sent if the user has connected the TOF camera. The ToFImageGrabber is now availiable i...