35#ifndef SOURCEESTIMATEOVERLAY_H
36#define SOURCEESTIMATEOVERLAY_H
47#include <QSharedPointer>
48#include <Eigen/Sparse>
86 bool loadStc(
const QString &path,
int hemi);
141 void setThresholds(
float min,
float mid,
float max);
157 int numTimePoints()
const;
166 float timeAtIndex(
int idx)
const;
191 void getDataRange(
double &minVal,
double &maxVal)
const;
209 void setInterpolationMatrix(QSharedPointer<Eigen::SparseMatrix<float>> mat,
int hemi);
215 void updateThresholdsFromData();
223 QSharedPointer<Eigen::SparseMatrix<float>>
interpolationMatLh()
const {
return m_interpolationMatLh; }
231 QSharedPointer<Eigen::SparseMatrix<float>>
interpolationMatRh()
const {
return m_interpolationMatRh; }
241 Eigen::VectorXd sourceDataColumn(
int timeIndex)
const;
252 uint32_t valueToColor(
double value, uint8_t alpha = 255)
const;
256 bool m_hasLh =
false;
257 bool m_hasRh =
false;
259 QString m_colormap =
"Hot";
260 float m_threshMin = 0.0f;
261 float m_threshMid = 0.5f;
262 float m_threshMax = 1.0f;
264 QSharedPointer<Eigen::SparseMatrix<float>> m_interpolationMatLh;
265 QSharedPointer<Eigen::SparseMatrix<float>> m_interpolationMatRh;
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 > > 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