MNE-CPP  beta 1.0
tmsiimpedancewidget.h
Go to the documentation of this file.
1 //=============================================================================================================
37 #ifndef TMSIIMPEDANCEWIDGET_H
38 #define TMSIIMPEDANCEWIDGET_H
39 
40 //*************************************************************************************************************
41 //=============================================================================================================
42 // INCLUDES
43 //=============================================================================================================
44 
45 #include <utils/layoutloader.h>
46 #include "../tmsielectrodeitem.h"
47 #include "../tmsiimpedancescene.h"
48 #include "disp/colormap.h"
49 
51 
52 //*************************************************************************************************************
53 //=============================================================================================================
54 // QT INCLUDES
55 //=============================================================================================================
56 
57 #include <QMutex>
58 #include <QWidget>
59 #include <QGraphicsScene>
60 #include <QtAlgorithms>
61 #include <QtSvg/QSvgGenerator>
62 
63 
64 namespace Ui {
65 class TMSIImpedanceWidget;
66 }
67 
68 
69 //*************************************************************************************************************
70 //=============================================================================================================
71 // DEFINE NAMESPACE TMSIPlugin
72 //=============================================================================================================
73 
74 namespace TMSIPlugin
75 {
76 
77 
78 //*************************************************************************************************************
79 //=============================================================================================================
80 // USED NAMESPACES
81 //=============================================================================================================
82 
83 using namespace Eigen;
84 using namespace UTILSLIB;
85 using namespace DISPLIB;
86 
87 //*************************************************************************************************************
88 //=============================================================================================================
89 // FORWARD DECLARATIONS
90 //=============================================================================================================
91 
92 class TMSI;
93 
94 //=============================================================================================================
100 class TMSIImpedanceWidget : public QWidget
101 {
102  Q_OBJECT
103 
104 public:
105  explicit TMSIImpedanceWidget(TMSI* pTMSI, QWidget *parent = 0);
107 
108  //=========================================================================================================
112  void updateGraphicScene(VectorXd matValue);
113 
114  //=========================================================================================================
118  void initGraphicScene();
119 
120 private:
121  TMSI* m_pTMSI;
123  TMSIImpedanceScene* m_qGScene;
125  QMap< QString, int > m_qmElectrodeNameIndex;
127  Ui::TMSIImpedanceWidget* ui;
129  QSharedPointer<ColorMap> m_cbColorMap;
131  double m_dMaxImpedance;
133  //=========================================================================================================
137  void addElectrodeItem(QString electrodeName, QVector2D position);
138 
139  //=========================================================================================================
143  void startImpedanceMeasurement();
144 
145  //=========================================================================================================
149  void stopImpedanceMeasurement();
150 
151  //=========================================================================================================
155  void takeScreenshot();
156 
157  //=========================================================================================================
161  void loadLayout();
162 
163  //=========================================================================================================
167  void closeEvent(QCloseEvent *event);
168 
169  //=========================================================================================================
173  void saveToFile();
174 
175  //=========================================================================================================
179  void helpDialog();
180 
181 };
182 
183 } // NAMESPACE
184 
185 #endif // TMSIIMPEDANCEWIDGET_H
ColorMap class declaration.
Definition: aboutwindow.h:52
The TMSIImpedanceScene class provides a reimplemented QGraphicsScene.
The TMSI class provides a EEG connector. In order for this plugin to work properly the driver dll "RT...
Definition: tmsi.h:122
Contains the declaration of the NewRealTimeMultiSampleArray class.
LayoutLoader class declaration.
The TMSIImpedanceWidget class provides the TMSIImpedanceWidget configuration window.