MNE-CPP  0.1.9
A Framework for Electrophysiology
Public Types | Signals | Public Member Functions | List of all members
DISPLIB::ScalingView Class Reference

The ScalingView class provides a view to select the scaling for different channels modalities. More...

#include <scalingview.h>

Public Types

typedef QSharedPointer< ScalingViewSPtr
 
typedef QSharedPointer< const ScalingViewConstSPtr
 
- 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 scalingChanged (const QMap< qint32, float > &scalingMap)
 
- Signals inherited from DISPLIB::AbstractView
void guiStyleChanged (DISPLIB::AbstractView::StyleMode style)
 

Public Member Functions

 ScalingView (const QString &sSettingsPath="", QWidget *parent=0, Qt::WindowFlags f=Qt::Widget, const QStringList &lChannelsToShow=QStringList()<< "all")
 
 ~ScalingView ()
 
QMap< qint32, float > getScaleMap () const
 
void setScaleMap (const QMap< qint32, float > &qMapChScaling)
 
void saveSettings () override
 
void loadSettings () override
 
void clearView () override
 
void setMagGradLink (int l)
 
- 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)
 

Additional Inherited Members

- Protected Attributes inherited from DISPLIB::AbstractView
bool m_bResearchModeIsActive
 
bool m_bOfflineModeIsActive
 
QString m_sSettingsPath
 

Detailed Description

The ScalingView class provides a view to select the scaling for different channels modalities.

DECLARE CLASS ScalingView

Definition at line 114 of file scalingview.h.

Inheritance diagram for DISPLIB::ScalingView:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

typedef QSharedPointer<const ScalingView> DISPLIB::ScalingView::ConstSPtr

Const shared pointer type for ScalingView.

Definition at line 120 of file scalingview.h.

◆ SPtr

typedef QSharedPointer<ScalingView> DISPLIB::ScalingView::SPtr

Shared pointer type for ScalingView.

Definition at line 119 of file scalingview.h.

Constructor & Destructor Documentation

◆ ScalingView()

ScalingView::ScalingView ( const QString &  sSettingsPath = "",
QWidget *  parent = 0,
Qt::WindowFlags  f = Qt::Widget,
const QStringList &  lChannelsToShow = QStringList() << "all" 
)

Constructs a ScalingView which is a child of parent.

Parameters
[in]parentParent of widget.

Definition at line 156 of file scalingview.cpp.

◆ ~ScalingView()

ScalingView::~ScalingView ( )

Destroys the ScalingView.

Definition at line 182 of file scalingview.cpp.

Member Function Documentation

◆ clearView()

void ScalingView::clearView ( )
overridevirtual

Clears the view

Implements DISPLIB::AbstractView.

Definition at line 595 of file scalingview.cpp.

◆ getScaleMap()

QMap< qint32, float > ScalingView::getScaleMap ( ) const

Get the current scaling map

Returns
The current scaling map.

Definition at line 218 of file scalingview.cpp.

◆ loadSettings()

void ScalingView::loadSettings ( )
overridevirtual

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

Implements DISPLIB::AbstractView.

Definition at line 273 of file scalingview.cpp.

◆ saveSettings()

void ScalingView::saveSettings ( )
overridevirtual

Saves all important settings of this view via QSettings.

Implements DISPLIB::AbstractView.

Definition at line 234 of file scalingview.cpp.

◆ scalingChanged

void DISPLIB::ScalingView::scalingChanged ( const QMap< qint32, float > &  scalingMap)
signal

Emit this signal whenever the scaling sliders or spin boxes changed.

Parameters
[in]scalingMapthis is a list of scaling values ordered by integer keys. These keys are resolved with the use of defined macros with names of channel-types, vendors, etc.

◆ setMagGradLink()

void ScalingView::setMagGradLink ( int  l)

Link the Magnetometers to the Gradiometers scale.

Parameters
[in]lSet the link between MAGs and GRADs active or inactive.

Definition at line 459 of file scalingview.cpp.

◆ setScaleMap()

void ScalingView::setScaleMap ( const QMap< qint32, float > &  qMapChScaling)

Set the current scaling map. This also recreates the GUI.

Definition at line 225 of file scalingview.cpp.


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