MNE-CPP  0.1.9
A Framework for Electrophysiology
Public Types | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
DISPLIB::RtFiffRawView Class Reference

The RtFiffRawView class provides a real-time channel view display. More...

#include <rtfiffrawview.h>

Public Types

typedef QSharedPointer< RtFiffRawViewSPtr
 
typedef QSharedPointer< const RtFiffRawViewConstSPtr
 
- Public Types inherited from DISPLIB::AbstractView
enum  StyleMode { Default, Dark }
 
enum  GuiMode { Clinical, Research }
 
enum  ProcessingMode { RealTime, Offline }
 
typedef QSharedPointer< AbstractViewSPtr
 
typedef QSharedPointer< const AbstractViewConstSPtr
 

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)
 
- 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 updateOpenGLViewport ()
 
void setSettingsPath (const QString &sSettingsPath)
 
void init (QSharedPointer< FIFFLIB::FiffInfo > &info)
 
void addData (const QList< Eigen::MatrixXd > &data)
 
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 RTPROCESSINGLIB::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
 
- 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 markChBad ()
 
void onAddEvent (bool bChecked)
 

Protected Attributes

QPointer< QTableView > m_pTableView
 
QPointer< DISPLIB::RtFiffRawViewDelegatem_pDelegate
 
QPointer< DISPLIB::RtFiffRawViewModelm_pModel
 
QMap< qint32, float > m_qMapChScaling
 
qint32 m_iT
 
QSharedPointer< FIFFLIB::FiffInfom_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
 
QString m_sSettingsPath
 
- Protected Attributes inherited from DISPLIB::AbstractView
bool m_bResearchModeIsActive
 
bool m_bOfflineModeIsActive
 
QString m_sSettingsPath
 

Detailed Description

The RtFiffRawView class provides a real-time channel view display.

DECLARE CLASS RtFiffRawView

Definition at line 97 of file rtfiffrawview.h.

Inheritance diagram for DISPLIB::RtFiffRawView:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

typedef QSharedPointer<const RtFiffRawView> DISPLIB::RtFiffRawView::ConstSPtr

Const shared pointer type for RtFiffRawView.

Definition at line 103 of file rtfiffrawview.h.

◆ SPtr

Shared pointer type for RtFiffRawView.

Definition at line 102 of file rtfiffrawview.h.

Constructor & Destructor Documentation

◆ RtFiffRawView()

RtFiffRawView::RtFiffRawView ( const QString &  sSettingsPath = "",
QWidget *  parent = 0,
Qt::WindowFlags  f = Qt::Widget 
)

Constructs a RtFiffRawView which is a child of parent.

Parameters
[in]parentThe parent of widget.

Definition at line 79 of file rtfiffrawview.cpp.

◆ ~RtFiffRawView()

RtFiffRawView::~RtFiffRawView ( )

Destroys the RtFiffRawView.

Definition at line 112 of file rtfiffrawview.cpp.

Member Function Documentation

◆ addData()

void RtFiffRawView::addData ( const QList< Eigen::MatrixXd > &  data)

Add data to the view.

Parameters
[in]dataThe new data.

Definition at line 196 of file rtfiffrawview.cpp.

◆ applySelection()

void RtFiffRawView::applySelection ( )
protected

apply the in m_qListCurrentSelection stored selection -> hack around C++11 lambda

Definition at line 598 of file rtfiffrawview.cpp.

◆ channelContextMenu()

void RtFiffRawView::channelContextMenu ( QPoint  pos)
protected

Show channel context menu

Parameters
[in]posPosition to popup the conext menu.

Definition at line 535 of file rtfiffrawview.cpp.

◆ channelMarkingChanged

void DISPLIB::RtFiffRawView::channelMarkingChanged ( )
signal

Emmited when marking of bad channels is changed

◆ clearView()

void RtFiffRawView::clearView ( )
virtual

Clears the view

Implements DISPLIB::AbstractView.

Definition at line 713 of file rtfiffrawview.cpp.

◆ eventFilter()

bool RtFiffRawView::eventFilter ( QObject *  object,
QEvent *  event 
)

Is called when mouse wheel is used. Function is selecting the tool (freezing/annotation);

Parameters
[in]object.
[in]event.
Returns

Definition at line 232 of file rtfiffrawview.cpp.

◆ getBackgroundColor()

QColor RtFiffRawView::getBackgroundColor ( )

Returns the current background color.

Returns
The current background color.

Definition at line 261 of file rtfiffrawview.cpp.

◆ getBadChannelHideStatus()

