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::TriggerDetectionView Class Reference

The TriggerDetectionView class provides a view to control the 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

The TriggerDetectionView class provides a view to control the trigger detection.

DECLARE CLASS TriggerDetectionView

Definition at line 84 of file triggerdetectionview.h.

Inheritance diagram for DISPLIB::TriggerDetectionView:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

Const shared pointer type for TriggerDetectionView.

Definition at line 90 of file triggerdetectionview.h.

◆ SPtr

Shared pointer type for TriggerDetectionView.

Definition at line 89 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 68 of file triggerdetectionview.cpp.

◆ ~TriggerDetectionView()

TriggerDetectionView::~TriggerDetectionView ( )

Destroys the TriggerDetectionView.

Definition at line 88 of file triggerdetectionview.cpp.

Member Function Documentation

◆ clearView()

void TriggerDetectionView::clearView ( )
virtual

Clears the view

Implements DISPLIB::AbstractView.

Definition at line 330 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 323 of file triggerdetectionview.cpp.

◆ init()

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

Init the view.

Definition at line 97 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 192 of file triggerdetectionview.cpp.

◆ onDetectTriggers()

void TriggerDetectionView::onDetectTriggers ( )
protected

Slot called when detect triggers is pressed

Definition at line 312 of file triggerdetectionview.cpp.

◆ onRealTimeTriggerColorChanged()

void TriggerDetectionView::onRealTimeTriggerColorChanged ( bool  state)
protected

Slot called when trigger detection color button was clicked

Definition at line 270 of file triggerdetectionview.cpp.

◆ onRealTimeTriggerColorTypeChanged()

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

Slot called when trigger type changed

Definition at line 289 of file triggerdetectionview.cpp.

◆ onResetTriggerNumbers()

void TriggerDetectionView::onResetTriggerNumbers ( )
protected

Slot called when reset number of detected triggers was pressed

Definition at line 300 of file triggerdetectionview.cpp.

◆ onTriggerInfoChanged()

void TriggerDetectionView::onTriggerInfoChanged ( )
protected

Slot called when trigger info changed

Definition at line 258 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 168 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 147 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 218 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 230 of file triggerdetectionview.cpp.

Member Data Documentation

◆ m_pFiffInfo

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

Connected fiff info.

Definition at line 199 of file triggerdetectionview.h.

◆ m_qMapTriggerColor

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

Trigger colors per detected type.

Definition at line 201 of file triggerdetectionview.h.

◆ m_sSettingsPath

QString DISPLIB::TriggerDetectionView::m_sSettingsPath
protected

The settings path to store the GUI settings to.

Definition at line 203 of file triggerdetectionview.h.


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