v2.0.0
Loading...
Searching...
No Matches
UTILSLIB::LayoutLoader Class Reference

Reads ANT .elc electrode files and MNE .lout 2-D channel layouts into Qt/STL containers. 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

Reads ANT .elc electrode files and MNE .lout 2-D channel layouts into Qt/STL containers.

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

Definition at line 79 of file layoutloader.h.

Member Typedef Documentation

◆ ConstSPtr

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

Const shared pointer type for LayoutLoader.

Definition at line 83 of file layoutloader.h.

◆ SPtr

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

Shared pointer type for LayoutLoader.

Definition at line 82 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 51 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 140 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 235 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 280 of file layoutloader.cpp.


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