Source estimate lifecycle manager.
More...
#include <sourceestimatemanager.h>
|
| | SourceEstimateManager (QObject *parent=nullptr) |
| | ~SourceEstimateManager () override |
| bool | load (const QString &lhPath, const QString &rhPath, const QMap< QString, std::shared_ptr< BrainSurface > > &surfaces, const QString &activeSurfaceType) |
| void | cancelLoading () |
| bool | isLoading () const |
| bool | isLoaded () const |
| void | setTimePoint (int index, const QMap< QString, std::shared_ptr< BrainSurface > > &surfaces, const SubView &singleView, const QVector< SubView > &subViews) |
| int | currentTimePoint () const |
| float | tstep () const |
| float | tmin () const |
| int | numTimePoints () const |
| int | closestIndex (float timeSec) const |
| void | setColormap (const QString &name) |
| void | setThresholds (float min, float mid, float max) |
| void | startStreaming (const QMap< QString, std::shared_ptr< BrainSurface > > &surfaces, const SubView &singleView, const QVector< SubView > &subViews) |
| void | stopStreaming () |
| bool | isStreaming () const |
| void | pushData (const Eigen::VectorXd &data) |
| void | setInterval (int msec) |
| void | setLooping (bool enabled) |
| const SourceEstimateOverlay * | overlay () const |
Source estimate lifecycle manager.
Manages source estimate data: async loading, time-point navigation, colormap/threshold control, and real-time streaming via RtSourceDataController.
BrainView delegates all source-estimate operations to this component, keeping its own code free of STC lifecycle details.
Definition at line 61 of file sourceestimatemanager.h.
◆ SourceEstimateManager()
| DISP3DLIB::SourceEstimateManager::SourceEstimateManager |
( |
QObject * | parent = nullptr | ) |
|
|
explicit |
◆ ~SourceEstimateManager()
| DISP3DLIB::SourceEstimateManager::~SourceEstimateManager |
( |
| ) |
|
|
override |
◆ cancelLoading()
| void DISP3DLIB::SourceEstimateManager::cancelLoading |
( |
| ) |
|
Cancel any in-progress STC loading / interpolation and wait for the thread to finish.
Definition at line 50 of file sourceestimatemanager.cpp.
◆ closestIndex()
| int DISP3DLIB::SourceEstimateManager::closestIndex |
( |
float | timeSec | ) |
const |
◆ currentTimePoint()
| int DISP3DLIB::SourceEstimateManager::currentTimePoint |
( |
| ) |
const |
|
inline |
◆ isLoaded()
| bool DISP3DLIB::SourceEstimateManager::isLoaded |
( |
| ) |
const |
◆ isLoading()
| bool DISP3DLIB::SourceEstimateManager::isLoading |
( |
| ) |
const |
|
inline |
◆ isStreaming()
| bool DISP3DLIB::SourceEstimateManager::isStreaming |
( |
| ) |
const |
|
inline |
◆ load()
| bool DISP3DLIB::SourceEstimateManager::load |
( |
const QString & | lhPath, |
|
|
const QString & | rhPath, |
|
|
const QMap< QString, std::shared_ptr< BrainSurface > > & | surfaces, |
|
|
const QString & | activeSurfaceType ) |
Start async STC file loading on a background thread.
- Parameters
-
| [in] | lhPath | Path to left-hemisphere STC file. |
| [in] | rhPath | Path to right-hemisphere STC file. |
| [in] | surfaces | FsSurface map for finding lh/rh brain surfaces. |
| [in] | activeSurfaceType | Active surface type name (e.g. "pial"). |
- Returns
- true if loading was started, false on error.
Definition at line 67 of file sourceestimatemanager.cpp.
◆ loaded
| void DISP3DLIB::SourceEstimateManager::loaded |
( |
int | numTimePoints | ) |
|
|
signal |
Emitted when STC data finishes loading.
◆ loadingProgress
| void DISP3DLIB::SourceEstimateManager::loadingProgress |
( |
int | percent, |
|
|
const QString & | message ) |
|
signal |
Emitted during async loading to report progress.
◆ numTimePoints()
| int DISP3DLIB::SourceEstimateManager::numTimePoints |
( |
| ) |
const |
◆ overlay()
◆ pushData()
| void DISP3DLIB::SourceEstimateManager::pushData |
( |
const Eigen::VectorXd & | data | ) |
|
Push a single column of source data into the streaming queue.
- Parameters
-
| [in] | data | Source amplitudes for one time point; ignored if no controller exists. |
Definition at line 337 of file sourceestimatemanager.cpp.
◆ realtimeColorsAvailable
| void DISP3DLIB::SourceEstimateManager::realtimeColorsAvailable |
( |
const QVector< uint32_t > & | colorsLh, |
|
|
const QVector< uint32_t > & | colorsRh ) |
|
signal |
Emitted when the real-time pipeline produces a new set of per-vertex colours. The host widget should apply these to its surfaces and repaint.
◆ setColormap()
| void DISP3DLIB::SourceEstimateManager::setColormap |
( |
const QString & | name | ) |
|
Set the colormap used for source estimate visualisation.
- Parameters
-
| [in] | name | Colormap name (e.g. "Hot", "Jet"). |
Definition at line 249 of file sourceestimatemanager.cpp.
◆ setInterval()
| void DISP3DLIB::SourceEstimateManager::setInterval |
( |
int | msec | ) |
|
Set the streaming playback interval in milliseconds.
- Parameters
-
| [in] | msec | Interval between streamed time points in milliseconds. |
Definition at line 345 of file sourceestimatemanager.cpp.
◆ setLooping()
| void DISP3DLIB::SourceEstimateManager::setLooping |
( |
bool | enabled | ) |
|
Enable or disable looping of the streaming queue.
- Parameters
-
| [in] | enabled | True to replay the queue from the start when it ends. |
Definition at line 353 of file sourceestimatemanager.cpp.
◆ setThresholds()
| void DISP3DLIB::SourceEstimateManager::setThresholds |
( |
float | min, |
|
|
float | mid, |
|
|
float | max ) |
Set source estimate thresholds.
- Parameters
-
| [in] | min | Minimum threshold. |
| [in] | mid | Mid threshold. |
| [in] | max | Maximum threshold. |
Definition at line 257 of file sourceestimatemanager.cpp.
◆ setTimePoint()
| void DISP3DLIB::SourceEstimateManager::setTimePoint |
( |
int | index, |
|
|
const QMap< QString, std::shared_ptr< BrainSurface > > & | surfaces, |
|
|
const SubView & | singleView, |
|
|
const QVector< SubView > & | subViews ) |
Set the current STC time-point and apply colours to matching surfaces.
- Parameters
-
| [in] | index | Time-point index. |
| [in] | surfaces | FsSurface map. |
| [in] | singleView | Single-view state (for active surface type). |
| [in] | subViews | Multi-view states. |
Definition at line 180 of file sourceestimatemanager.cpp.
◆ startStreaming()
| void DISP3DLIB::SourceEstimateManager::startStreaming |
( |
const QMap< QString, std::shared_ptr< BrainSurface > > & | surfaces, |
|
|
const SubView & | singleView, |
|
|
const QVector< SubView > & | subViews ) |
Start real-time playback. Feeds all STC time-points into the streaming queue and begins the interpolation pipeline.
- Parameters
-
| [in] | surfaces | FsSurface map (for colour application). |
| [in] | singleView | Single-view state. |
| [in] | subViews | Multi-view states. |
Definition at line 268 of file sourceestimatemanager.cpp.
◆ stopStreaming()
| void DISP3DLIB::SourceEstimateManager::stopStreaming |
( |
| ) |
|
◆ thresholdsUpdated
| void DISP3DLIB::SourceEstimateManager::thresholdsUpdated |
( |
float | min, |
|
|
float | mid, |
|
|
float | max ) |
|
signal |
Emitted when thresholds are auto-computed from data.
◆ timePointChanged
| void DISP3DLIB::SourceEstimateManager::timePointChanged |
( |
int | index, |
|
|
float | time ) |
|
signal |
Emitted when the active time point changes.
◆ tmin()
| float DISP3DLIB::SourceEstimateManager::tmin |
( |
| ) |
const |
◆ tstep()
| float DISP3DLIB::SourceEstimateManager::tstep |
( |
| ) |
const |
The documentation for this class was generated from the following files: