v2.0.0
Loading...
Searching...
No Matches
layoutmaker.h
Go to the documentation of this file.
1//=============================================================================================================
30
31#ifndef LAYOUTMAKER_H
32#define LAYOUTMAKER_H
33
34//=============================================================================================================
35// INCLUDES
36//=============================================================================================================
37
38#include "utils_global.h"
39
40#include <vector>
41#include <string>
42#include <fstream>
43
44//=============================================================================================================
45// QT INCLUDES
46//=============================================================================================================
47
48#include <QVector>
49#include <QList>
50#include <QStringList>
51#include <QFile>
52
53//=============================================================================================================
54// EIGEN INCLUDES
55//=============================================================================================================
56
57#include <Eigen/Core>
58
59//=============================================================================================================
60// DEFINE NAMESPACE MNELIB
61//=============================================================================================================
62
63namespace UTILSLIB
64{
65
66//=============================================================================================================
75{
76public:
77 //=========================================================================================================
94 static bool makeLayout(const QList<QVector<float>>& inputPoints,
95 QList<QVector<float>>& outputPoints,
96 const QStringList& names,
97 QFile& outFile,
98 bool do_fit,
99 float prad,
100 float w,
101 float h,
102 bool writeFile = false,
103 bool mirrorXAxis = false,
104 bool mirrorYAxis = false);
105
106 //=========================================================================================================
123 static bool makeLayout(const std::vector<std::vector<float>>& inputPoints,
124 std::vector<std::vector<float>>& outputPoints,
125 const std::vector<std::string>& names,
126 const std::string& outFilePath,
127 bool do_fit,
128 float prad,
129 float w,
130 float h,
131 bool writeFile = false,
132 bool mirrorXAxis = false,
133 bool mirrorYAxis = false);
134
135private:
136 static void sphere_coord(float x,
137 float y,
138 float z,
139 float* r,
140 float* theta,
141 float* phi);
142};
143} //NAMESPACE
144
145#endif // LAYOUTMAKER_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).
Make layout files from given 3D points.
Definition layoutmaker.h:75
static bool makeLayout(const QList< QVector< float > > &inputPoints, QList< QVector< float > > &outputPoints, const QStringList &names, QFile &outFile, bool do_fit, float prad, float w, float h, bool writeFile=false, bool mirrorXAxis=false, bool mirrorYAxis=false)