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

Reads ANT .elc electrode files into Qt/STL containers. More...

#include <layoutloader.h>

Public Types

typedef QSharedPointer< LayoutLoader > SPtr
typedef QSharedPointer< const LayoutLoader > ConstSPtr

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)

Detailed Description

Reads ANT .elc electrode files into Qt/STL containers.

Reads ANT .elc files, which contain the electrode positions of an EEG cap.

Definition at line 67 of file layoutloader.h.

Member Typedef Documentation

◆ ConstSPtr

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

Const shared pointer type for LayoutLoader.

Definition at line 71 of file layoutloader.h.

◆ SPtr

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

Shared pointer type for LayoutLoader.

Definition at line 70 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,out]channelNamesReceives the channel names.
[in]location3Dholds the vector to which the read 3D positions are stored.
[in]location2Dholds the vector to which the read 2D positions are stored.
[in,out]unitReceives the unit of the positions.
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,out]channelNamesReceives the channel names.
[in]location3Dholds the vector to which the read 3D positions are stored.
[in]location2Dholds the vector to which the read 2D positions are stored.
[in,out]unitReceives the unit of the positions.
Returns
true if reading was successful, false otherwise.

Definition at line 138 of file layoutloader.cpp.


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