bool RtFiffRawView::getBadChannelHideStatus ( )

Get whether the bad channels are currently hidden or not.

Returns
The current bad channel hidden status.

Definition at line 320 of file rtfiffrawview.cpp.

◆ getDistanceTimeSpacer()

int RtFiffRawView::getDistanceTimeSpacer ( )

Returns teh current distance between time spacers.

Returns
The current distance between the time spacers.

Definition at line 475 of file rtfiffrawview.cpp.

◆ getLastBlock()

MatrixXd RtFiffRawView::getLastBlock ( )

Get the latest data block from the underlying model.

Returns
The last data block.

Definition at line 225 of file rtfiffrawview.cpp.

◆ getSamplingFreq()

float RtFiffRawView::getSamplingFreq ( ) const

Getter fcn for Sampling Frequency member.

Definition at line 381 of file rtfiffrawview.cpp.

◆ getScalingMap()

QMap< qint32, float > RtFiffRawView::getScalingMap ( )

Get the current scaling map.

Returns
The current scaling map.

Definition at line 268 of file rtfiffrawview.cpp.

◆ getSignalColor()

QColor RtFiffRawView::getSignalColor ( )

Returns the signal color.

Returns
The current signal color.

Definition at line 290 of file rtfiffrawview.cpp.

◆ getWindowSize()

int RtFiffRawView::getWindowSize ( )

Get the current window size.

Returns
The current window size.

Definition at line 374 of file rtfiffrawview.cpp.

◆ getZoom()

double RtFiffRawView::getZoom ( )

Get the current zoom.

Returns
The current zoom.

Definition at line 358 of file rtfiffrawview.cpp.

◆ hideBadChannels()

void RtFiffRawView::hideBadChannels ( )

Hides/shows all bad channels in the view

Definition at line 297 of file rtfiffrawview.cpp.

◆ hideSelection()

void RtFiffRawView::hideSelection ( )
protected

hides the in m_qListCurrentSelection stored selection -> hack around C++11 lambda

Definition at line 618 of file rtfiffrawview.cpp.

◆ init()

void RtFiffRawView::init ( QSharedPointer< FIFFLIB::FiffInfo > &  info)

Initilaizes the RtFiffRawView based on a FiffInfo.

Parameters
[in]infoThe FiffInfo.

Definition at line 138 of file rtfiffrawview.cpp.

◆ loadSettings()

void RtFiffRawView::loadSettings ( )
virtual

Loads and inits all important settings of this view via QSettings.

Implements DISPLIB::AbstractView.

Definition at line 500 of file rtfiffrawview.cpp.

◆ markChBad()

void RtFiffRawView::markChBad ( )
protected

Gets called when the bad channels are about to be marked as bad or good

Definition at line 682 of file rtfiffrawview.cpp.

◆ markerMoved

void DISPLIB::RtFiffRawView::markerMoved ( QPoint  position,
int  activeRow 
)
signal

position is emitted whenever user moves the mouse inside of the table view viewport

Parameters
[in]positionthe current mouse position.
[in]activeRowthe current row which the mouse is moved over.

◆ onAddEvent()

void RtFiffRawView::onAddEvent ( bool  bChecked)
protected

Adds event based on last clicked position.

Parameters
[in]bCheckedState of action that triggered this function (unused)

Definition at line 720 of file rtfiffrawview.cpp.

◆ resetSelection()

void RtFiffRawView::resetSelection ( )
protected

reset the in m_qListCurrentSelection stored selection -> hack around C++11 lambda

Definition at line 630 of file rtfiffrawview.cpp.

◆ resetTriggerCounter()

void RtFiffRawView::resetTriggerCounter ( )

resetTriggerCounter resets the trigger counter

Definition at line 482 of file rtfiffrawview.cpp.

◆ saveSettings()

void RtFiffRawView::saveSettings ( )
virtual

Saves all important settings of this view via QSettings.

Implements DISPLIB::AbstractView.

Definition at line 489 of file rtfiffrawview.cpp.

◆ setBackgroundColor()

void RtFiffRawView::setBackgroundColor ( const QColor &  backgroundColor)

Broadcast the background color changes made in the QuickControl widget

Parameters
[in]backgroundColorThe new background color.

Definition at line 245 of file rtfiffrawview.cpp.

◆ setDistanceTimeSpacer()

void RtFiffRawView::setDistanceTimeSpacer ( int  value)

distanceTimeSpacerChanged changes the distance of the time spacers

Parameters
[in]valuethe new distance for the time spacers.

Definition at line 467 of file rtfiffrawview.cpp.

◆ setFilter()

void RtFiffRawView::setFilter ( const RTPROCESSINGLIB::FilterKernel filterData)

Filter parameters changed

Parameters
[in]filterDatathe currently active filter.

Definition at line 436 of file rtfiffrawview.cpp.

◆ setFilterActive()

void RtFiffRawView::setFilterActive ( bool  state)

Filter avtivated

Parameters
[in]statefilter on/off flag.

Definition at line 443 of file rtfiffrawview.cpp.

◆ setFilterChannelType()

void RtFiffRawView::setFilterChannelType ( const QString &  channelType)

Sets the type of channel which are to be filtered

Parameters
[in]channelTypethe channel type which is to be filtered (EEG, MEG, All).

Definition at line 450 of file rtfiffrawview.cpp.

◆ setScalingMap()

void RtFiffRawView::setScalingMap ( const QMap< qint32, float > &  scaleMap)

Broadcast channel scaling

Parameters
[in]scaleMapQMap with scaling values which is to be broadcasted to the model.

Definition at line 275 of file rtfiffrawview.cpp.

◆ setSettingsPath()

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.

Parameters
[in]sSettingsPathThe new settings path.

Definition at line 130 of file rtfiffrawview.cpp.

◆ setSignalColor()

void RtFiffRawView::setSignalColor ( const QColor &  signalColor)

Set the signal color.

Parameters
[in]signalColorThe new signal color.

Definition at line 283 of file rtfiffrawview.cpp.

◆ setWindowSize()

void RtFiffRawView::setWindowSize ( int  T)

Sets new time window size

Parameters
[in]Ttime window size;.

Definition at line 365 of file rtfiffrawview.cpp.

◆ setZoom()

void RtFiffRawView::setZoom ( double  zoomFac)

Sets new zoom factor

Parameters
[in]zoomFactime window size;.

Definition at line 349 of file rtfiffrawview.cpp.

◆ showSelectedChannelsOnly()

void RtFiffRawView::showSelectedChannelsOnly ( const QStringList &  selectedChannels)

Only shows the channels defined in the QStringList selectedChannels

Parameters
[in]selectedChannelslist of all channel names which are currently selected in the selection manager.

Definition at line 327 of file rtfiffrawview.cpp.

◆ takeScreenshot()

void RtFiffRawView::takeScreenshot ( const QString &  fileName)

Renders a screenshot of the view and saves it to the passed path. SVG and PNG supported.

Parameters
[in]fileNameThe file name and path where to store the screenshot.

Definition at line 388 of file rtfiffrawview.cpp.

◆ triggerDetected

void DISPLIB::RtFiffRawView::triggerDetected ( int  numberDetectedTriggers,
const QMap< int, QList< QPair< int, double > > > &  mapDetectedTriggers 
)
signal

Emmited when trigger detection was performed

◆ triggerInfoChanged()

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

Parameters
[in]colorMapcolor for each trigger channel.
[in]activreal time trigger detection active.
[in]triggerChcurrent trigger channel to scan.
[in]thresholdthreshold for the detection process.

Definition at line 457 of file rtfiffrawview.cpp.

◆ updateCompensator()

void RtFiffRawView::updateCompensator ( int  to)

Update the compensator

Parameters
[in]toCompensator to use in fiff constant format FiffCtfComp.kind (NOT FiffCtfComp.ctfkind).

Definition at line 415 of file rtfiffrawview.cpp.

◆ updateGuiMode()

void RtFiffRawView::updateGuiMode ( GuiMode  mode)
protectedvirtual

Update the views GUI based on the set GuiMode (Clinical=0, Research=1).

Parameters
[in]modeThe new mode (Clinical=0, Research=1).

Implements DISPLIB::AbstractView.

Definition at line 511 of file rtfiffrawview.cpp.

◆ updateOpenGLViewport()

void RtFiffRawView::updateOpenGLViewport ( )

Update the OpenGL viewport. This, e.g., necessary if this widget was set to a QDockWidget which changes its floating state.

Definition at line 119 of file rtfiffrawview.cpp.

◆ updateProcessingMode()

void RtFiffRawView::updateProcessingMode ( ProcessingMode  mode)
protectedvirtual

Update the views GUI based on the set ProcessingMode (RealTime=0, Offline=1).

Parameters
[in]modeThe new mode (RealTime=0, Offline=1).

Implements DISPLIB::AbstractView.

Definition at line 523 of file rtfiffrawview.cpp.

