24#ifndef STCLOADINGWORKER_H
25#define STCLOADINGWORKER_H
36#include <QSharedPointer>
37#include <Eigen/Sparse>
70 const QString &rhPath,
73 double cancelDist = 0.05,
74 QObject *parent =
nullptr);
120 bool hasLh()
const {
return m_hasLh; }
128 bool hasRh()
const {
return m_hasRh; }
135 void requestCancel() { m_cancelled.store(
true, std::memory_order_relaxed); }
138 bool isCancelled()
const {
return m_cancelled.load(std::memory_order_relaxed); }
156 void progress(
int percent,
const QString &message);
175 QSharedPointer<Eigen::SparseMatrix<float>> computeInterpolationMatrix(
176 const Eigen::MatrixX3f &matVertices,
177 Eigen::VectorXi &vecSourceVertices,
179 const QString &hemiLabel,
191 bool m_hasLh =
false;
192 bool m_hasRh =
false;
194 QSharedPointer<Eigen::SparseMatrix<float>> m_interpMatLh;
195 QSharedPointer<Eigen::SparseMatrix<float>> m_interpMatRh;
196 std::atomic<bool> m_cancelled{
false};
Library export/import macros and namespace marker for the disp3D library.
#define DISP3DSHARED_EXPORT
InvSourceEstimate value type — central source-space data container produced by every INVLIB inverse s...
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 INVLIB::InvSourceEstimate & stcLh() const
void finished(bool success)
const INVLIB::InvSourceEstimate & stcRh() const
StcLoadingWorker(const QString &lhPath, const QString &rhPath, BrainSurface *lhSurface, BrainSurface *rhSurface, double cancelDist=0.05, QObject *parent=nullptr)
Source-space inverse-solution container with dense grid plus optional focal-dipole,...