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{
47class TriggerDetectionViewWidget;
48}
49
50namespace FIFFLIB
51{
52class FiffInfo;
53}
54
55//=============================================================================================================
56// DEFINE NAMESPACE DISPLIB
57//=============================================================================================================
58
59namespace DISPLIB
60{
61
62//=============================================================================================================
63// DISPLIB FORWARD DECLARATIONS
64//=============================================================================================================
65
66//=============================================================================================================
75{
76 Q_OBJECT
77
78public:
79 typedef QSharedPointer<TriggerDetectionView> SPtr;
80 typedef QSharedPointer<const TriggerDetectionView> ConstSPtr;
81
82 //=========================================================================================================
90 TriggerDetectionView(const QString& sSettingsPath = "",
91 QWidget* parent = 0,
92 Qt::WindowFlags f = Qt::Widget);
93
94 //=========================================================================================================
99
100 //=========================================================================================================
106 void init(const QSharedPointer<FIFFLIB::FiffInfo> pFiffInfo);
107
108 //=========================================================================================================
115 void setNumberDetectedTriggersAndTypes(int totalNumberDetections,
116 const QMap<int, QList<QPair<int, double>>>& mapDetectedTriggers);
117
118 //=========================================================================================================
124 QString getSelectedStimChannel();
125
126 //=========================================================================================================
130 void saveSettings();
131
132 //=========================================================================================================
136 void loadSettings();
137
138 //=========================================================================================================
142 void clearView();
143
144protected:
145 //=========================================================================================================
151 void updateGuiMode(GuiMode mode);
152
153 //=========================================================================================================
160
161 //=========================================================================================================
166
167 //=========================================================================================================
173 void onRealTimeTriggerColorChanged(bool state);
174
175 //=========================================================================================================
181 void onRealTimeTriggerColorTypeChanged(const QString& value);
182
183 //=========================================================================================================
188
189 //=========================================================================================================
193 void onDetectTriggers();
194
195 Ui::TriggerDetectionViewWidget* m_pUi;
196
197 QSharedPointer<FIFFLIB::FiffInfo> m_pFiffInfo;
198
199 QMap<double, QColor> m_qMapTriggerColor;
200
202
203signals:
204 //=========================================================================================================
209
210 //=========================================================================================================
214 void triggerInfoChanged(const QMap<double,
215 QColor>& value,
216 bool bActive,
217 const QString& sTriggerCh,
218 double dThreshold);
219
220 //=========================================================================================================
224 void detectTriggers(const QString& sChannelName,
225 double iThreshold);
226};
227} // NAMESPACE
228
229#endif // TRIGGERDETECTIONVIEW_H
Export macros and build-info hooks for the DISPLIB shared library.
#define DISPSHARED_EXPORT
Definition disp_global.h:38
Common base widget for every dockable Quick-Control settings panel in DISPLIB.
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:90