MNE-CPP  0.1.9
A Framework for Electrophysiology
Public Types | Static Public Member Functions | List of all members
UTILSLIB::LayoutLoader Class Reference

Processes AsA .elc files which contain the electrode positions of a EEG hat. More...

#include <layoutloader.h>

Public Types

typedef QSharedPointer< LayoutLoaderSPtr
 
typedef QSharedPointer< const LayoutLoaderConstSPtr
 

Static Public Member Functions

static bool readAsaElcFile (const QString &path, QStringList &channelNames, QList< QVector< float > > &location3D, QList< QVector< float > > &location2D, QString &unit)
 
static bool readAsaElcFile (const std::string &path, std::vector< std::string > &channelNames, std::vector< std::vector< float > > &location3D, std::vector< std::vector< float > > &location2D, std::string &unit)
 
static bool readMNELoutFile (const QString &path, QMap< QString, QPointF > &channelData)
 
static bool readMNELoutFile (const std::string &path, QMap< std::string, QPointF > &channelData)
 

Detailed Description

Processes AsA .elc files which contain the electrode positions of a EEG hat.

Processes layout files (AsA .elc, MNE .lout) files which contain the electrode positions of a EEG/MEG hat.

Definition at line 82 of file layoutloader.h.

Member Typedef Documentation

◆ ConstSPtr

typedef QSharedPointer<const LayoutLoader> UTILSLIB::LayoutLoader::ConstSPtr

Const shared pointer type for LayoutLoader.

Definition at line 86 of file layoutloader.h.

◆ SPtr

typedef QSharedPointer<LayoutLoader> UTILSLIB::LayoutLoader::SPtr

Shared pointer type for LayoutLoader.

Definition at line 85 of file layoutloader.h.

Member Function Documentation

◆ readAsaElcFile() [1/2]

bool LayoutLoader::readAsaElcFile ( const QString &  path,
QStringList &  channelNames,
QList< QVector< float > > &  location3D,
QList< QVector< float > > &  location2D,
QString &  unit 
)
static

Reads the specified ANT elc-layout file.

Parameters
[in]pathholds the file path of the elc file which is to be read.
[in]location3Dholds the vector to which the read 3D positions are stored.
[in]location2Dholds the vector to which the read 2D positions are stored.
Returns
true if reading was successful, false otherwise.

Definition at line 64 of file layoutloader.cpp.

◆ readAsaElcFile() [2/2]

bool LayoutLoader::readAsaElcFile ( const std::string &  path,
std::vector< std::string > &  channelNames,
std::vector< std::vector< float > > &  location3D,
std::vector< std::vector< float > > &  location2D,
std::string &  unit 
)
static

Reads the specified ANT elc-layout file.

Parameters
[in]pathholds the file path of the elc file which is to be read.
[in]location3Dholds the vector to which the read 3D positions are stored.
[in]location2Dholds the vector to which the read 2D positions are stored.
Returns
true if reading was successful, false otherwise.

Definition at line 153 of file layoutloader.cpp.

◆ readMNELoutFile() [1/2]

bool LayoutLoader::readMNELoutFile ( const QString &  path,
QMap< QString, QPointF > &  channelData 
)
static

Reads the specified MNE .lout file.

Parameters
[in]pathholds the file path of the lout file which is to be read.
[in]channeldata holds the x,y and channel number for every channel. The map keys are the channel names (i.e. 'MEG 0113').
Returns
bool true if reading was successful, false otherwise.

Definition at line 248 of file layoutloader.cpp.

◆ readMNELoutFile() [2/2]

bool LayoutLoader::readMNELoutFile ( const std::string &  path,
QMap< std::string, QPointF > &  channelData 
)
static

Reads the specified MNE .lout file.

Parameters
[in]pathholds the file path of the lout file which is to be read.
[in]channeldata holds the x,y and channel number for every channel. The map keys are the channel names (i.e. 'MEG 0113').
Returns
bool true if reading was successful, false otherwise.

Definition at line 293 of file layoutloader.cpp.


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