35#ifndef SOURCEESTIMATEMANAGER_H
36#define SOURCEESTIMATEMANAGER_H
102 bool load(
const QString &lhPath,
const QString &rhPath,
103 const QMap<QString, std::shared_ptr<BrainSurface>> &surfaces,
104 const QString &activeSurfaceType);
114 bool isLoaded()
const;
126 void setTimePoint(
int index,
127 const QMap<QString, std::shared_ptr<BrainSurface>> &surfaces,
129 const QVector<SubView> &subViews);
141 int numTimePoints()
const;
144 int closestIndex(
float timeSec)
const;
153 void setColormap(
const QString &name);
162 void setThresholds(
float min,
float mid,
float max);
174 void startStreaming(
const QMap<QString, std::shared_ptr<BrainSurface>> &surfaces,
176 const QVector<SubView> &subViews);
179 void stopStreaming();
185 void pushData(
const Eigen::VectorXd &data);
188 void setInterval(
int msec);
191 void setLooping(
bool enabled);
218 const QVector<uint32_t> &colorsRh);
222 void onStcLoadingFinished(
bool success);
225 std::unique_ptr<SourceEstimateOverlay> m_overlay;
226 std::unique_ptr<RtSourceDataController> m_rtController;
227 QThread *m_loadingThread =
nullptr;
229 int m_currentTimePoint = 0;
230 bool m_isLoading =
false;
231 bool m_isStreaming =
false;
disp3D_rhi library export/import macros.
#define DISP3DRHISHARED_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.