v2.0.0
Loading...
Searching...
No Matches
rtfiffrawview.h
Go to the documentation of this file.
1//=============================================================================================================
36
37#ifndef RTFIFFRAWVIEW_H
38#define RTFIFFRAWVIEW_H
39
40//=============================================================================================================
41// INCLUDES
42//=============================================================================================================
43
44#include "../disp_global.h"
45#include "abstractview.h"
46
47#include <fiff/fiff_proj.h>
48
49//=============================================================================================================
50// QT INCLUDES
51//=============================================================================================================
52
53#include <QPointer>
54#include <QMap>
55
56//=============================================================================================================
57// EIGEN INCLUDES
58//=============================================================================================================
59
60#include <Eigen/Core>
61
62//=============================================================================================================
63// FORWARD DECLARATIONS
64//=============================================================================================================
65
66class QTableView;
67
68namespace FIFFLIB {
69 class FiffInfo;
70}
71
72namespace UTILSLIB {
73 class FilterKernel;
74}
75
76namespace RTPROCESSINGLIB {
77 class EventList;
78}
79
80//=============================================================================================================
81// DEFINE NAMESPACE DISPLIB
82//=============================================================================================================
83
84namespace DISPLIB
85{
86
87//=============================================================================================================
88// DISPLIB FORWARD DECLARATIONS
89//=============================================================================================================
90
93
94//=============================================================================================================
101{
102 Q_OBJECT
103
104public:
105 typedef QSharedPointer<RtFiffRawView> SPtr;
106 typedef QSharedPointer<const RtFiffRawView> ConstSPtr;
107
108 //=========================================================================================================
114 RtFiffRawView(const QString& sSettingsPath = "",
115 QWidget* parent = 0,
116 Qt::WindowFlags f = Qt::Widget);
117
118 //=========================================================================================================
123
124 //=========================================================================================================
130
131 //=========================================================================================================
138 void setSettingsPath(const QString& sSettingsPath);
139
140 //=========================================================================================================
146 void init(QSharedPointer<FIFFLIB::FiffInfo> &info);
147
148 //=========================================================================================================
154 void addData(const QList<Eigen::MatrixXd>& data);
155
156 //=========================================================================================================
162 Eigen::MatrixXd getLastBlock();
163
164 //=========================================================================================================
174 bool eventFilter(QObject *object, QEvent *event);
175
176 //=========================================================================================================
182 void setBackgroundColor(const QColor& backgroundColor);
183
184 //=========================================================================================================
190 QColor getBackgroundColor();
191
192 //=========================================================================================================
198 QMap<qint32, float> getScalingMap();
199
200 //=========================================================================================================
206 void setScalingMap(const QMap<qint32, float>& scaleMap);
207
208 //=========================================================================================================
214 void setSignalColor(const QColor& signalColor);
215
216 //=========================================================================================================
222 QColor getSignalColor();
223
224 //=========================================================================================================
228 void hideBadChannels();
229
230 //=========================================================================================================
237
238 //=========================================================================================================
244 void showSelectedChannelsOnly(const QStringList& selectedChannels);
245
246 //=========================================================================================================
252 void setZoom(double zoomFac);
253
254 //=========================================================================================================
260 double getZoom();
261
262 //=========================================================================================================
268 void setWindowSize(int T);
269
270 //=========================================================================================================
276 int getWindowSize();
277
278 //=========================================================================================================
284 void takeScreenshot(const QString& fileName);
285
286 //=========================================================================================================
292 void updateProjection(const QList<FIFFLIB::FiffProj>& projs);
293
294 //=========================================================================================================
300 void updateCompensator(int to);
301
302 //=========================================================================================================
308 void updateSpharaActivation(bool state);
309
310 //=========================================================================================================
318 void updateSpharaOptions(const QString& sSytemType,
319 int nBaseFctsFirst,
320 int nBaseFctsSecond);
321
322 //=========================================================================================================
328 void setFilter(const UTILSLIB::FilterKernel &filterData);
329
330 //=========================================================================================================
336 void setFilterActive(bool state);
337
338 //=========================================================================================================
344 void setFilterChannelType(const QString& channelType);
345
346 //=========================================================================================================
355 void triggerInfoChanged(const QMap<double, QColor>& colorMap,
356 bool active,
357 const QString& triggerCh,
358 double threshold);
359
360 //=========================================================================================================
366 void setDistanceTimeSpacer(int value);
367
368 //=========================================================================================================
375
376 //=========================================================================================================
380 void resetTriggerCounter();
381
382 //=========================================================================================================
386 void saveSettings();
387
388 //=========================================================================================================
392 void loadSettings();
393
394 //=========================================================================================================
398 void clearView();
399
400 //=========================================================================================================
404 float getSamplingFreq() const;
405
406protected:
407 //=========================================================================================================
413 void updateGuiMode(GuiMode mode);
414
415 //=========================================================================================================
422
423 //=========================================================================================================
429 void channelContextMenu(QPoint pos);
430
431 //=========================================================================================================
435 void applySelection();
436
437 //=========================================================================================================
441 void hideSelection();
442
443 //=========================================================================================================
447 void resetSelection();
448
449 //=========================================================================================================
453 void visibleRowsChanged();
454
455 //=========================================================================================================
459 void markChBad();
460
461 //=========================================================================================================
467 void onAddEvent(bool bChecked);
468
469 QPointer<QTableView> m_pTableView;
470 QPointer<DISPLIB::RtFiffRawViewDelegate> m_pDelegate;
471 QPointer<DISPLIB::RtFiffRawViewModel> m_pModel;
472
473 QMap<qint32,float> m_qMapChScaling;
474
475 qint32 m_iT;
476 QSharedPointer<FIFFLIB::FiffInfo> m_pFiffInfo;
479 QList<qint32> m_qListBadChannels;
486
488
489signals:
490 //=========================================================================================================
497 void markerMoved(QPoint position,
498 int activeRow);
499
500 //=========================================================================================================
504 void triggerDetected(int numberDetectedTriggers,
505 const QMap<int,QList<QPair<int,double> > >& mapDetectedTriggers);
506
507 //=========================================================================================================
512
513 //=========================================================================================================
514 void addSampleAsEvent(int iSample);
515};
516} // NAMESPACE
517
518#endif // RTFIFFRAWVIEW_H
Declaration of the AbstractView Class.
disp library export/import macros.
#define DISPSHARED_EXPORT
Definition disp_global.h:51
FiffProj class declaration.
FIFF file I/O and data structures (raw, epochs, evoked, covariance, forward).
2-D display widgets and visualisation helpers (charts, topography, colour maps).
Shared utilities (I/O helpers, spectral analysis, layout management, warp algorithms).
AbstractView(QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
The RtFiffRawViewDelegate class represents a RTMSA delegate which creates the plot paths.
The RtFiffRawViewModel class implements the data access model for a real-time multi sample array data...
void setFilterChannelType(const QString &channelType)
QPointer< DISPLIB::RtFiffRawViewModel > m_pModel
QMap< qint32, float > m_qMapChScaling
void init(QSharedPointer< FIFFLIB::FiffInfo > &info)
QMap< qint32, float > getScalingMap()
QSharedPointer< const RtFiffRawView > ConstSPtr
RtFiffRawView(const QString &sSettingsPath="", QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
void takeScreenshot(const QString &fileName)
void updateGuiMode(GuiMode mode)
bool eventFilter(QObject *object, QEvent *event)
void triggerDetected(int numberDetectedTriggers, const QMap< int, QList< QPair< int, double > > > &mapDetectedTriggers)
void setBackgroundColor(const QColor &backgroundColor)
void addSampleAsEvent(int iSample)
void updateSpharaOptions(const QString &sSytemType, int nBaseFctsFirst, int nBaseFctsSecond)
void setDistanceTimeSpacer(int value)
QList< qint32 > m_qListBadChannels
float getSamplingFreq() const
QStringList m_slSelectedChannels
void channelContextMenu(QPoint pos)
QSharedPointer< RtFiffRawView > SPtr
Eigen::MatrixXd getLastBlock()
QPointer< QTableView > m_pTableView
void markerMoved(QPoint position, int activeRow)
void addData(const QList< Eigen::MatrixXd > &data)
void updateProcessingMode(ProcessingMode mode)
void showSelectedChannelsOnly(const QStringList &selectedChannels)
void updateSpharaActivation(bool state)
QSharedPointer< FIFFLIB::FiffInfo > m_pFiffInfo
void triggerInfoChanged(const QMap< double, QColor > &colorMap, bool active, const QString &triggerCh, double threshold)
void setSignalColor(const QColor &signalColor)
void setSettingsPath(const QString &sSettingsPath)
QPointer< DISPLIB::RtFiffRawViewDelegate > m_pDelegate
void onAddEvent(bool bChecked)
void setFilterActive(bool state)
void setFilter(const UTILSLIB::FilterKernel &filterData)
QList< qint32 > m_qListCurrentSelection
void updateProjection(const QList< FIFFLIB::FiffProj > &projs)
void setZoom(double zoomFac)
void setScalingMap(const QMap< qint32, float > &scaleMap)
The FilterKernel class provides methods to create/design a FIR filter kernel.
FIFF measurement file information.
Definition fiff_info.h:86