Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
QmitkIGTLoggerWidget.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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found 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 
36 class 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 = nullptr);
44  ~QmitkIGTLoggerWidget() override;
45 
46  void SetDataStorage(mitk::DataStorage* dataStorage);
47  void SetRecorder(mitk::NavigationDataRecorder::Pointer recorder);
48 
49  signals:
50  void SignalRecordingStarted();
51  void SignalRecordingStopped();
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 
76 
77  mitk::NavigationDataRecorder::Pointer m_Recorder;
78 
79  QString m_CmpFilename;
80  QString m_Dir;
82  QString m_MilliSeconds;
83  QString m_Samples;
85 };
86 #endif
mitkNavigationDataRecorder.h
QmitkIGTLoggerWidget::VIEW_ID
static const std::string VIEW_ID
Definition: QmitkIGTLoggerWidget.h:41
QmitkIGTLoggerWidget
GUI to access the IGT recorder. User can specify the file name where the output shall be stored and h...
Definition: QmitkIGTLoggerWidget.h:36
QmitkIGTLoggerWidget::m_MilliSeconds
QString m_MilliSeconds
Definition: QmitkIGTLoggerWidget.h:82
mitkDataStorage.h
itk::SmartPointer< Self >
QmitkIGTLoggerWidget::m_DataStorage
mitk::DataStorage::Pointer m_DataStorage
holds the DataStorage
Definition: QmitkIGTLoggerWidget.h:75
QmitkIGTLoggerWidget::m_RecordingTimer
QTimer * m_RecordingTimer
Definition: QmitkIGTLoggerWidget.h:81
QmitkIGTLoggerWidget::m_Controls
Ui::QmitkIGTLoggerWidgetControls * m_Controls
Definition: QmitkIGTLoggerWidget.h:72
QmitkIGTLoggerWidget::m_Dir
QString m_Dir
Definition: QmitkIGTLoggerWidget.h:80
mitk::DataStorage
Data management class that handles 'was created by' relations.
Definition: mitkDataStorage.h:43
QmitkIGTLoggerWidget::m_Samples
QString m_Samples
Definition: QmitkIGTLoggerWidget.h:83
QmitkIGTLoggerWidget::m_RecordingActivated
bool m_RecordingActivated
Definition: QmitkIGTLoggerWidget.h:84
QmitkIGTLoggerWidget::m_CmpFilename
QString m_CmpFilename
Definition: QmitkIGTLoggerWidget.h:79
QmitkIGTLoggerWidget::m_Recorder
mitk::NavigationDataRecorder::Pointer m_Recorder
records NDs to a XML file
Definition: QmitkIGTLoggerWidget.h:77
mitkNavigationTool.h