v2.0.0
Loading...
Searching...
No Matches
layoutmaker.h
Go to the documentation of this file.
1//=============================================================================================================
36
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
77typedef struct {
78 Eigen::MatrixXf rr;
79 int np;
80 int report;
81} *fitUser,fitUserRec;
82
83//=============================================================================================================
90{
91public:
92
93 //=========================================================================================================
110 static bool makeLayout(const QList<QVector<float> > &inputPoints,
111 QList<QVector<float> > &outputPoints,
112 const QStringList &names,
113 QFile &outFile,
114 bool do_fit,
115 float prad,
116 float w,
117 float h,
118 bool writeFile = false,
119 bool mirrorXAxis = false,
120 bool mirrorYAxis = false);
121
122 //=========================================================================================================
139 static bool makeLayout(const std::vector<std::vector<float> > &inputPoints,
140 std::vector<std::vector<float> > &outputPoints,
141 const std::vector<std::string> &names,
142 const std::string& outFilePath,
143 bool do_fit,
144 float prad,
145 float w,
146 float h,
147 bool writeFile = false,
148 bool mirrorXAxis = false,
149 bool mirrorYAxis = false);
150
151private:
152 static void sphere_coord(float x,
153 float y,
154 float z,
155 float *r,
156 float *theta,
157 float *phi);
158};
159} //NAMESPACE
160
161#endif // LAYOUTMAKER_H
utils library export/import macros.
#define UTILSSHARED_EXPORT
Shared utilities (I/O helpers, spectral analysis, layout management, warp algorithms).
Definition buildinfo.h:45
struct UTILSLIB::fitUser fitUserRec
Eigen::MatrixXf rr
Definition layoutmaker.h:78
Make layout files from given 3D points.
Definition layoutmaker.h:90
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)