MNE-CPP  beta 1.0
realtimecovwidget.h
Go to the documentation of this file.
1 //=============================================================================================================
36 #ifndef REALTIMECOVWIDGET_H
37 #define REALTIMECOVWIDGET_H
38 
39 
40 //*************************************************************************************************************
41 //=============================================================================================================
42 // INCLUDES
43 //=============================================================================================================
44 
45 #include "xdisp_global.h"
46 #include "newmeasurementwidget.h"
48 #include <disp/imagesc.h>
49 
50 
51 //*************************************************************************************************************
52 //=============================================================================================================
53 // QT INCLUDES
54 //=============================================================================================================
55 
56 #include <QVBoxLayout>
57 #include <QSharedPointer>
58 #include <QAction>
59 #include <QLabel>
60 
61 
62 //*************************************************************************************************************
63 //=============================================================================================================
64 // FORWARD DECLARATIONS
65 //=============================================================================================================
66 
67 class QTime;
68 
69 namespace XMEASLIB
70 {
71 class RealTimeCov;
72 }
73 
74 
75 //*************************************************************************************************************
76 //=============================================================================================================
77 // DEFINE NAMESPACE XDISPLIB
78 //=============================================================================================================
79 
80 namespace XDISPLIB
81 {
82 
83 //*************************************************************************************************************
84 //=============================================================================================================
85 // FORWARD DECLARATIONS
86 //=============================================================================================================
87 
88 
89 //*************************************************************************************************************
90 //=============================================================================================================
91 // USED NAMESPACES
92 //=============================================================================================================
93 
94 using namespace XMEASLIB;
95 using namespace DISPLIB;
96 
97 
98 //*************************************************************************************************************
99 //=============================================================================================================
100 // ENUMERATIONS
101 //=============================================================================================================
102 
105 //* Tool enumeration.
106 //*/
107 //enum Tool
108 //{
109 // Freeze = 0, /**< Freezing tool. */
110 // Annotation = 1 /**< Annotation tool. */
111 //};
112 
113 
114 //=============================================================================================================
121 {
122  Q_OBJECT
123 
124  friend class CovModalityWidget;
125 public:
126  //=========================================================================================================
134  RealTimeCovWidget(QSharedPointer<RealTimeCov> pRTC, QSharedPointer<QTime> &pTime, QWidget* parent = 0);
135 
136  //=========================================================================================================
141 
142  //=========================================================================================================
148  virtual void update(XMEASLIB::NewMeasurement::SPtr pMeasurement);
149 
150  //=========================================================================================================
154  virtual void getData();
155 
156  //=========================================================================================================
160  virtual void init();
161 
162  //=========================================================================================================
166  void showModalitySelectionWidget();
167 
168 private:
169  QSharedPointer<RealTimeCov> m_pRTC;
171  QSharedPointer<CovModalityWidget> m_pModalitySelectionWidget;
173  QAction* m_pActionSelectModality;
175  bool m_bInitialized;
177  QStringList m_qListChNames;
179  QStringList m_qListPickTypes;
180  MatrixXd m_matSelector;
181  MatrixXd m_matSelectorT;
183  ImageSc* m_pImageSc;
185  QVBoxLayout* m_pRtcLayout;
186  QLabel* m_pLabelInit;
187 };
188 
189 } // NAMESPACE
190 
191 #endif // REALTIMECOVWIDGET_H
xDisp library export/import macros.
ImageSc class declaration.
The RealTimeMultiSampleArrayNewWidget class provides a real-time curve display.
Declaration of the CovModalityWidget Class.
Eigen matrix visualization.
Definition: imagesc.h:96
Declaration of the MeasurementWidget Class.
#define XDISPSHARED_EXPORT
Definition: xdisp_global.h:55
The CovModalityWidget class provides the sensor selection widget.
QSharedPointer< NewMeasurement > SPtr
The MeasurementWidget class is the base class of all measurement widgets.