20#ifndef SOURCEESTIMATEMANAGER_H
21#define SOURCEESTIMATEMANAGER_H
91 bool load(
const QString& lhPath,
const QString& rhPath,
92 const QMap<QString, std::shared_ptr<BrainSurface>>& surfaces,
93 const QString& activeSurfaceType);
111 bool isLoaded()
const;
123 void setTimePoint(
int index,
124 const QMap<QString, std::shared_ptr<BrainSurface>>& surfaces,
126 const QVector<SubView>& subViews);
131 return m_currentTimePoint;
141 int numTimePoints()
const;
147 int closestIndex(
float timeSec)
const;
156 void setColormap(
const QString& name);
165 void setThresholds(
float min,
float mid,
float max);
177 void startStreaming(
const QMap<QString, std::shared_ptr<BrainSurface>>& surfaces,
179 const QVector<SubView>& subViews);
182 void stopStreaming();
187 return m_isStreaming;
195 void pushData(
const Eigen::VectorXd& data);
202 void setInterval(
int msec);
209 void setLooping(
bool enabled);
236 const QVector<uint32_t>& colorsRh);
240 void onStcLoadingFinished(
bool success);
243 std::unique_ptr<SourceEstimateOverlay> m_overlay;
244 std::unique_ptr<RtSourceDataController> m_rtController;
245 QThread* m_loadingThread =
nullptr;
247 int m_currentTimePoint = 0;
248 bool m_isLoading =
false;
249 bool m_isStreaming =
false;
Library export/import macros and namespace marker for the disp3D library.
#define DISP3DSHARED_EXPORT
3-D brain visualisation using the Qt RHI rendering backend.
Viewport subdivision holding its own camera, projection, and scissor rectangle.
Renderable cortical surface mesh with per-vertex color, curvature data, and GPU buffer management.
Color-mapped source estimate overlay that interpolates activation values onto a cortical surface mesh...
int numTimePoints() const
bool load(const QString &lhPath, const QString &rhPath, const QMap< QString, std::shared_ptr< BrainSurface > > &surfaces, const QString &activeSurfaceType)
void loadingProgress(int percent, const QString &message)
SourceEstimateManager(QObject *parent=nullptr)
void loaded(int numTimePoints)
void realtimeColorsAvailable(const QVector< uint32_t > &colorsLh, const QVector< uint32_t > &colorsRh)
void timePointChanged(int index, float time)
void thresholdsUpdated(float min, float mid, float max)
int currentTimePoint() const
Controller for real-time source estimate streaming.
Background worker that loads source estimate (STC) files and emits loaded data for visualization.