v2.0.0
Loading...
Searching...
No Matches
triggerdetectionview.h
Go to the documentation of this file.
1//=============================================================================================================
20
21#ifndef TRIGGERDETECTIONVIEW_H
22#define TRIGGERDETECTIONVIEW_H
23
24//=============================================================================================================
25// INCLUDES
26//=============================================================================================================
27
28#include "../disp_global.h"
29#include "abstractview.h"
30
31//=============================================================================================================
32// QT INCLUDES
33//=============================================================================================================
34
35#include <QMap>
36
37//=============================================================================================================
38// EIGEN INCLUDES
39//=============================================================================================================
40
41//=============================================================================================================
42// FORWARD DECLARATIONS
43//=============================================================================================================
44
45namespace Ui {
46 class TriggerDetectionViewWidget;
47}
48
49namespace FIFFLIB {
50 class FiffInfo;
51}
52
53//=============================================================================================================
54// DEFINE NAMESPACE DISPLIB
55//=============================================================================================================
56
57namespace DISPLIB
58{
59
60//=============================================================================================================
61// DISPLIB FORWARD DECLARATIONS
62//=============================================================================================================
63
64//=============================================================================================================
73{
74 Q_OBJECT
75
76public:
77 typedef QSharedPointer<TriggerDetectionView> SPtr;
78 typedef QSharedPointer<const TriggerDetectionView> ConstSPtr;
79
80 //=========================================================================================================
86 TriggerDetectionView(const QString& sSettingsPath = "",
87 QWidget *parent = 0,
88 Qt::WindowFlags f = Qt::Widget);
89
90 //=========================================================================================================
95
96 //=========================================================================================================
100 void init(const QSharedPointer<FIFFLIB::FiffInfo> pFiffInfo);
101
102 //=========================================================================================================
109 void setNumberDetectedTriggersAndTypes(int totalNumberDetections,
110 const QMap<int,QList<QPair<int,double> > >& mapDetectedTriggers);
111
112 //=========================================================================================================
118 QString getSelectedStimChannel();
119
120 //=========================================================================================================
124 void saveSettings();
125
126 //=========================================================================================================
130 void loadSettings();
131
132 //=========================================================================================================
136 void clearView();
137
138protected:
139 //=========================================================================================================
145 void updateGuiMode(GuiMode mode);
146
147 //=========================================================================================================
154
155 //=========================================================================================================
160
161 //=========================================================================================================
165 void onRealTimeTriggerColorChanged(bool state);
166
167 //=========================================================================================================
171 void onRealTimeTriggerColorTypeChanged(const QString& value);
172
173 //=========================================================================================================
178
179 //=========================================================================================================
183 void onDetectTriggers();
184
185 Ui::TriggerDetectionViewWidget* m_pUi;
186
187 QSharedPointer<FIFFLIB::FiffInfo> m_pFiffInfo;
188
189 QMap<double, QColor> m_qMapTriggerColor;
190
192
193signals:
194 //=========================================================================================================
199
200 //=========================================================================================================
204 void triggerInfoChanged(const QMap<double,
205 QColor>& value,
206 bool bActive,
207 const QString& sTriggerCh,
208 double dThreshold);
209
210 //=========================================================================================================
214 void detectTriggers(const QString& sChannelName,
215 double iThreshold);
216};
217} // NAMESPACE
218
219#endif // TRIGGERDETECTIONVIEW_H
Common base widget for every dockable Quick-Control settings panel in DISPLIB.
Export macros and build-info hooks for the DISPLIB shared library.
#define DISPSHARED_EXPORT
Definition disp_global.h:38
FIFF file I/O, in-memory data structures and high-level readers/writers.
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)
Full FIFF measurement info: per-channel descriptors, sampling and filter setup, projectors,...
Definition fiff_info.h:88