MNE-CPP 0.1.9
A Framework for Electrophysiology
Loading...
Searching...
No Matches
layoutmaker.h
Go to the documentation of this file.
1//=============================================================================================================
37#ifndef LAYOUTMAKER_H
38#define LAYOUTMAKER_H
39
40//=============================================================================================================
41// INCLUDES
42//=============================================================================================================
43
44#include "utils_global.h"
45
46#include <vector>
47#include <string>
48#include <fstream>
49
50//=============================================================================================================
51// QT INCLUDES
52//=============================================================================================================
53
54#include <QVector>
55#include <QList>
56#include <QStringList>
57#include <QFile>
58
59//=============================================================================================================
60// EIGEN INCLUDES
61//=============================================================================================================
62
63#include <Eigen/Core>
64
65//=============================================================================================================
66// DEFINE NAMESPACE MNELIB
67//=============================================================================================================
68
69namespace UTILSLIB
70{
71
72//=============================================================================================================
73// TYPEDEFS
74//=============================================================================================================
75
76typedef struct {
77 Eigen::MatrixXf rr;
78 int np;
79 int report;
81
82//=============================================================================================================
89{
90public:
91
92 //=========================================================================================================
109 static bool makeLayout(const QList<QVector<float> > &inputPoints,
110 QList<QVector<float> > &outputPoints,
111 const QStringList &names,
112 QFile &outFile,
113 bool do_fit,
114 float prad,
115 float w,
116 float h,
117 bool writeFile = false,
118 bool mirrorXAxis = false,
119 bool mirrorYAxis = false);
120
121 //=========================================================================================================
138 static bool makeLayout(const std::vector<std::vector<float> > &inputPoints,
139 std::vector<std::vector<float> > &outputPoints,
140 const std::vector<std::string> &names,
141 const std::string& outFilePath,
142 bool do_fit,
143 float prad,
144 float w,
145 float h,
146 bool writeFile = false,
147 bool mirrorXAxis = false,
148 bool mirrorYAxis = false);
149
150private:
151 static void sphere_coord(float x,
152 float y,
153 float z,
154 float *r,
155 float *theta,
156 float *phi);
157};
158} //NAMESPACE
159
160#endif // LAYOUTMAKER_H
utils library export/import macros.
#define UTILSSHARED_EXPORT
Make layout files from given 3D points.
Definition layoutmaker.h:89