Skip to main content

ConnectivitySettingsView

Namespace: DISPLIB  ·  Library: Display Library

#include <disp/connectivitysettingsview.h>

class DISPLIB::ConnectivitySettingsView

Settings panel for the on-line connectivity estimator (metric, window, trials).

Combo boxes pick the connectivity metric (coherence, PLV, PLI, wPLI, dwPLI, ImCoh, Granger / PDC / DTF) and the windowing function; spinboxes set the number of trials. Edits propagate via Qt signals to the rtprocessing connectivity job.

Inheritance​


Public Methods​

ConnectivitySettingsView(sSettingsPath, parent, f)​

Constructs a ConnectivitySettingsView which is a child of parent.

Parameters:

  • sSettingsPath : const QString & Settings path under which the widget persists its state (empty = no persistence).

  • parent : *QWidget ** parent of widget.

  • f : Qt::WindowFlags Qt window flags passed to the QWidget constructor.


~ConnectivitySettingsView()​

Destroys the ConnectivitySettingsView.


setTriggerTypes(lTriggerTypes)​

Destroys the ConnectivitySettingsView.

Parameters:

  • lTriggerTypes : const QStringList & The new trigger types.

setNumberTrials(iNumberTrials)​

Sets the new number of trials.

Parameters:

  • iNumberTrials : int The new number of trials.

setFrequencyBand(dFreqLow, dFreqHigh)​

Sets the frequency band.

Parameters:

  • dFreqLow : double The lower frequency.

  • dFreqHigh : double The upper frequency.


getConnectivityMetric()​

Get the current connectivity metric.

Returns:

  • QString — The current connectivity metric.

getWindowType()​

Get the current window type.

Returns:

  • QString — The current window type.

getNumberTrials()​

Get the current number of trials.

Returns:

  • int — The current number of trials.

getTriggerType()​

Get the current trigger type.

Returns:

  • QString — The current trigger type.

getLowerFreq()​

Get the current lower frequency range.

Returns:

  • double — The current lower frequency range.

getUpperFreq()​

Get the current upper frequency range.

Returns:

  • double — The current upper frequency range.

saveSettings()​

Saves all important settings of this view via QSettings.


loadSettings()​

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


clearView()​

Clears the view.


Used in examples​

ex_connectivity​

Example of using the MNE-CPP Connectivity library.

src/examples/ex_connectivity/main.cpp, line 401
// Create ConnectivitySettingsView as standalone widget
QSharedPointer<ConnectivitySettingsView> pConnSettingsView = QSharedPointer<ConnectivitySettingsView>::create("EX_CONNECTIVITY");

ex_connectivity_comparison​

Example to compare connectivity methods.

src/examples/ex_connectivity_comparison/main.cpp, line 379
// Create ConnectivitySettingsView as standalone widget
QSharedPointer<ConnectivitySettingsView> pConnSettingsView = QSharedPointer<ConnectivitySettingsView>::create("EX_CONNECTIVITY_COMP");
pConnSettingsView->setNumberTrials(iNumTrials);
pConnSettingsView->setFrequencyBand(dFreqMin, dFreqMax);

Authors of this file​