20#ifndef SOURCEESTIMATEMANAGER_H
21#define SOURCEESTIMATEMANAGER_H
87 bool load(
const QString &lhPath,
const QString &rhPath,
88 const QMap<QString, std::shared_ptr<BrainSurface>> &surfaces,
89 const QString &activeSurfaceType);
104 bool isLoaded()
const;
116 void setTimePoint(
int index,
117 const QMap<QString, std::shared_ptr<BrainSurface>> &surfaces,
119 const QVector<SubView> &subViews);
131 int numTimePoints()
const;
134 int closestIndex(
float timeSec)
const;
143 void setColormap(
const QString &name);
152 void setThresholds(
float min,
float mid,
float max);
164 void startStreaming(
const QMap<QString, std::shared_ptr<BrainSurface>> &surfaces,
166 const QVector<SubView> &subViews);
169 void stopStreaming();
175 void pushData(
const Eigen::VectorXd &data);
178 void setInterval(
int msec);
181 void setLooping(
bool enabled);
208 const QVector<uint32_t> &colorsRh);
212 void onStcLoadingFinished(
bool success);
215 std::unique_ptr<SourceEstimateOverlay> m_overlay;
216 std::unique_ptr<RtSourceDataController> m_rtController;
217 QThread *m_loadingThread =
nullptr;
219 int m_currentTimePoint = 0;
220 bool m_isLoading =
false;
221 bool m_isStreaming =
false;
Library export/import macros and namespace marker for the disp3D library.
#define DISP3DSHARED_EXPORT
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...
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)
void timePointChanged(int index, float time)
int currentTimePoint() const
void loaded(int numTimePoints)
void thresholdsUpdated(float min, float mid, float max)
int numTimePoints() const
void realtimeColorsAvailable(const QVector< uint32_t > &colorsLh, const QVector< uint32_t > &colorsRh)
SourceEstimateManager(QObject *parent=nullptr)
Controller for real-time source estimate streaming.
Background worker that loads source estimate (STC) files and emits loaded data for visualization.