QTableView-based real-time FIFF raw-data browser host. More...
#include <rtfiffrawview.h>
Public Types | |
| typedef QSharedPointer< RtFiffRawView > | SPtr |
| typedef QSharedPointer< const RtFiffRawView > | ConstSPtr |
| Public Types inherited from DISPLIB::AbstractView | |
| enum | StyleMode { Default , Dark } |
| enum | GuiMode { Clinical , Research } |
| enum | ProcessingMode { RealTime , Offline } |
| typedef QSharedPointer< AbstractView > | SPtr |
| typedef QSharedPointer< const AbstractView > | ConstSPtr |
Signals | |
| void | markerMoved (QPoint position, int activeRow) |
| void | triggerDetected (int numberDetectedTriggers, const QMap< int, QList< QPair< int, double > > > &mapDetectedTriggers) |
| void | channelMarkingChanged () |
| void | addSampleAsEvent (int iSample) |
| void | cursorDataChanged (float timeSec, float amplitude, const QString &channelName, const QString &unitLabel) |
| Signals inherited from DISPLIB::AbstractView | |
| void | guiStyleChanged (DISPLIB::AbstractView::StyleMode style) |
Public Member Functions | |
| RtFiffRawView (const QString &sSettingsPath="", QWidget *parent=0, Qt::WindowFlags f=Qt::Widget) | |
| ~RtFiffRawView () | |
| void | updateViewport () |
| void | setSettingsPath (const QString &sSettingsPath) |
| void | init (QSharedPointer< FIFFLIB::FiffInfo > &info) |
| void | addData (const QList< Eigen::MatrixXd > &lMatData) |
| Eigen::MatrixXd | getLastBlock () |
| bool | eventFilter (QObject *object, QEvent *event) |
| void | setBackgroundColor (const QColor &backgroundColor) |
| QColor | getBackgroundColor () |
| QMap< qint32, float > | getScalingMap () |
| void | setScalingMap (const QMap< qint32, float > &scaleMap) |
| void | setSignalColor (const QColor &signalColor) |
| QColor | getSignalColor () |
| void | hideBadChannels () |
| bool | getBadChannelHideStatus () |
| void | showSelectedChannelsOnly (const QStringList &selectedChannels) |
| void | setZoom (double zoomFac) |
| double | getZoom () |
| void | setWindowSize (int T) |
| int | getWindowSize () |
| void | takeScreenshot (const QString &fileName) |
| void | updateProjection (const QList< FIFFLIB::FiffProj > &projs) |
| void | updateCompensator (int to) |
| void | updateSpharaActivation (bool state) |
| void | updateSpharaOptions (const QString &sSytemType, int nBaseFctsFirst, int nBaseFctsSecond) |
| void | setFilter (const UTILSLIB::FilterKernel &filterData) |
| void | setFilterActive (bool state) |
| void | setFilterChannelType (const QString &channelType) |
| void | triggerInfoChanged (const QMap< double, QColor > &colorMap, bool active, const QString &triggerCh, double threshold) |
| void | setDistanceTimeSpacer (int value) |
| int | getDistanceTimeSpacer () |
| void | resetTriggerCounter () |
| void | saveSettings () |
| void | loadSettings () |
| void | clearView () |
| float | getSamplingFreq () const |
| void | setCrosshairEnabled (bool enabled) |
| bool | crosshairEnabled () const |
| Public Member Functions inherited from DISPLIB::AbstractView | |
| AbstractView (QWidget *parent=0, Qt::WindowFlags f=Qt::Widget) | |
| virtual void | setGuiMode (GuiMode mode) |
| virtual void | setProcessingMode (ProcessingMode mode) |
Protected Member Functions | |
| void | updateGuiMode (GuiMode mode) |
| void | updateProcessingMode (ProcessingMode mode) |
| void | channelContextMenu (QPoint pos) |
| void | applySelection () |
| void | hideSelection () |
| void | resetSelection () |
| void | visibleRowsChanged () |
| void | updateRowHeight () |
| void | markChBad () |
| void | onAddEvent (bool bChecked) |
| int | columnAt (int iX) const |
| void | updateCrosshair (const QPoint &position) |
Protected Attributes | |
| QPointer< QTableView > | m_pTableView |
| QPointer< DISPLIB::RtFiffRawViewDelegate > | m_pDelegate |
| QPointer< DISPLIB::RtFiffRawViewModel > | m_pModel |
| QMap< qint32, float > | m_qMapChScaling |
| qint32 | m_iT |
| QSharedPointer< FIFFLIB::FiffInfo > | m_pFiffInfo |
| float | m_fSamplingRate |
| float | m_fZoomFactor |
| QList< qint32 > | m_qListBadChannels |
| QList< qint32 > | m_qListCurrentSelection |
| bool | m_bHideBadChannels |
| QStringList | m_slSelectedChannels |
| QColor | m_backgroundColor |
| int | m_iDistanceTimeSpacer |
| int | m_iClickPosX |
| bool | m_bCrosshairEnabled |
| QString | m_sSettingsPath |
| Protected Attributes inherited from DISPLIB::AbstractView | |
| bool | m_bResearchModeIsActive |
| bool | m_bOfflineModeIsActive |
| QString | m_sSettingsPath |
QTableView-based real-time FIFF raw-data browser host.
Owns the scrollbars, the marker / annotation machinery and the trigger-channel overlay; delegates per-row painting to RtFiffRawViewDelegate and data access to RtFiffRawViewModel.
Definition at line 92 of file rtfiffrawview.h.

