Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkMicronTrackerWidget.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 QmitkMicronTrackerWidget_H
18 #define QmitkMicronTrackerWidget_H
19 
20 #include "ui_QmitkMicronTrackerWidget.h"
21 
23 
24 
31 {
32  Q_OBJECT // this is needed for all Qt objects that should have a MOC object (everything that derives from QObject)
33 
34 public:
35  static const std::string VIEW_ID;
36 
37  QmitkMicronTrackerWidget(QWidget* parent = 0, Qt::WindowFlags f = 0);
39 
40  virtual void Initialize();
41 
42 signals:
43 
44  protected slots :
45  /* @brief Opens a file dialog. The users sets the calibration file which location is then stored in the member m_MTCalibrationFile.*/
46  void SetMTCalibrationFileClicked();
47 
48 private:
49 
51  void CreateConnections();
52 
53  void CreateQtPartControl(QWidget *parent);
54 
55 protected:
56  virtual QmitkMicronTrackerWidget* Clone(QWidget* parent) const;
57 
58  std::string m_MTCalibrationFile;
59 
60  Ui::QmitkMicronTrackerWidget* m_Controls;
61 
62 public:
63  virtual void ResetOutput();
64  virtual void AddOutput(std::string s);
66 
67  virtual void StoreUISettings();
68  virtual void LoadUISettings();
69  virtual bool IsDeviceInstalled();
70 };
71 #endif
itk::SmartPointer< Self > Pointer
virtual void StoreUISettings()
Optional method to store and load settings of your widget (see QmitkNDIPolarisWidget) ...
virtual void ResetOutput()
Optional method to add output to a small screen in the trackingToolbox (see QmitkNDIPolarisWidget) ...
static const std::string VIEW_ID
virtual void LoadUISettings()
Optional method to store and load settings of your widget (see QmitkNDIPolarisWidget) ...
virtual void AddOutput(std::string)
Optional method to add output to a small screen in the trackingToolbox (see QmitkNDIPolarisWidget) ...
virtual QmitkAbstractTrackingDeviceWidget * Clone(QWidget *parent=0) const =0
Subclass must implement this method to return a pointer to a copy of the object. Please don't forget ...
virtual void Initialize()=0
Subclass must implement this method to return a pointer to a copy of the object. Please don't forget ...
Ui::QmitkMicronTrackerWidget * m_Controls
Implementation of a configuration widget for Micron Tracking Devices.
virtual mitk::TrackingDevice::Pointer ConstructTrackingDevice()=0
Abstract class to configure a tracking device. Inherited widgets should be registered in the Microser...
virtual bool IsDeviceInstalled()
Optional method to investigate if drivers etc for your device are installed. The default value is "tr...