v2.0.0
Loading...
Searching...
No Matches
triggerdetectionview.h
Go to the documentation of this file.
1//=============================================================================================================
34
35#ifndef TRIGGERDETECTIONVIEW_H
36#define TRIGGERDETECTIONVIEW_H
37
38//=============================================================================================================
39// INCLUDES
40//=============================================================================================================
41
42#include "../disp_global.h"
43#include "abstractview.h"
44
45//=============================================================================================================
46// QT INCLUDES
47//=============================================================================================================
48
49#include <QMap>
50
51//=============================================================================================================
52// EIGEN INCLUDES
53//=============================================================================================================
54
55//=============================================================================================================
56// FORWARD DECLARATIONS
57//=============================================================================================================
58
59namespace Ui {
60 class TriggerDetectionViewWidget;
61}
62
63namespace FIFFLIB {
64 class FiffInfo;
65}
66
67//=============================================================================================================
68// DEFINE NAMESPACE DISPLIB
69//=============================================================================================================
70
71namespace DISPLIB
72{
73
74//=============================================================================================================
75// DISPLIB FORWARD DECLARATIONS
76//=============================================================================================================
77
78//=============================================================================================================
85{
86 Q_OBJECT
87
88public:
89 typedef QSharedPointer<TriggerDetectionView> SPtr;
90 typedef QSharedPointer<const TriggerDetectionView> ConstSPtr;
91
92 //=========================================================================================================
98 TriggerDetectionView(const QString& sSettingsPath = "",
99 QWidget *parent = 0,
100 Qt::WindowFlags f = Qt::Widget);
101
102 //=========================================================================================================
107
108 //=========================================================================================================
112 void init(const QSharedPointer<FIFFLIB::FiffInfo> pFiffInfo);
113
114 //=========================================================================================================
121 void setNumberDetectedTriggersAndTypes(int totalNumberDetections,
122 const QMap<int,QList<QPair<int,double> > >& mapDetectedTriggers);
123
124 //=========================================================================================================
130 QString getSelectedStimChannel();
131
132 //=========================================================================================================
136 void saveSettings();
137
138 //=========================================================================================================
142 void loadSettings();
143
144 //=========================================================================================================
148 void clearView();
149
150protected:
151 //=========================================================================================================
157 void updateGuiMode(GuiMode mode);
158
159 //=========================================================================================================
166
167 //=========================================================================================================
172
173 //=========================================================================================================
177 void onRealTimeTriggerColorChanged(bool state);
178
179 //=========================================================================================================
183 void onRealTimeTriggerColorTypeChanged(const QString& value);
184
185 //=========================================================================================================
190
191 //=========================================================================================================
195 void onDetectTriggers();
196
197 Ui::TriggerDetectionViewWidget* m_pUi;
198
199 QSharedPointer<FIFFLIB::FiffInfo> m_pFiffInfo;
200
201 QMap<double, QColor> m_qMapTriggerColor;
202
204
205signals:
206 //=========================================================================================================
211
212 //=========================================================================================================
216 void triggerInfoChanged(const QMap<double,
217 QColor>& value,
218 bool bActive,
219 const QString& sTriggerCh,
220 double dThreshold);
221
222 //=========================================================================================================
226 void detectTriggers(const QString& sChannelName,
227 double iThreshold);
228};
229} // NAMESPACE
230
231#endif // TRIGGERDETECTIONVIEW_H
Declaration of the AbstractView Class.
disp library export/import macros.
#define DISPSHARED_EXPORT
Definition disp_global.h:51
FIFF file I/O and data structures (raw, epochs, evoked, covariance, forward).
2-D display widgets and visualisation helpers (charts, topography, colour maps).
AbstractView(QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
Ui::TriggerDetectionViewWidget * m_pUi
TriggerDetectionView(const QString &sSettingsPath="", QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
QMap< double, QColor > m_qMapTriggerColor
void setNumberDetectedTriggersAndTypes(int totalNumberDetections, const QMap< int, QList< QPair< int, double > > > &mapDetectedTriggers)
QSharedPointer< FIFFLIB::FiffInfo > m_pFiffInfo
QSharedPointer< TriggerDetectionView > SPtr
QSharedPointer< const TriggerDetectionView > ConstSPtr
void onRealTimeTriggerColorTypeChanged(const QString &value)
void init(const QSharedPointer< FIFFLIB::FiffInfo > pFiffInfo)
void triggerInfoChanged(const QMap< double, QColor > &value, bool bActive, const QString &sTriggerCh, double dThreshold)
void updateProcessingMode(ProcessingMode mode)
void detectTriggers(const QString &sChannelName, double iThreshold)
FIFF measurement file information.
Definition fiff_info.h:85