MNE-CPP 0.1.9
A Framework for Electrophysiology
Loading...
Searching...
No Matches
triggerdetectionview.h
Go to the documentation of this file.
1//=============================================================================================================
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;
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 //=========================================================================================================
165 void updateProcessingMode(ProcessingMode mode);
166
167 //=========================================================================================================
171 void onTriggerInfoChanged();
172
173 //=========================================================================================================
177 void onRealTimeTriggerColorChanged(bool state);
178
179 //=========================================================================================================
183 void onRealTimeTriggerColorTypeChanged(const QString& value);
184
185 //=========================================================================================================
189 void onResetTriggerNumbers();
190
191 //=========================================================================================================
195 void onDetectTriggers();
196
197 Ui::TriggerDetectionViewWidget* m_pUi;
198
199 QSharedPointer<FIFFLIB::FiffInfo> m_pFiffInfo;
201 QMap<double, QColor> m_qMapTriggerColor;
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
#define DISPSHARED_EXPORT
Definition disp_global.h:55
The AbstractView class provides the base calss for all Disp viewers.
The TriggerDetectionView class provides a view to control the trigger detection.
QMap< double, QColor > m_qMapTriggerColor
QSharedPointer< FIFFLIB::FiffInfo > m_pFiffInfo
QSharedPointer< TriggerDetectionView > SPtr
QSharedPointer< const TriggerDetectionView > ConstSPtr
void triggerInfoChanged(const QMap< double, QColor > &value, bool bActive, const QString &sTriggerCh, double dThreshold)
void detectTriggers(const QString &sChannelName, double iThreshold)
AbstractView class declaration.