27#ifndef SOURCEESTIMATEOVERLAY_H
28#define SOURCEESTIMATEOVERLAY_H
39#include <QSharedPointer>
42#include <Eigen/Sparse>
80 bool loadStc(
const QString &path,
int hemi);
135 void setThresholds(
float min,
float mid,
float max);
151 int numTimePoints()
const;
160 float timeAtIndex(
int idx)
const;
185 void getDataRange(
double &minVal,
double &maxVal)
const;
203 void setInterpolationMatrix(QSharedPointer<Eigen::SparseMatrix<float>> mat,
int hemi);
209 void updateThresholdsFromData();
217 QSharedPointer<Eigen::SparseMatrix<float>>
interpolationMatLh()
const {
return m_interpolationMatLh; }
225 QSharedPointer<Eigen::SparseMatrix<float>>
interpolationMatRh()
const {
return m_interpolationMatRh; }
235 Eigen::VectorXd sourceDataColumn(
int timeIndex)
const;
246 uint32_t valueToColor(
double value, uint8_t alpha = 255)
const;
250 bool m_hasLh =
false;
251 bool m_hasRh =
false;
253 QString m_colormap =
"Hot";
254 float m_threshMin = 0.0f;
255 float m_threshMid = 0.5f;
256 float m_threshMax = 1.0f;
258 QSharedPointer<Eigen::SparseMatrix<float>> m_interpolationMatLh;
259 QSharedPointer<Eigen::SparseMatrix<float>> m_interpolationMatRh;
268 using ColorCacheKey = QPair<int, int>;
269 using ColorCacheBucket = QHash<int, QVector<uint32_t>>;
270 mutable QHash<ColorCacheKey, ColorCacheBucket> m_colorCache;
271 void invalidateColorCache() { 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...
Renderable cortical surface mesh with per-vertex color, curvature data, and GPU buffer management.
QSharedPointer< Eigen::SparseMatrix< float > > interpolationMatRh() const
void applyToSurface(BrainSurface *surface, int timeIndex)
QSharedPointer< Eigen::SparseMatrix< float > > interpolationMatLh() const
float thresholdMid() const
void computeInterpolationMatrix(BrainSurface *surface, int hemi, double cancelDist=0.05)
float thresholdMin() const
void setColormap(const QString &name)
bool loadStc(const QString &path, int hemi)
float thresholdMax() const
Source-space inverse-solution container with dense grid plus optional focal-dipole,...