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
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,
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 
17 #ifndef QmitkIGTLoggerWidget_H
18 #define QmitkIGTLoggerWidget_H
19 
20 //QT headers
21 #include <QWidget>
22 
23 //mitk headers
24 #include "MitkIGTUIExports.h"
25 #include "mitkNavigationTool.h"
26 #include <mitkDataStorage.h>
28 
29 //ui header
30 #include "ui_QmitkIGTLoggerWidgetControls.h"
31 
32 
40 class MITKIGTUI_EXPORT QmitkIGTLoggerWidget : public QWidget
41 {
42  Q_OBJECT
43 
44  public:
45  static const std::string VIEW_ID;
46 
47  QmitkIGTLoggerWidget(QWidget* parent = 0, Qt::WindowFlags f = 0);
49 
50  void SetDataStorage(mitk::DataStorage* dataStorage);
51  void SetRecorder(mitk::NavigationDataRecorder::Pointer recorder);
52 
53  signals:
54  void SignalRecordingStarted();
55  void SignalRecordingStopped();
56 
57  protected slots:
58  void OnChangePressed();
59  void OnStartRecording(bool recording);
60  void OnRecording();
61  void UpdateRecordingTime();
62  void StopRecording();
63  void UpdateOutputFileName();
64 
65 
66 
67  protected:
68 
70  virtual void CreateConnections();
71 
72  virtual void CreateQtPartControl(QWidget *parent);
73  void SetDefaultRecordingSettings();
74  void SetOutputFileName();
75 
76  Ui::QmitkIGTLoggerWidgetControls* m_Controls;
77 
80 
82 
83  QString m_CmpFilename;
84  QString m_Dir;
86  QString m_MilliSeconds;
87  QString m_Samples;
89 };
90 #endif
Data management class that handles 'was created by' relations.
itk::SmartPointer< Self > Pointer
mitk::DataStorage::Pointer m_DataStorage
holds the DataStorage
static const std::string VIEW_ID
GUI to access the IGT recorder. User can specify the file name where the output shall be stored and h...
mitk::NavigationDataRecorder::Pointer m_Recorder
records NDs to a XML file
Ui::QmitkIGTLoggerWidgetControls * m_Controls