◆ updateProjection()

void RtFiffRawView::updateProjection ( const QList< FIFFLIB::FiffProj > &  projs)

Update the SSP projection

Parameters
[in]projsThe new projectors.

Definition at line 408 of file rtfiffrawview.cpp.

◆ updateSpharaActivation()

void RtFiffRawView::updateSpharaActivation ( bool  state)

Update the SPHARA operator

Parameters
[in]stateThe current state of teh SPHARA tool.

Definition at line 422 of file rtfiffrawview.cpp.

◆ updateSpharaOptions()

void RtFiffRawView::updateSpharaOptions ( const QString &  sSytemType,
int  nBaseFctsFirst,
int  nBaseFctsSecond 
)

Update the SPHARA operator

Parameters
[in]sSystemTypeThe current acquisition system type (VectorView, BabyMEG, EEG).
[in]nBaseFctsFirstThe new number of basis function to use for the first SPHARA operator.
[in]nBaseFctsSecondThe new number of basis function to use for the second SPHARA operator.

Definition at line 429 of file rtfiffrawview.cpp.

◆ visibleRowsChanged()

void RtFiffRawView::visibleRowsChanged ( )
protected

Gets called when the views in the viewport of the table view change

Definition at line 649 of file rtfiffrawview.cpp.

Member Data Documentation

◆ m_backgroundColor

QColor DISPLIB::RtFiffRawView::m_backgroundColor
protected

Current background color.

Definition at line 480 of file rtfiffrawview.h.

◆ m_bHideBadChannels

bool DISPLIB::RtFiffRawView::m_bHideBadChannels
protected

hide bad channels flag.

Definition at line 478 of file rtfiffrawview.h.

◆ m_fSamplingRate

float DISPLIB::RtFiffRawView::m_fSamplingRate
protected

Sampling rate.

Definition at line 474 of file rtfiffrawview.h.

◆ m_fZoomFactor

float DISPLIB::RtFiffRawView::m_fZoomFactor
protected

Zoom factor.

Definition at line 475 of file rtfiffrawview.h.

◆ m_iDistanceTimeSpacer

int DISPLIB::RtFiffRawView::m_iDistanceTimeSpacer
protected

Current distance between time spacer.

Definition at line 481 of file rtfiffrawview.h.

◆ m_iT

qint32 DISPLIB::RtFiffRawView::m_iT
protected

Display window size in seconds.

Definition at line 472 of file rtfiffrawview.h.

◆ m_pDelegate

QPointer<DISPLIB::RtFiffRawViewDelegate> DISPLIB::RtFiffRawView::m_pDelegate
protected

The channel data delegate.

Definition at line 467 of file rtfiffrawview.h.

◆ m_pFiffInfo

QSharedPointer<FIFFLIB::FiffInfo> DISPLIB::RtFiffRawView::m_pFiffInfo
protected

FiffInfo, which is used insteadd of ListChInfo

Definition at line 473 of file rtfiffrawview.h.

◆ m_pModel

QPointer<DISPLIB::RtFiffRawViewModel> DISPLIB::RtFiffRawView::m_pModel
protected

The channel data model.

Definition at line 468 of file rtfiffrawview.h.

◆ m_pTableView

QPointer<QTableView> DISPLIB::RtFiffRawView::m_pTableView
protected

The QTableView being part of the model/view framework of Qt.

Definition at line 466 of file rtfiffrawview.h.

◆ m_qListBadChannels

QList<qint32> DISPLIB::RtFiffRawView::m_qListBadChannels
protected

Current list of bad channels .

Definition at line 476 of file rtfiffrawview.h.

◆ m_qListCurrentSelection

QList<qint32> DISPLIB::RtFiffRawView::m_qListCurrentSelection
protected

Current selection list -> hack around C++11 lambda .

Definition at line 477 of file rtfiffrawview.h.

◆ m_qMapChScaling

QMap<qint32,float> DISPLIB::RtFiffRawView::m_qMapChScaling
protected

Channel scaling values.

Definition at line 470 of file rtfiffrawview.h.

◆ m_slSelectedChannels

QStringList DISPLIB::RtFiffRawView::m_slSelectedChannels
protected

the currently selected channels from the selection manager window.

Definition at line 479 of file rtfiffrawview.h.

◆ m_sSettingsPath

QString DISPLIB::RtFiffRawView::m_sSettingsPath
protected

The settings path to store the GUI settings to.

Definition at line 484 of file rtfiffrawview.h.


The documentation for this class was generated from the following files: