MNE-CPP
0.1.9
A Framework for Electrophysiology
|
The RtFiffRawView class provides a real-time channel view display. 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) |
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::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 |
QString | m_sSettingsPath |
Protected Attributes inherited from DISPLIB::AbstractView | |
bool | m_bResearchModeIsActive |
bool | m_bOfflineModeIsActive |
QString | m_sSettingsPath |
The RtFiffRawView class provides a real-time channel view display.
DECLARE CLASS RtFiffRawView
Definition at line 97 of file rtfiffrawview.h.
typedef QSharedPointer<const RtFiffRawView> DISPLIB::RtFiffRawView::ConstSPtr |
Const shared pointer type for RtFiffRawView.
Definition at line 103 of file rtfiffrawview.h.
typedef QSharedPointer<RtFiffRawView> DISPLIB::RtFiffRawView::SPtr |
Shared pointer type for RtFiffRawView.
Definition at line 102 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] | parent | The parent of widget. |
Definition at line 79 of file rtfiffrawview.cpp.
RtFiffRawView::~RtFiffRawView | ( | ) |
Destroys the RtFiffRawView.
Definition at line 112 of file rtfiffrawview.cpp.
void RtFiffRawView::addData | ( | const QList< Eigen::MatrixXd > & | data | ) |
Add data to the view.
[in] | data | The new data. |
Definition at line 196 of file rtfiffrawview.cpp.
|
protected |
apply the in m_qListCurrentSelection stored selection -> hack around C++11 lambda
Definition at line 598 of file rtfiffrawview.cpp.
|
protected |
Show channel context menu
[in] | pos | Position to popup the conext menu. |
Definition at line 535 of file rtfiffrawview.cpp.
|
signal |
Emmited when marking of bad channels is changed
|
virtual |
bool RtFiffRawView::eventFilter | ( | QObject * | object, |
QEvent * | event | ||
) |
Is called when mouse wheel is used. Function is selecting the tool (freezing/annotation);
[in] | object. | |
[in] | event. |
Definition at line 232 of file rtfiffrawview.cpp.
QColor RtFiffRawView::getBackgroundColor | ( | ) |
Returns the current background color.
Definition at line 261 of file rtfiffrawview.cpp.
bool RtFiffRawView::getBadChannelHideStatus | ( | ) |
Get whether the bad channels are currently hidden or not.
Definition at line 320 of file rtfiffrawview.cpp.
int RtFiffRawView::getDistanceTimeSpacer | ( | ) |
Returns teh current distance between time spacers.
Definition at line 475 of file rtfiffrawview.cpp.
MatrixXd RtFiffRawView::getLastBlock | ( | ) |
Get the latest data block from the underlying model.
Definition at line 225 of file rtfiffrawview.cpp.
float RtFiffRawView::getSamplingFreq | ( | ) | const |
Getter fcn for Sampling Frequency member.
Definition at line 381 of file rtfiffrawview.cpp.
QMap< qint32, float > RtFiffRawView::getScalingMap | ( | ) |
Get the current scaling map.
Definition at line 268 of file rtfiffrawview.cpp.
QColor RtFiffRawView::getSignalColor | ( | ) |
Returns the signal color.
Definition at line 290 of file rtfiffrawview.cpp.
int RtFiffRawView::getWindowSize | ( | ) |
Get the current window size.
Definition at line 374 of file rtfiffrawview.cpp.
double RtFiffRawView::getZoom | ( | ) |
void RtFiffRawView::hideBadChannels | ( | ) |
Hides/shows all bad channels in the view
Definition at line 297 of file rtfiffrawview.cpp.
|
protected |
hides the in m_qListCurrentSelection stored selection -> hack around C++11 lambda
Definition at line 618 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 138 of file rtfiffrawview.cpp.
|
virtual |
Loads and inits all important settings of this view via QSettings.
Implements DISPLIB::AbstractView.
Definition at line 500 of file rtfiffrawview.cpp.
|
protected |
Gets called when the bad channels are about to be marked as bad or good
Definition at line 682 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 720 of file rtfiffrawview.cpp.
|
protected |
reset the in m_qListCurrentSelection stored selection -> hack around C++11 lambda
Definition at line 630 of file rtfiffrawview.cpp.
void RtFiffRawView::resetTriggerCounter | ( | ) |
resetTriggerCounter resets the trigger counter
Definition at line 482 of file rtfiffrawview.cpp.
|
virtual |
Saves all important settings of this view via QSettings.
Implements DISPLIB::AbstractView.
Definition at line 489 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 245 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 467 of file rtfiffrawview.cpp.
void RtFiffRawView::setFilter | ( | const RTPROCESSINGLIB::FilterKernel & | filterData | ) |
Filter parameters changed
[in] | filterData | the currently active filter. |
Definition at line 436 of file rtfiffrawview.cpp.
void RtFiffRawView::setFilterActive | ( | bool | state | ) |
Filter avtivated
[in] | state | filter on/off flag. |
Definition at line 443 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 450 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 275 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 130 of file rtfiffrawview.cpp.
void RtFiffRawView::setSignalColor | ( | const QColor & | signalColor | ) |
Set the signal color.
[in] | signalColor | The new signal color. |
Definition at line 283 of file rtfiffrawview.cpp.
void RtFiffRawView::setWindowSize | ( | int | T | ) |
Sets new time window size
[in] | T | time window size;. |
Definition at line 365 of file rtfiffrawview.cpp.
void RtFiffRawView::setZoom | ( | double | zoomFac | ) |
Sets new zoom factor
[in] | zoomFac | time window size;. |
Definition at line 349 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 327 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 388 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] | activ | real time trigger detection active. |
[in] | triggerCh | current trigger channel to scan. |
[in] | threshold | threshold for the detection process. |
Definition at line 457 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 415 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 511 of file rtfiffrawview.cpp.
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.
|
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 523 of file rtfiffrawview.cpp.
void RtFiffRawView::updateProjection | ( | const QList< FIFFLIB::FiffProj > & | projs | ) |
Update the SSP projection
[in] | projs | The new projectors. |
Definition at line 408 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 422 of file rtfiffrawview.cpp.
void RtFiffRawView::updateSpharaOptions | ( | const QString & | sSytemType, |
int | nBaseFctsFirst, | ||
int | nBaseFctsSecond | ||
) |
Update the SPHARA operator
[in] | sSystemType | 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 429 of file rtfiffrawview.cpp.
|
protected |
Gets called when the views in the viewport of the table view change
Definition at line 649 of file rtfiffrawview.cpp.
|
protected |
Current background color.
Definition at line 480 of file rtfiffrawview.h.
|
protected |
hide bad channels flag.
Definition at line 478 of file rtfiffrawview.h.
|
protected |
Sampling rate.
Definition at line 474 of file rtfiffrawview.h.
|
protected |
Zoom factor.
Definition at line 475 of file rtfiffrawview.h.
|
protected |
Current distance between time spacer.
Definition at line 481 of file rtfiffrawview.h.
|
protected |
Display window size in seconds.
Definition at line 472 of file rtfiffrawview.h.
|
protected |
The channel data delegate.
Definition at line 467 of file rtfiffrawview.h.
|
protected |
FiffInfo, which is used insteadd of ListChInfo
Definition at line 473 of file rtfiffrawview.h.
|
protected |
The channel data model.
Definition at line 468 of file rtfiffrawview.h.
|
protected |
The QTableView being part of the model/view framework of Qt.
Definition at line 466 of file rtfiffrawview.h.
|
protected |
Current list of bad channels .
Definition at line 476 of file rtfiffrawview.h.
|
protected |
Current selection list -> hack around C++11 lambda .
Definition at line 477 of file rtfiffrawview.h.
|
protected |
Channel scaling values.
Definition at line 470 of file rtfiffrawview.h.
|
protected |
the currently selected channels from the selection manager window.
Definition at line 479 of file rtfiffrawview.h.
|
protected |
The settings path to store the GUI settings to.
Definition at line 484 of file rtfiffrawview.h.