v2.0.0
Loading...
Searching...
No Matches
DISPLIB::TriggerDetectionView Class Reference

Stim-channel chooser plus threshold spinbox for on-line trigger detection. More...

#include <triggerdetectionview.h>

Public Types

typedef QSharedPointer< TriggerDetectionViewSPtr
typedef QSharedPointer< const TriggerDetectionViewConstSPtr
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 resetTriggerCounter ()
void triggerInfoChanged (const QMap< double, QColor > &value, bool bActive, const QString &sTriggerCh, double dThreshold)
void detectTriggers (const QString &sChannelName, double iThreshold)
Signals inherited from DISPLIB::AbstractView
void guiStyleChanged (DISPLIB::AbstractView::StyleMode style)

Public Member Functions

 TriggerDetectionView (const QString &sSettingsPath="", QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
 ~TriggerDetectionView ()
void init (const QSharedPointer< FIFFLIB::FiffInfo > pFiffInfo)
void setNumberDetectedTriggersAndTypes (int totalNumberDetections, const QMap< int, QList< QPair< int, double > > > &mapDetectedTriggers)
QString getSelectedStimChannel ()
void saveSettings ()
void loadSettings ()
void clearView ()
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 onTriggerInfoChanged ()
void onRealTimeTriggerColorChanged (bool state)
void onRealTimeTriggerColorTypeChanged (const QString &value)
void onResetTriggerNumbers ()
void onDetectTriggers ()

Protected Attributes

Ui::TriggerDetectionViewWidget * m_pUi
QSharedPointer< FIFFLIB::FiffInfom_pFiffInfo
QMap< double, QColor > m_qMapTriggerColor
QString m_sSettingsPath
Protected Attributes inherited from DISPLIB::AbstractView
bool m_bResearchModeIsActive
bool m_bOfflineModeIsActive
QString m_sSettingsPath

Detailed Description

Stim-channel chooser plus threshold spinbox for on-line trigger detection.

Picks the stim channel to monitor, sets the rising-edge threshold and resets the detected-event list; detected events feed the averaging pipeline and the ChannelDataView trigger overlay.

Definition at line 72 of file triggerdetectionview.h.

Inheritance diagram for DISPLIB::TriggerDetectionView:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

Const shared pointer type for TriggerDetectionView.

Definition at line 78 of file triggerdetectionview.h.

◆ SPtr

Shared pointer type for TriggerDetectionView.

Definition at line 77 of file triggerdetectionview.h.

Constructor & Destructor Documentation

◆ TriggerDetectionView()

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

Constructs a TriggerDetectionView which is a child of parent.

Parameters
[in]parentparent of widget.

Definition at line 48 of file triggerdetectionview.cpp.

◆ ~TriggerDetectionView()

TriggerDetectionView::~TriggerDetectionView ( )

Destroys the TriggerDetectionView.

Definition at line 68 of file triggerdetectionview.cpp.

Member Function Documentation

◆ clearView()

void TriggerDetectionView::clearView ( )
virtual

Clears the view

Implements DISPLIB::AbstractView.

Definition at line 310 of file triggerdetectionview.cpp.

◆ detectTriggers

void DISPLIB::TriggerDetectionView::detectTriggers ( const QString & sChannelName,
double iThreshold )
signal

Emit this signal when user clicks detect trigger button.

◆ getSelectedStimChannel()

QString TriggerDetectionView::getSelectedStimChannel ( )

Gets currently selected STIM channel in GUI

Returns
currently selected STIM channel.

Definition at line 303 of file triggerdetectionview.cpp.

◆ init()

void TriggerDetectionView::init ( const QSharedPointer< FIFFLIB::FiffInfo > pFiffInfo)

Init the view.

Definition at line 77 of file triggerdetectionview.cpp.

◆ loadSettings()

void TriggerDetectionView::loadSettings ( )
virtual

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

Implements DISPLIB::AbstractView.

Definition at line 172 of file triggerdetectionview.cpp.

◆ onDetectTriggers()

void TriggerDetectionView::onDetectTriggers ( )
protected

Slot called when detect triggers is pressed

Definition at line 292 of file triggerdetectionview.cpp.

◆ onRealTimeTriggerColorChanged()

void TriggerDetectionView::onRealTimeTriggerColorChanged ( bool state)
protected

Slot called when trigger detection color button was clicked

Definition at line 250 of file triggerdetectionview.cpp.

◆ onRealTimeTriggerColorTypeChanged()

void TriggerDetectionView::onRealTimeTriggerColorTypeChanged ( const QString & value)
protected

Slot called when trigger type changed

Definition at line 269 of file triggerdetectionview.cpp.

◆ onResetTriggerNumbers()

void TriggerDetectionView::onResetTriggerNumbers ( )
protected

Slot called when reset number of detected triggers was pressed

Definition at line 280 of file triggerdetectionview.cpp.

◆ onTriggerInfoChanged()

void TriggerDetectionView::onTriggerInfoChanged ( )
protected

Slot called when trigger info changed

Definition at line 238 of file triggerdetectionview.cpp.

◆ resetTriggerCounter

void DISPLIB::TriggerDetectionView::resetTriggerCounter ( )
signal

Emit this signal whenever the user pressed the trigger counter.

◆ saveSettings()

void TriggerDetectionView::saveSettings ( )
virtual

Saves all important settings of this view via QSettings.

Implements DISPLIB::AbstractView.

Definition at line 148 of file triggerdetectionview.cpp.

◆ setNumberDetectedTriggersAndTypes()

void TriggerDetectionView::setNumberDetectedTriggersAndTypes ( int totalNumberDetections,
const QMap< int, QList< QPair< int, double > > > & mapDetectedTriggers )

Set total number of detected triggers and trigger types.

Parameters
[in]totalNumberDetectionsThe numger of detected triggers.
[in]mapDetectedTriggersThe currently detected triggers.

Definition at line 127 of file triggerdetectionview.cpp.

◆ triggerInfoChanged

void DISPLIB::TriggerDetectionView::triggerInfoChanged ( const QMap< double, QColor > & value,
bool bActive,
const QString & sTriggerCh,
double dThreshold )
signal

Emit this signal whenever the trigger information changed.

◆ updateGuiMode()

void TriggerDetectionView::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 198 of file triggerdetectionview.cpp.

◆ updateProcessingMode()

void TriggerDetectionView::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 210 of file triggerdetectionview.cpp.

Member Data Documentation

◆ m_pFiffInfo

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

Connected fiff info.

Definition at line 187 of file triggerdetectionview.h.

◆ m_pUi

Ui::TriggerDetectionViewWidget* DISPLIB::TriggerDetectionView::m_pUi
protected

Definition at line 185 of file triggerdetectionview.h.

◆ m_qMapTriggerColor

QMap<double, QColor> DISPLIB::TriggerDetectionView::m_qMapTriggerColor
protected

Trigger colors per detected type.

Definition at line 189 of file triggerdetectionview.h.

◆ m_sSettingsPath

QString DISPLIB::TriggerDetectionView::m_sSettingsPath
protected

The settings path to store the GUI settings to.

Definition at line 191 of file triggerdetectionview.h.


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