27#ifndef SOURCEESTIMATEOVERLAY_H
28#define SOURCEESTIMATEOVERLAY_H
39#include <QSharedPointer>
42#include <Eigen/Sparse>
85 bool loadStc(
const QString& path,
int hemi);
143 void setThresholds(
float min,
float mid,
float max);
170 int numTimePoints()
const;
179 float timeAtIndex(
int idx)
const;
204 void getDataRange(
double& minVal,
double& maxVal)
const;
222 void setInterpolationMatrix(QSharedPointer<Eigen::SparseMatrix<float>> mat,
int hemi);
228 void updateThresholdsFromData();
238 return m_interpolationMatLh;
249 return m_interpolationMatRh;
260 Eigen::VectorXd sourceDataColumn(
int timeIndex)
const;
271 uint32_t valueToColor(
double value, uint8_t alpha = 255)
const;
275 bool m_hasLh =
false;
276 bool m_hasRh =
false;
278 QString m_colormap =
"Hot";
279 float m_threshMin = 0.0f;
280 float m_threshMid = 0.5f;
281 float m_threshMax = 1.0f;
283 QSharedPointer<Eigen::SparseMatrix<float>> m_interpolationMatLh;
284 QSharedPointer<Eigen::SparseMatrix<float>> m_interpolationMatRh;
293 using ColorCacheKey = QPair<int, int>;
294 using ColorCacheBucket = QHash<int, QVector<uint32_t>>;
295 mutable QHash<ColorCacheKey, ColorCacheBucket> m_colorCache;
296 void invalidateColorCache()
298 m_colorCache.
clear();
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...
3-D brain visualisation using the Qt RHI rendering backend.
Renderable cortical surface mesh with per-vertex color, curvature data, and GPU buffer management.
float thresholdMid() const
void applyToSurface(BrainSurface *surface, int timeIndex)
float thresholdMax() const
QSharedPointer< Eigen::SparseMatrix< float > > interpolationMatLh() const
bool loadStc(const QString &path, int hemi)
void computeInterpolationMatrix(BrainSurface *surface, int hemi, double cancelDist=0.05)
QSharedPointer< Eigen::SparseMatrix< float > > interpolationMatRh() const
void setColormap(const QString &name)
float thresholdMin() const
Source-space inverse-solution container with dense grid plus optional focal-dipole,...