MNE-CPP
0.1.9
A Framework for Electrophysiology
|
The TriggerDetectionView class provides a view to control the trigger detection. More...
#include <triggerdetectionview.h>
Public Types | |
typedef QSharedPointer< TriggerDetectionView > | SPtr |
typedef QSharedPointer< const TriggerDetectionView > | 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 | 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::FiffInfo > | m_pFiffInfo |
QMap< double, QColor > | m_qMapTriggerColor |
QString | m_sSettingsPath |
Protected Attributes inherited from DISPLIB::AbstractView | |
bool | m_bResearchModeIsActive |
bool | m_bOfflineModeIsActive |
QString | m_sSettingsPath |
The TriggerDetectionView class provides a view to control the trigger detection.
DECLARE CLASS TriggerDetectionView
Definition at line 84 of file triggerdetectionview.h.
typedef QSharedPointer<const TriggerDetectionView> DISPLIB::TriggerDetectionView::ConstSPtr |
Const shared pointer type for TriggerDetectionView.
Definition at line 90 of file triggerdetectionview.h.
typedef QSharedPointer<TriggerDetectionView> DISPLIB::TriggerDetectionView::SPtr |
Shared pointer type for TriggerDetectionView.
Definition at line 89 of file triggerdetectionview.h.
TriggerDetectionView::TriggerDetectionView | ( | const QString & | sSettingsPath = "" , |
QWidget * | parent = 0 , |
||
Qt::WindowFlags | f = Qt::Widget |
||
) |
Constructs a TriggerDetectionView which is a child of parent.
[in] | parent | parent of widget. |
Definition at line 68 of file triggerdetectionview.cpp.
TriggerDetectionView::~TriggerDetectionView | ( | ) |
Destroys the TriggerDetectionView.
Definition at line 88 of file triggerdetectionview.cpp.
|
virtual |
Clears the view
Implements DISPLIB::AbstractView.
Definition at line 330 of file triggerdetectionview.cpp.
|
signal |
Emit this signal when user clicks detect trigger button.
QString TriggerDetectionView::getSelectedStimChannel | ( | ) |
Gets currently selected STIM channel in GUI
Definition at line 323 of file triggerdetectionview.cpp.
void TriggerDetectionView::init | ( | const QSharedPointer< FIFFLIB::FiffInfo > | pFiffInfo | ) |
Init the view.
Definition at line 97 of file triggerdetectionview.cpp.
|
virtual |
Loads and inits all important settings of this view via QSettings.
Implements DISPLIB::AbstractView.
Definition at line 192 of file triggerdetectionview.cpp.
|
protected |
Slot called when detect triggers is pressed
Definition at line 312 of file triggerdetectionview.cpp.
|
protected |
Slot called when trigger detection color button was clicked
Definition at line 270 of file triggerdetectionview.cpp.
|
protected |
Slot called when trigger type changed
Definition at line 289 of file triggerdetectionview.cpp.
|
protected |
Slot called when reset number of detected triggers was pressed
Definition at line 300 of file triggerdetectionview.cpp.
|
protected |
Slot called when trigger info changed
Definition at line 258 of file triggerdetectionview.cpp.
|
signal |
Emit this signal whenever the user pressed the trigger counter.
|
virtual |
Saves all important settings of this view via QSettings.
Implements DISPLIB::AbstractView.
Definition at line 168 of file triggerdetectionview.cpp.
void TriggerDetectionView::setNumberDetectedTriggersAndTypes | ( | int | totalNumberDetections, |
const QMap< int, QList< QPair< int, double > > > & | mapDetectedTriggers | ||
) |
Set total number of detected triggers and trigger types.
[in] | totalNumberDetections | The numger of detected triggers. |
[in] | mapDetectedTriggers | The currently detected triggers. |
Definition at line 147 of file triggerdetectionview.cpp.
|
signal |
Emit this signal whenever the trigger information changed.
|
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 218 of file triggerdetectionview.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 230 of file triggerdetectionview.cpp.
|
protected |
Connected fiff info.
Definition at line 199 of file triggerdetectionview.h.
|
protected |
Trigger colors per detected type.
Definition at line 201 of file triggerdetectionview.h.
|
protected |
The settings path to store the GUI settings to.
Definition at line 203 of file triggerdetectionview.h.