v2.0.0
Loading...
Searching...
No Matches
stcloadingworker.h
Go to the documentation of this file.
1//=============================================================================================================
34
35#ifndef STCLOADINGWORKER_H
36#define STCLOADINGWORKER_H
37
38//=============================================================================================================
39// INCLUDES
40//=============================================================================================================
41
43
45#include <QObject>
46#include <QString>
47#include <QSharedPointer>
48#include <Eigen/Sparse>
49
50//=============================================================================================================
51// FORWARD DECLARATIONS
52//=============================================================================================================
53
54class BrainSurface;
55
56//=============================================================================================================
64{
65 Q_OBJECT
66
67public:
68 //=========================================================================================================
79 StcLoadingWorker(const QString &lhPath,
80 const QString &rhPath,
81 BrainSurface *lhSurface,
82 BrainSurface *rhSurface,
83 double cancelDist = 0.05,
84 QObject *parent = nullptr);
85
86 //=========================================================================================================
91
92 //=========================================================================================================
98 const MNELIB::MNESourceEstimate& stcLh() const { return m_stcLh; }
99
100 //=========================================================================================================
106 const MNELIB::MNESourceEstimate& stcRh() const { return m_stcRh; }
107
108 //=========================================================================================================
114 QSharedPointer<Eigen::SparseMatrix<float>> interpolationMatLh() const { return m_interpMatLh; }
115
116 //=========================================================================================================
122 QSharedPointer<Eigen::SparseMatrix<float>> interpolationMatRh() const { return m_interpMatRh; }
123
124 //=========================================================================================================
130 bool hasLh() const { return m_hasLh; }
131
132 //=========================================================================================================
138 bool hasRh() const { return m_hasRh; }
139
140public slots:
141 //=========================================================================================================
146 void process();
147
148signals:
149 //=========================================================================================================
156 void progress(int percent, const QString &message);
157
158 //=========================================================================================================
164 void finished(bool success);
165
166 //=========================================================================================================
172 void error(const QString &message);
173
174private:
175 QString m_lhPath;
176 QString m_rhPath;
177 BrainSurface *m_lhSurface;
178 BrainSurface *m_rhSurface;
179 double m_cancelDist;
180
183 bool m_hasLh = false;
184 bool m_hasRh = false;
185
186 QSharedPointer<Eigen::SparseMatrix<float>> m_interpMatLh;
187 QSharedPointer<Eigen::SparseMatrix<float>> m_interpMatRh;
188};
189
190#endif // STCLOADINGWORKER_H
disp3D_rhi library export/import macros.
#define DISP3DRHISHARED_EXPORT
MNESourceEstimate class declaration.
Renderable cortical surface mesh with per-vertex color, curvature data, and GPU buffer management.
QSharedPointer< Eigen::SparseMatrix< float > > interpolationMatLh() const
void error(const QString &message)
void progress(int percent, const QString &message)
QSharedPointer< Eigen::SparseMatrix< float > > interpolationMatRh() const
const MNELIB::MNESourceEstimate & stcRh() const
const MNELIB::MNESourceEstimate & stcLh() const
void finished(bool success)
StcLoadingWorker(const QString &lhPath, const QString &rhPath, BrainSurface *lhSurface, BrainSurface *rhSurface, double cancelDist=0.05, QObject *parent=nullptr)