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

The SpectrumSettingsView class provides settings for the spectrum estimation. More...

#include <spectrumsettingsview.h>

Public Types

typedef QSharedPointer< SpectrumSettingsViewSPtr
 
typedef QSharedPointer< const SpectrumSettingsViewConstSPtr
 
- 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 settingsChanged ()
 
- Signals inherited from DISPLIB::AbstractView
void guiStyleChanged (DISPLIB::AbstractView::StyleMode style)
 

Public Member Functions

 SpectrumSettingsView (const QString &sSettingsPath="", QWidget *parent=Q_NULLPTR, Qt::WindowFlags f=Qt::Widget)
 
 ~SpectrumSettingsView ()
 
void updateValue (qint32 value)
 
void saveSettings ()
 
void loadSettings ()
 
void setBoundaries (float fSFreq, float fLowerBound, float fUpperBound)
 
float getLowerBound ()
 
float getUpperBound ()
 
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)
 

Protected Attributes

QPointer< QSlider > m_pSliderLowerBound
 
QPointer< QSlider > m_pSliderUpperBound
 
- Protected Attributes inherited from DISPLIB::AbstractView
bool m_bResearchModeIsActive
 
bool m_bOfflineModeIsActive
 
QString m_sSettingsPath
 

Detailed Description

The SpectrumSettingsView class provides settings for the spectrum estimation.

DECLARE CLASS SpectrumSettingsView

Definition at line 75 of file spectrumsettingsview.h.

Inheritance diagram for DISPLIB::SpectrumSettingsView:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

Const shared pointer type for SpectrumSettingsView.

Definition at line 81 of file spectrumsettingsview.h.

◆ SPtr

Shared pointer type for SpectrumSettingsView.

Definition at line 80 of file spectrumsettingsview.h.

Constructor & Destructor Documentation

◆ SpectrumSettingsView()

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

Constructs a SpectrumSettingsView which is a child of parent.

Parameters
[in]parentparent of widget.

Definition at line 65 of file spectrumsettingsview.cpp.

◆ ~SpectrumSettingsView()

SpectrumSettingsView::~SpectrumSettingsView ( )

Destroys the SpectrumSettingsView.

Definition at line 102 of file spectrumsettingsview.cpp.

Member Function Documentation

◆ clearView()

void SpectrumSettingsView::clearView ( )
virtual

Clears the view

Implements DISPLIB::AbstractView.

Definition at line 200 of file spectrumsettingsview.cpp.

◆ getLowerBound()

float SpectrumSettingsView::getLowerBound ( )

Returns the lower bound

Returns
Returns the lower bound as a float.

Definition at line 162 of file spectrumsettingsview.cpp.

◆ getUpperBound()

float SpectrumSettingsView::getUpperBound ( )

Returns the upper bound

Returns
Returns the upper bound as a float.

Definition at line 169 of file spectrumsettingsview.cpp.

◆ loadSettings()

void SpectrumSettingsView::loadSettings ( )
virtual

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

Implements DISPLIB::AbstractView.

Definition at line 135 of file spectrumsettingsview.cpp.

◆ saveSettings()

void SpectrumSettingsView::saveSettings ( )
virtual

Saves all important settings of this view via QSettings.

Implements DISPLIB::AbstractView.

Definition at line 123 of file spectrumsettingsview.cpp.

◆ setBoundaries()

void SpectrumSettingsView::setBoundaries ( float  fSFreq,
float  fLowerBound,
float  fUpperBound 
)

Sets the sampling frequency as well as boundaries and configure the GUI elements accordingly

Parameters
[in]fSFreqThe sampling frequency.
[in]fLowerBoundThe lower bound of the spectrum.
[in]fUpperBoundThe upper bound of the spectrum.

Definition at line 147 of file spectrumsettingsview.cpp.

◆ settingsChanged

void DISPLIB::SpectrumSettingsView::settingsChanged ( )
signal

Emitted whenever the settings changed and are ready to be retreived.

◆ updateGuiMode()

void SpectrumSettingsView::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 176 of file spectrumsettingsview.cpp.

◆ updateProcessingMode()

void SpectrumSettingsView::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 188 of file spectrumsettingsview.cpp.

◆ updateValue()

void SpectrumSettingsView::updateValue ( qint32  value)

Update slider value

Parameters
[in]valueslider value.

Definition at line 109 of file spectrumsettingsview.cpp.

Member Data Documentation

◆ m_pSliderLowerBound

QPointer<QSlider> DISPLIB::SpectrumSettingsView::m_pSliderLowerBound
protected

Lower bound frequency.

Definition at line 170 of file spectrumsettingsview.h.

◆ m_pSliderUpperBound

QPointer<QSlider> DISPLIB::SpectrumSettingsView::m_pSliderUpperBound
protected

Upper bound frequency.

Definition at line 171 of file spectrumsettingsview.h.


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