MNE-CPP  beta 1.0
Public Types | Public Member Functions | 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
 

Public Member Functions

 LayoutLoader ()
 

Static Public Member Functions

static bool readAsaElcFile (QString path, QStringList &channelNames, QVector< QVector< double > > &location3D, QVector< QVector< double > > &location2D, QString &unit)
 
static bool readMNELoutFile (QString path, QMap< QString, 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 101 of file layoutloader.h.

Member Typedef Documentation

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

Const shared pointer type for LayoutLoader.

Definition at line 105 of file layoutloader.h.

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

Shared pointer type for LayoutLoader.

Definition at line 104 of file layoutloader.h.

Constructor & Destructor Documentation

LayoutLoader::LayoutLoader ( )

Constructs a LayoutLoader object.

Definition at line 58 of file layoutloader.cpp.

Member Function Documentation

bool LayoutLoader::readAsaElcFile ( QString  path,
QStringList &  channelNames,
QVector< QVector< double > > &  location3D,
QVector< QVector< double > > &  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 65 of file layoutloader.cpp.

bool LayoutLoader::readMNELoutFile ( 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 151 of file layoutloader.cpp.


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