MITK-IGT
IGT Extension of MITK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
QmitkIGTLoggerWidget.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 QmitkIGTLoggerWidget_h
14#define QmitkIGTLoggerWidget_h
15
16//QT headers
17#include <QWidget>
18
19//mitk headers
20#include "MitkIGTUIExports.h"
21#include "mitkNavigationTool.h"
22#include <mitkDataStorage.h>
24
25//ui header
26#include "ui_QmitkIGTLoggerWidgetControls.h"
27
28
36class MITKIGTUI_EXPORT QmitkIGTLoggerWidget : public QWidget
37{
38 Q_OBJECT
39
40 public:
41 static const std::string VIEW_ID;
42
43 QmitkIGTLoggerWidget(QWidget* parent = nullptr, Qt::WindowFlags f = {});
44 ~QmitkIGTLoggerWidget() override;
45
46 void SetDataStorage(mitk::DataStorage* dataStorage);
47 void SetRecorder(mitk::NavigationDataRecorder::Pointer recorder);
48
49 signals:
52
53 protected slots:
54 void OnChangePressed();
55 void OnStartRecording(bool recording);
56 void OnRecording();
57 void UpdateRecordingTime();
58 void StopRecording();
59 void UpdateOutputFileName();
60
61
62
63 protected:
64
66 virtual void CreateConnections();
67
68 virtual void CreateQtPartControl(QWidget *parent);
69 void SetDefaultRecordingSettings();
70 void SetOutputFileName();
71
72 Ui::QmitkIGTLoggerWidgetControls* m_Controls;
73
75 mitk::DataStorage::Pointer m_DataStorage;
76
77 mitk::NavigationDataRecorder::Pointer m_Recorder;
78
80 QString m_Dir;
83 QString m_Samples;
85};
86#endif
GUI to access the IGT recorder. User can specify the file name where the output shall be stored and h...
mitk::DataStorage::Pointer m_DataStorage
holds the DataStorage
mitk::NavigationDataRecorder::Pointer m_Recorder
records NDs to a XML file
static const std::string VIEW_ID
Ui::QmitkIGTLoggerWidgetControls * m_Controls