v2.0.0
Loading...
Searching...
No Matches
layoutloader.h
Go to the documentation of this file.
1//=============================================================================================================
33
34#ifndef LAYOUTLOADER_H
35#define LAYOUTLOADER_H
36
37//=============================================================================================================
38// INCLUDES
39//=============================================================================================================
40
41#include "utils_global.h"
42
43#include <string>
44#include <vector>
45
46//=============================================================================================================
47// QT INCLUDES
48//=============================================================================================================
49
50#include <QSharedPointer>
51#include <QVector>
52#include <QStringList>
53#include <QString>
54#include <QPoint>
55
56//=============================================================================================================
57// EIGEN INCLUDES
58//=============================================================================================================
59
60#include <Eigen/Core>
61
62//=============================================================================================================
63// DEFINE NAMESPACE MNELIB
64//=============================================================================================================
65
66namespace UTILSLIB
67{
68
69//=============================================================================================================
70// DEFINES
71//=============================================================================================================
72
73//=============================================================================================================
80{
81public:
82 typedef QSharedPointer<LayoutLoader> SPtr;
83 typedef QSharedPointer<const LayoutLoader> ConstSPtr;
84
85 //=========================================================================================================
93 static bool readAsaElcFile(const QString &path,
94 QStringList &channelNames,
95 QList<QVector<float> > &location3D,
96 QList<QVector<float> > &location2D,
97 QString &unit);
98
99 //=========================================================================================================
107 static bool readAsaElcFile(const std::string &path,
108 std::vector<std::string> &channelNames,
109 std::vector<std::vector<float> > &location3D,
110 std::vector<std::vector<float> > &location2D,
111 std::string &unit);
112
113 //=========================================================================================================
120 static bool readMNELoutFile(const QString &path,
121 QMap<QString, QPointF> &channelData);
122
123 //=========================================================================================================
130 static bool readMNELoutFile(const std::string &path,
131 QMap<std::string, QPointF> &channelData);
132
133private:
134};
135} // NAMESPACE
136
137#endif // LAYOUTLOADER_H
Public umbrella header for UTILSLIB exposing the UTILSSHARED_EXPORT macro and build-info accessors.
#define UTILSSHARED_EXPORT
Shared utilities (I/O helpers, spectral analysis, layout management, warp algorithms).
Reads ANT .elc electrode files and MNE .lout 2-D channel layouts into Qt/STL containers.
QSharedPointer< LayoutLoader > SPtr
static bool readAsaElcFile(const QString &path, QStringList &channelNames, QList< QVector< float > > &location3D, QList< QVector< float > > &location2D, QString &unit)
QSharedPointer< const LayoutLoader > ConstSPtr
static bool readMNELoutFile(const QString &path, QMap< QString, QPointF > &channelData)