| typedef QSharedPointer<const RtFiffRawView> DISPLIB::RtFiffRawView::ConstSPtr |
Const shared pointer type for RtFiffRawView.
Definition at line 98 of file rtfiffrawview.h.
| typedef QSharedPointer<RtFiffRawView> DISPLIB::RtFiffRawView::SPtr |
Shared pointer type for RtFiffRawView.
Definition at line 97 of file rtfiffrawview.h.
| RtFiffRawView::RtFiffRawView | ( | const QString & | sSettingsPath = "", |
| QWidget * | parent = 0, | ||
| Qt::WindowFlags | f = Qt::Widget ) |
Constructs a RtFiffRawView which is a child of parent.
| [in] | sSettingsPath | Settings path under which the widget persists its state (empty = no persistence). |
| [in] | parent | The parent of widget. |
| [in] | f | Qt window flags passed to the QWidget constructor. |
Definition at line 58 of file rtfiffrawview.cpp.
| RtFiffRawView::~RtFiffRawView | ( | ) |
Destroys the RtFiffRawView.
Definition at line 85 of file rtfiffrawview.cpp.
| void RtFiffRawView::addData | ( | const QList< Eigen::MatrixXd > & | lMatData | ) |
Add data to the view.
| [in] | lMatData | The new data. |
Definition at line 181 of file rtfiffrawview.cpp.
|
signal |
|
protected |
apply the in m_qListCurrentSelection stored selection -> hack around C++11 lambda
Definition at line 683 of file rtfiffrawview.cpp.
|
protected |
Show channel context menu
| [in] | pos | Position to popup the conext menu. |
Definition at line 619 of file rtfiffrawview.cpp.
|
signal |
Emmited when marking of bad channels is changed
|
virtual |
|
protected |
Maps a viewport x position to the buffer column it shows.
| [in] | iX | The x position in viewport coordinates. |
Definition at line 255 of file rtfiffrawview.cpp.
| bool RtFiffRawView::crosshairEnabled | ( | ) | const |
Definition at line 248 of file rtfiffrawview.cpp.
|
signal |
Emitted while the crosshair is enabled and the mouse is over data, with the same signature as ChannelDataView::cursorDataChanged().
| [in] | timeSec | Time since the start of the stream in seconds. |
| [in] | amplitude | Displayed value (after projectors, compensators and filters) in SI units. |
| [in] | channelName | Name of the channel under the cursor. |
| [in] | unitLabel | SI unit label ("T", "T/m", "V", "AU", ...). |
| bool RtFiffRawView::eventFilter | ( | QObject * | object, |
| QEvent * | event ) |
Is called when mouse wheel is used. Function is selecting the tool (freezing/annotation);
| [in] | object | Object the event was sent to. |
| [in] | event | The intercepted event. |
Definition at line 220 of file rtfiffrawview.cpp.
| QColor RtFiffRawView::getBackgroundColor | ( | ) |
Returns the current background color.
Definition at line 300 of file rtfiffrawview.cpp.
| bool RtFiffRawView::getBadChannelHideStatus | ( | ) |
Get whether the bad channels are currently hidden or not.
Definition at line 392 of file rtfiffrawview.cpp.
| int RtFiffRawView::getDistanceTimeSpacer | ( | ) |
Returns teh current distance between time spacers.
Definition at line 559 of file rtfiffrawview.cpp.
| MatrixXd RtFiffRawView::getLastBlock | ( | ) |
Get the latest data block from the underlying model.
Definition at line 213 of file rtfiffrawview.cpp.
| float RtFiffRawView::getSamplingFreq | ( | ) | const |
Getter fcn for Sampling Frequency member.
Definition at line 456 of file rtfiffrawview.cpp.
| QMap< qint32, float > RtFiffRawView::getScalingMap | ( | ) |
Get the current scaling map.
Definition at line 307 of file rtfiffrawview.cpp.
| QColor RtFiffRawView::getSignalColor | ( | ) |
Returns the signal color.
Definition at line 329 of file rtfiffrawview.cpp.
| int RtFiffRawView::getWindowSize | ( | ) |
Get the current window size.
Definition at line 449 of file rtfiffrawview.cpp.
| double RtFiffRawView::getZoom | ( | ) |
| void RtFiffRawView::hideBadChannels | ( | ) |
Hides/shows all bad channels in the view
Definition at line 336 of file rtfiffrawview.cpp.
|
protected |
hides the in m_qListCurrentSelection stored selection -> hack around C++11 lambda
Definition at line 703 of file rtfiffrawview.cpp.
| void RtFiffRawView::init | ( | QSharedPointer< FIFFLIB::FiffInfo > & | info | ) |
Initilaizes the RtFiffRawView based on a FiffInfo.
| [in] | info | The FiffInfo. |
Definition at line 123 of file rtfiffrawview.cpp.
|
virtual |
Loads and inits all important settings of this view via QSettings.
Implements DISPLIB::AbstractView.
Definition at line 584 of file rtfiffrawview.cpp.
|
protected |
Gets called when the bad channels are about to be marked as bad or good
Definition at line 767 of file rtfiffrawview.cpp.
|
signal |
position is emitted whenever user moves the mouse inside of the table view viewport
| [in] | position | the current mouse position. |
| [in] | activeRow | the current row which the mouse is moved over. |
|
protected |
Adds event based on last clicked position.
| [in] | bChecked | State of action that triggered this function (unused) |
Definition at line 803 of file rtfiffrawview.cpp.
|
protected |
reset the in m_qListCurrentSelection stored selection -> hack around C++11 lambda
Definition at line 715 of file rtfiffrawview.cpp.
| void RtFiffRawView::resetTriggerCounter | ( | ) |
resetTriggerCounter resets the trigger counter
Definition at line 566 of file rtfiffrawview.cpp.
|
virtual |
Saves all important settings of this view via QSettings.
Implements DISPLIB::AbstractView.
Definition at line 573 of file rtfiffrawview.cpp.
| void RtFiffRawView::setBackgroundColor | ( | const QColor & | backgroundColor | ) |
Broadcast the background color changes made in the QuickControl widget
| [in] | backgroundColor | The new background color. |
Definition at line 284 of file rtfiffrawview.cpp.
| void RtFiffRawView::setCrosshairEnabled | ( | bool | enabled | ) |
Shows a crosshair at the mouse position and reports the value under it via cursorDataChanged(), like ChannelDataView.
| [in] | enabled | Whether the crosshair is shown. |
Definition at line 236 of file rtfiffrawview.cpp.
| void RtFiffRawView::setDistanceTimeSpacer | ( | int | value | ) |
distanceTimeSpacerChanged changes the distance of the time spacers
| [in] | value | the new distance for the time spacers. |
Definition at line 551 of file rtfiffrawview.cpp.
| void RtFiffRawView::setFilter | ( | const UTILSLIB::FilterKernel & | filterData | ) |
Filter parameters changed
| [in] | filterData | the currently active filter. |
Definition at line 520 of file rtfiffrawview.cpp.
| void RtFiffRawView::setFilterActive | ( | bool | state | ) |
Filter avtivated
| [in] | state | filter on/off flag. |
Definition at line 527 of file rtfiffrawview.cpp.
| void RtFiffRawView::setFilterChannelType | ( | const QString & | channelType | ) |
Sets the type of channel which are to be filtered
| [in] | channelType | the channel type which is to be filtered (EEG, MEG, All). |
Definition at line 534 of file rtfiffrawview.cpp.
| void RtFiffRawView::setScalingMap | ( | const QMap< qint32, float > & | scaleMap | ) |
Broadcast channel scaling
| [in] | scaleMap | QMap with scaling values which is to be broadcasted to the model. |
Definition at line 314 of file rtfiffrawview.cpp.
| void RtFiffRawView::setSettingsPath | ( | const QString & | sSettingsPath | ) |
Set the path where to store the settings of this widget via QSettings. Note that this will also trigger a reload of the stored settings.
| [in] | sSettingsPath | The new settings path. |
Definition at line 115 of file rtfiffrawview.cpp.
| void RtFiffRawView::setSignalColor | ( | const QColor & | signalColor | ) |
Set the signal color.
| [in] | signalColor | The new signal color. |
Definition at line 322 of file rtfiffrawview.cpp.
| void RtFiffRawView::setWindowSize | ( | int | T | ) |
Sets new time window size
| [in] | T | time window size;. |
Definition at line 440 of file rtfiffrawview.cpp.
| void RtFiffRawView::setZoom | ( | double | zoomFac | ) |
Sets new zoom factor
| [in] | zoomFac | time window size;. |
Definition at line 424 of file rtfiffrawview.cpp.
| void RtFiffRawView::showSelectedChannelsOnly | ( | const QStringList & | selectedChannels | ) |
Only shows the channels defined in the QStringList selectedChannels
| [in] | selectedChannels | list of all channel names which are currently selected in the selection manager. |
Definition at line 399 of file rtfiffrawview.cpp.
| void RtFiffRawView::takeScreenshot | ( | const QString & | fileName | ) |
Renders a screenshot of the view and saves it to the passed path. SVG and PNG supported.
| [in] | fileName | The file name and path where to store the screenshot. |
Definition at line 463 of file rtfiffrawview.cpp.
|
signal |
Emmited when trigger detection was performed
| void RtFiffRawView::triggerInfoChanged | ( | const QMap< double, QColor > & | colorMap, |
| bool | active, | ||
| const QString & | triggerCh, | ||
| double | threshold ) |
markChBad marks the selected channels as bad/good in m_chInfolist
| [in] | colorMap | color for each trigger channel. |
| [in] | active | real time trigger detection active. |
| [in] | triggerCh | current trigger channel to scan. |
| [in] | threshold | threshold for the detection process. |
Definition at line 541 of file rtfiffrawview.cpp.
| void RtFiffRawView::updateCompensator | ( | int | to | ) |
Update the compensator
| [in] | to | Compensator to use in fiff constant format FiffCtfComp.kind (NOT FiffCtfComp.ctfkind). |
Definition at line 499 of file rtfiffrawview.cpp.
|
protected |
Moves the crosshair to a viewport position and reports the value under it.
| [in] | position | The mouse position in viewport coordinates. |
Definition at line 264 of file rtfiffrawview.cpp.
|
protectedvirtual |
Update the views GUI based on the set GuiMode (Clinical=0, Research=1).
| [in] | mode | The new mode (Clinical=0, Research=1). |
Implements DISPLIB::AbstractView.
Definition at line 595 of file rtfiffrawview.cpp.
|
protectedvirtual |
Update the views GUI based on the set ProcessingMode (RealTime=0, Offline=1).
| [in] | mode | The new mode (RealTime=0, Offline=1). |
Implements DISPLIB::AbstractView.
Definition at line 607 of file rtfiffrawview.cpp.
| void RtFiffRawView::updateProjection | ( | const QList< FIFFLIB::FiffProj > & | projs | ) |
Update the SSP projection
| [in] | projs | The new projectors. |
Definition at line 492 of file rtfiffrawview.cpp.
|
protected |
Recomputes the row height so the currently visible rows fill the view.
Has to be called whenever rows are hidden or shown, otherwise the rows keep the height they were given for the previous number of channels.
Definition at line 362 of file rtfiffrawview.cpp.
| void RtFiffRawView::updateSpharaActivation | ( | bool | state | ) |
Update the SPHARA operator
| [in] | state | The current state of teh SPHARA tool. |
Definition at line 506 of file rtfiffrawview.cpp.
| void RtFiffRawView::updateSpharaOptions | ( | const QString & | sSytemType, |
| int | nBaseFctsFirst, | ||
| int | nBaseFctsSecond ) |
Update the SPHARA operator
| [in] | sSytemType | The current acquisition system type (VectorView, BabyMEG, EEG). |
| [in] | nBaseFctsFirst | The new number of basis function to use for the first SPHARA operator. |
| [in] | nBaseFctsSecond | The new number of basis function to use for the second SPHARA operator. |
Definition at line 513 of file rtfiffrawview.cpp.
| void RtFiffRawView::updateViewport | ( | ) |
Update the viewport. This, e.g., necessary if this widget was set to a QDockWidget which changes its floating state.
Definition at line 92 of file rtfiffrawview.cpp.
|
protected |
Gets called when the views in the viewport of the table view change
Definition at line 734 of file rtfiffrawview.cpp.
|
protected |
Current background color.
Definition at line 521 of file rtfiffrawview.h.
|
protected |
Whether the crosshair follows the mouse.
Definition at line 524 of file rtfiffrawview.h.
|
protected |
hide bad channels flag.
Definition at line 519 of file rtfiffrawview.h.
|
protected |
Sampling rate.
Definition at line 515 of file rtfiffrawview.h.
|
protected |
Zoom factor.
Definition at line 516 of file rtfiffrawview.h.
|
protected |
Definition at line 523 of file rtfiffrawview.h.
|
protected |
Current distance between time spacer.
Definition at line 522 of file rtfiffrawview.h.
|
protected |
Display window size in seconds.
Definition at line 513 of file rtfiffrawview.h.
|
protected |
The channel data delegate.
Definition at line 508 of file rtfiffrawview.h.
|
protected |
FiffInfo, which is used insteadd of ListChInfo
Definition at line 514 of file rtfiffrawview.h.
|
protected |
The channel data model.
Definition at line 509 of file rtfiffrawview.h.
|
protected |
The QTableView being part of the model/view framework of Qt.
Definition at line 507 of file rtfiffrawview.h.
|
protected |
Current list of bad channels .
Definition at line 517 of file rtfiffrawview.h.
|
protected |
Current selection list -> hack around C++11 lambda .
Definition at line 518 of file rtfiffrawview.h.
|
protected |
Channel scaling values.
Definition at line 511 of file rtfiffrawview.h.
|
protected |
the currently selected channels from the selection manager window.
Definition at line 520 of file rtfiffrawview.h.
|
protected |
The settings path to store the GUI settings to.
Definition at line 526 of file rtfiffrawview.h.